Move to the kernel directory and export the toolchain path by using the following
command:
export CROSS_COMPILE=arm-linux-gnueabi-
Configure the kernel by using the following
command:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- sama5_defconfig
Modify the default kernel configuration using the following menuconfig
command:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
Select the ATWILC driver module, from the GUI selection window:
Navigate to Device
Drivers > Network device support > Wireless
LAN.
Press M to modularize WILC SDIO to include the module
during runtime.
Save the configuration.
Include the cfg80211 as an inbuild
module to the kernel from the GUI selection window by performing the following steps:
Navigate to Networking
support > wireless.
Press * to include
the cfg80211 – wireless configuration API module to the
kernel.
Save the
configuration.
Build the kernel using the following command:
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- zImage
Note: zImage is available in
arch/arm/boot directory.
Build the modules using the following
command:
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules
Note:wilc-sdio.ko
file is available in driver/net/wireless/microchip/wilc1000
directory.
Build the .dtb file
using the following command:
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- at91-sama5d3_xplained.dtb
Note: The
at91-sama5d3_xplained.dtb file is available in
arch/arm/boot/dts directory.
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.