7
/
1
5
MY-WF003U
USB Wi-Fi Module
Chapter 4 Testing USB WiFi in Linux
4.1 Cross-compiler Installation
For different platforms, please use different toolchains. Take arm-2010q1 as an example.
⑴
Decompress the cross-compiler tool arm-2010q1-202-arm-none-linux-
under the “Cross_Tools”
folder in DVD. For decompressing to /usr/local/arm/ as an example:
$ sudo tar xvjf arm-2010q1-202-arm-none-linux-gnueabi.tar.bz2 -C /uar/local/arm
⑵
Configure PATH and CROSS_COMPILE:
$ export PATH=$PATH:/usr/local/arm/arm-2010q1/bin
$ export CROSS_COMPILE=/usr/local/arm/arm-2010q1/bin/arm-none-linux-gnueabi-
4.2 Kernel Configuration
⑴
Execute below command under the root directory of the kernel source code to open kernel
configuration menu:
$ make ARCH=arm menuconfig
⑵
Make configurations according to below menu
[*] Networking support --->
-*- Wireless --->
[*] cfg80211 wireless extensions compatibility
<*> Generic IEEE 802.11 Networking Stack (mac80211)
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
<*> IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)
4.3 Compile USB WIFI Driver
4.3.1 Atmel SAM9x5 series
Atmel SAM9X5 series development board, such as MYD-SAM9X35, MYD-SAM9G15, use Linux
2.6.39.
Here take use rtl8192cu as example Please follow below steps to compile the 8192 driver:
⑴
Create a work folder under the current user Home directory and get into this folder:
$ mkdir ~/work
$ cd ~/work
⑵
Copy the driver source code under the disk directory
“Linux/Driver” to the work folder and