LILY-W1 series - System integration manual
UBX-15027600 - R09
Software
Page 33 of 64
C1 - Public
Once you remove the archives, you should find something similar to the following in your working
directory:
3.4.3
Compile-time configuration
The Wi-Fi driver has several compile-time configuration options that can be set in the driver's
Makefile. Change to the
wlan_src
subdirectory and ensure that the following are enabled:
The manufacturing firmware support is required, if the driver is used with the “
Manufacturing and
Labtools
" packages, which can be used for setting up the test modes for certification [3].
3.4.4
Building
3.4.4.1
Prepare kernel sources
Primarily, ensure that your kernel is prepared for compiling external kernel modules. For this, change
to the kernel's source directory and run the following:
"make modules_prepare" will not build Module.symvers even if CONFIG_MODVERSIONS is set;
therefore, a full kernel build must be executed to make the module versioning work.
3.4.4.2
Wi-Fi driver and tools
To compile the Wi-Fi drivers and tools, go to the driver packages's
wlan_src
subdirectory and run “
make
build
”. For cross-compilation, you should specify the target architecture, cross-toolchain prefix and
the directory with the kernel sources used to build the kernel on the target system, that is:
├── FwImage/
│ └── sd8801_uapsta.bin # SDIO firmware image (USB version:
usb8801_uapsta.bin)
└──
SD-8801-FC18-MMC-14.85.36.p101-C3X14160_B0-GPL
/
└── wlan_src/
# Wi
-
Fi driver and tools sources
├── Makefile # Driver/tools Makefile
├── mapp/
# U
ser space tools for configuration, sample configuration files
├── mlan/
# OS independent driver sou
rces
├── mlinux/
# Linux specific driver sources
└── [...]
[…]
# Enable STA mode support
CONFIG_STA_SUPPORT=y
# Enable uAP mode support
CONFIG_UAP_SUPPORT=y
# Manufacturing firmware support
CONFIG_MFG_CMD_SUPPORT=y
[…]
make modules_prepare
# e.g.:
#
ARCH=arm
#
CROSS_COMPILE= arm-poky-linux-gnueabi-
#
KERNELDIR=~
/
elin-w160-
evk/build/tmp/sysroots/elin
-w160-
evk/usr/src/kernel/
make ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} KERNELDIR=${KERNELDIR} build