EVK-LILY-W1 - User Guide
UBX-15030290 - R04
Software
Page 16 of 25
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 [5].
4.3.4
Building
4.3.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.
4.3.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:
This command will build the Wi-Fi kernel modules and all the included user space applications. The
build results will be copied to
../bin_sd8801/
(or
../bin_usb8801
in case of USB driver), related to the
wlan_src
directory. The following table summarizes the content of the Wi-Fi build results directory:
File
Description
mlan.ko,
sd8801.ko/usb8801.ko
Wi-Fi driver kernel modules
README*
Usage instructions for the provided tools
config/*
Sample configuration files used by various tools
uaputl.exe
Micro-AP configuration tool
mlanutl
Configuration tool for additional driver parameters
mlanevent.exe
Netlink event listener
mlan2040coex
802.11 20/40 MHz coexistence handler
Table 13: Content of the Wi-Fi build results directory
4.4
Deploying the software
The following steps describe how to install the drivers, firmware, and provided tools on the target
system:
1.
Copy the application binaries to an appropriate location on the target file system and add it to
the
$PATH
environment variable, if required.
2.
The kernel modules should be copied to somewhere below the modules directory of the kernel,
for example,
/lib/modules/3.1
9.8
/updates/
. Run the
depmod command afterwards to
update the module dependencies and to have the modules findable by the
modprobe utility.
3.
Copy the firmware image file
sd8801
_uapsta.bin
(or
usb8801_uapsta.bin
) from the driver
package's
FwImage
directory to the directory
/lib/firmware/mrvl/
on the target file system.
An example deployment is shown below:
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