1. Make sure that your kernel can recognize your USB Nic before porting the wireless Nic. After inserting the NIC, the following information is displayed:
[Root @ friendlyarm/] # USB 1-1: USB disconnect, address 2
USB 1-1: new full speed USB device using s3c2410-ohci and address 3
USB 1-1: new USB device found, idvendor = 0133, idproduct = 8176
USB 1-1: new USB device strings: MFR = 1, Product = 2, serialnumber = 3
USB 1-1: Product: 802.11n WLAN Adapter
USB 1-1: Manufacturer: RealTek
USB 1-1: serialnumber: 00e04c000001
USB 1-1: configuration #1 chosen from 1 choice
In addition, you can also use the lsusb command to read the model information of your USB Nic on your PC Linux system, and then Baidu will be able to find the wireless Nic model. My Nic information is as follows:
Bus 001 device 002: Id 0133: 8176 RealTek semiconducorp.
My Wireless Network Card model is TL-wn721N began Baidu said ar9271 later transplanted for a long time will not be able to suspect that the network card model is wrong
II .. Download the source code package from the RealTek website.
Http://www.realtek.com/downloads/downloadsView.aspx? Langid = 3 & pnid = 48 & pfid = 48 & level = 5 & conn = 4 & downtypeid = 3 & getdown = false & downloads = true # rtl8192cu
Rtl8192xc_usb_linux_v3.4.4_4749.20121105. Zip
Decompress the package
/Home/rtl8188c_8192c_usb_linux_v3.4.4_4749.20121105/driver/rtl8188c_8192c_usb_linux_v3.4.4_4749.20121105 directory
Config_platform_i1__pc = N
Config_platform_arm_s3c2k4 = y // modify the chip architecture
Config_power_saving = N // remove the energy-saving mode
Ifeq ($ (config_platform_arm_s3c2k4), Y)
Extra_cflags + =-dconfig_little_endian
Arch: = arm
Cross_compile: = arm-Linux-
Kver: = 2.6.32.2
Ksrc: =/Linux-$ (kver)
Endif
Modify the dependent kernel type my kernel path/linux-2.6.32.2, note that your kernel file must have been compiled otherwise it will prompt that the config file cannot be found
The last step is make.
[Root @ localhost rtl8188c_8192c_usb_linux_v3.4.4_4749.20121105] # ls
8192cu. Ko 8192cu. O Hal kconfig module. symvers
8192cu. Mod. c clean ifcfg-wlan0 makefile OS _dep
8192cu. Mod. O core include modules. Order wlan0dhcp
The 8192cu. Ko is the driver we have compiled.
3. We also need to compile wireless_tools
Go to/home/rtl8188c_8192c_usb_linux_v3.4.4_4749.20121105/wireless_tools/wireless_tools.30.rtl and modify the makefile.
# Compiler to use (modify this for cross compile ).
Cc = arm-Linux-gcc
# Other tools you need to modify for cross compile (static lib only ).
AR = arm-Linux-ar
Ranlib = arm-Linux-ranlib