LILY-W1 series - System integration manual
UBX-15027600 - R09
Software
Page 32 of 64
C1 - Public
3.4
Compiling the drivers
3.4.1
Prerequisites
3.4.1.1
Reference drivers
The versions of the NXP reference drivers/firmware package and the Linux OS described in the
Software section 3 include:
•
NXP Linux reference driver SD-UAPSTA-8801-FC18-MMC-14.85.36.p101-C3X14160_B0-GPL
•
Linux kernel 3.19.8
☞
The instruction procedures for compiling and using the USB driver version are similar to those
for the SDIO version. The main differences between the different driver versions are
highlighted in this document, if applicable.
The drivers support Linux kernel versions from 2.6.13 to 4.2. Older or more recent kernels can require
some patches due to the changed kernel APIs. Patches for the u-blox EVK-W16 reference platform,
which is currently running a 3.19.8 kernel, can be provided on request.
☞
The reference drivers for the LILY-W1 module series are developed by NXP and can be
re-distributed to u-blox customers that have signed a license agreement [4].
3.4.1.2
Kernel configuration
According to the used host interface, the drivers for the LILY-W1 series modules depend on the
MMC/SDIO or the USB stack of the Linux kernel; thus the respective stack must be enabled on the
target system. For configuration, the Linux reference driver supports the following two driver API
options:
•
The old Linux wireless extensions (WEXT) interface
•
The new cfg80211 configuration API
To enable these APIs on the target system, the following must be selected in the kernel configuration
(
CONFIG_WIRELESS_EXT
cannot be selected directly, so a driver that depends on it, such as
hostap
or
zd1201
must be selected):
Listing 1: Kernel .config
⚠
For older kernels (<3.2), use compat-wireless (now named as backports) to provide recent versions
of the kernel's 802.11 APIs to support all the driver features. In this case, cfg80211 has to be
compiled as a module (CONFIG_CFG80211=m).
3.4.2
Extracting the package content
The NXP driver package contains the firmware image, the Wi-Fi driver sources and also a release notes
document that describes the tested hardware platform, supported features, bug fixes and known
limitations of the release. The package comes as several archives that are packed into each other.
Follow the steps mentioned below to extract the NXP driver package:
CONFIG_WIRELESS_EXT=y
CONFIG_WEXT_PRIV=y
CONFIG_CFG80211=y
unzip SD-UAPSTA-8801-FC18-MMC-14.85.36.p101-C3X14160_B0-GPL-Release.zip
tar xf SD-UAPSTA-8801-FC18-MMC-14.85.36.p101-C3X14160_B0-GPL.tar
for i in *.tgz; do tar xzf $i; done