background image

                           

   

 

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 

Summary of Contents for MY-WF003U

Page 1: ...MY WF003U USB Wi Fi Module MY WF003U USB WiFi Module User Manual V1 2 2015 4 1 ...

Page 2: ...MY WF003U USB Wi Fi Module Version Record Version Description Release Time V1 0 Initial version 2013 11 20 V1 1 Add AM335x AM437x Z turn eval board support 2015 3 18 V1 2 Firmware copy 2015 4 1 ...

Page 3: ...B WiFi in Linux 9 4 1 Cross compiler Installation 9 4 2 Kernel Configuration 9 4 3 Compile USB WIFI Driver 9 4 3 1 Atmel SAM9x5 series 9 4 3 2 Atmel SAMA5 series 10 4 3 3 TI AM335x series 10 4 3 4 TI AM437x series 10 4 3 5 Z turn 11 4 4 Compile WPA Tool 11 4 5 Configure WLAN through WAP Tool 12 4 5 1 Using configuration file 12 4 5 2 using the command line configuration 13 4 6 Wireless Network Con...

Page 4: ...IR s MYD SAMA5D3X MYD SAM9X5andMYD SAM9X5 V2 series ARM development boards It is relying on the WiFi IEEE 802 11b g n standards and its network speed can achieve 150Mbps when using the IEEE 802 11n standard It is connected with other terminals through a USB2 0 Host port to build a wireless network 1 2 Product Images Figure 1 1 MY WF003U USB WiFi Module ...

Page 5: ...e Features Wireless Standard IEEE 802 11n IEEE 802 11g IEEE 11b Network Speed 11n up to 150Mbps 11g up to 54Mbps 11b up to 11Mbps Frequency Band 2 4 2 4835GHz Transmission power 20dBm MAX EIRP Modulation type OFDM CCK 16 QAM 64 QAM Work patterns Ad Hoc Infrastructure Wireless Security 16 128 152 bits WEP WPA WPA2 WPA PSK WPA2 PS OS support Linux Hardware Features Interface Usb2 0 Hi Speed connecto...

Page 6: ...USB Wi Fi Module Chapter 3 Interface Definition The USB2 0 interface definition is as below in table 3 1 Table 3 1 Signal Definition of USB 2 0 Interface of MY WF003U Pin Signal Definition Image 1 VBUS 2 DN 3 DP 4 GND ...

Page 7: ...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...

Page 8: ...o 4 3 2 Atmel SAMA5 series Atmel SAMA5 series development board such as MYD SAMA5D3X MYD SAMA5D3X C use Linux 3 6 9 Please refer to 4 3 1 Atmel SAM9X5 series Note modify cross compiler configuration parameters and modify KSRC path corresponding to root of kernel 4 3 3 TI AM335x series TI AM335x series development board such as MYD AM335X MYD AM335X J and so on use Linux 3 2 0 Please refer to 4 3 1...

Page 9: ...opy the firmware to Board Copy the firmware to lib firmware rtlwifi rtl8192cufw_TMSC bin of Board you can find it in the CD ROM MY WF003U USB WIFI Module Linux Tools firmware rtl8192cufw_TMSC bin Load driver module on development board Copy rtl8192c common ko rtlwifi ko rtl_usb ko rtl8192cu ko to development board And execute following command to insmod driver on development board insmod rtl8192c ...

Page 10: ... use WAP to configure wlan How to use wap tool and steps to configure wlan is as follow 4 5 1 Using configuration file Use wpa_passphase to generate configuration files How to use wpa_passphase wpa_passphase ssid ssid_code etc wpa_supplicant conf If my WIFI SSID is my_wifi password is 12345678 wpa_passphase my_wifi 12345678 etc wpa_supplicant conf wpa_supplicant conf will be generated in directory...

Page 11: ...cli p var run wpa_supplicant set_network 20 psk 123456 Select network wpa_cli p var run wpa_supplicant select_network 20 If not got IP address of wlan0 use below command to get IP address udhcpc i wlan0 After above steps get online through WiFi ping www baidu com PING www baidu com 115 239 210 26 56 data bytes 64 bytes from 115 239 210 26 seq 0 ttl 54 time 107 556 ms 64 bytes from 115 239 210 26 s...

Page 12: ... configuration is as below ESSID MYIR Password 123456 Encryption type WPA PSK iface wlan0 inet dhcp wpa essid MYIR wpa psk 123456 wpa conf etc wpa_supplicant conf Modify the file wpa_supplicant conf Modify the file etc wpa_supplicant conf we can use below contents to replace the original contents and add the network parameters which you are going to connect with Here connecting with MYIR as an exa...

Page 13: ...nd control the core board design the procurement of components production control product testing packaging shipping and other aspects and strive to provide products with best quality to customers We believe that only quality products and excellent services can ensure the long term cooperation and mutual benefit Price MYIR insists on providing customers with the most valuable products We do not pu...

Page 14: ...e product has no serial number c The customer has not followed the instruction of the manual which has caused the damage the product d Due to the natural disasters unexpected matters or natural attrition of the components or unexpected matters leads the defects of appearance function e Due to the power supply bump leaking of the roof pets moist impurities into the boards all those reasons which ha...

Page 15: ... 4 Shipping cost During the warranty period the shipping cost which delivered to MYIR should be responsible by user MYIR will pay for the return shipping cost to users when the product is repaired If the warranty period is expired all the shipping cost will be responsible by users 5 Products Life Cycle MYIR will always select mainstream chips for our design thus to ensure at least ten years contin...

Page 16: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information MYIR Tech MY WF003U ...

Reviews: