现在的位置: 首页 > 综合 > 正文

mini2440 realtek8188cus 无线网卡移植

2013年09月20日 ⁄ 综合 ⁄ 共 1740字 ⁄ 字号 评论关闭

一.在移植无线网卡之前首先得确保你的内核能够识别你的usb网卡,我的网卡插入后显示信息如下

[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=0bda, 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

此外你还可以通过lsusb命令在你的pc linux系统上读出你的USB网卡型号信息,然后百度一下就可以查到的无线网卡型号了,我的网卡信息如下

Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. 

我的无线网卡型号是TL-wn721N开始百度了下说是AR9271后来移植了好久都不行就怀疑网卡型号错了

二。.到Realtek官网下载源码包

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

解压到进入到

/home/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105目录下

CONFIG_PLATFORM_I386_PC = n

CONFIG_PLATFORM_ARM_S3C2K4 = y              //修改芯片架构

CONFIG_POWER_SAVING                     =       n     //去掉节能模式

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

修改依赖内核类型   我的内核路径/linux-2.6.32.2,注意你的内核文件必须的编译过了的否则会提示找不到config配置文件

最后一步就是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

其中的8192cu.ko就为我们编译得到的驱动

三。我们还要编译wireless_tools

进入/home/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/wireless_tools/wireless_tools.30.rtl,修改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

抱歉!评论已关闭.