首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > Wireless >

怎么移植compat-wireless的usb无线网卡驱动到FL2440 arm开发板下

2012-12-30 
如何移植compat-wireless的usb无线网卡驱动到FL2440 arm开发板上?我用的是 迅捷FW150UD usb无线网卡,迅捷F

如何移植compat-wireless的usb无线网卡驱动到FL2440 arm开发板上?
我用的是 迅捷FW150UD usb无线网卡,迅捷FW150UD的控制芯片好像是AR9271,开发板用的是FL2440,开发板上的linux内核版本是2.6.28.7,文件系统qtopia-2.2.0,交叉编译环境用的是cross-3.4.1,compat-wireless用的是compat-wireless-2011-01-07。

执行./scripts/driver-select脚本选择ath9k_htc
再执行make KLIB=/home/arm/linux-2.6.28.7 KLIB_BUILD=/home/arm/linux-2.6.28.7
编译完成后
compat-wireless中modules.order内容:
kernel//home/zhangyan/arm/compat-wireless-2011-01-07/compat/compat.ko
kernel//home/zhangyan/arm/compat-wireless-2011-01-07/compat/compat_firmware_class.ko
kernel//home/zhangyan/arm/compat-wireless-2011-01-07/compat/kfifo.ko
kernel//home/zhangyan/arm/compat-wireless-2011-01-07/net/rfkill/rfkill_backport.ko
kernel//home/zhangyan/arm/compat-wireless-2011-01-07/net/wireless/cfg80211.ko
kernel//home/zhangyan/arm/compat-wireless-2011-01-07/net/mac80211/mac80211.ko
kernel//home/zhangyan/arm/compat-wireless-2011-01-07/drivers/net/wireless/ath/ath.ko

加载模块时提示:
# insmod compat.ko                                                              
Compat-wireless backport release: compat-wireless-2011-01-06                    
Backport based on linux-next.git next-20110107                                  
# insmod compat_firmware_class.ko                                               
# insmod kfifo.ko                                                               
kfifo: module license 'unspecified' taints kernel.                              
# insmod rfkill_backport.ko                                                     
# insmod cfg80211.ko                                                            
cfg80211: Calling CRDA to update world regulatory domain                        
# insmod mac80211.ko                                                            


# insmod ath.ko

无线网卡插上后只提示
# usb 1-1.1: new full speed USB device using s3c2410-ohci and address 3         
usb 1-1.1: configuration #1 chosen from 1 choice
但无线网卡的指示灯不亮。

linux内核modules.order内容:
kernel/kernel/configs.ko
kernel/fs/nls/nls_cp737.ko
kernel/fs/nls/nls_cp775.ko
kernel/fs/nls/nls_cp852.ko
kernel/fs/nls/nls_cp855.ko
kernel/fs/nls/nls_cp857.ko
kernel/fs/nls/nls_cp860.ko
kernel/fs/nls/nls_cp861.ko
kernel/fs/nls/nls_cp862.ko
kernel/fs/nls/nls_cp863.ko
kernel/fs/nls/nls_cp864.ko
kernel/fs/nls/nls_cp865.ko
kernel/fs/nls/nls_cp866.ko
kernel/fs/nls/nls_cp869.ko
kernel/fs/nls/nls_cp874.ko
kernel/fs/nls/nls_cp932.ko
kernel/fs/nls/nls_euc-jp.ko
kernel/fs/nls/nls_cp936.ko
kernel/fs/nls/nls_cp949.ko
kernel/fs/nls/nls_cp950.ko
kernel/fs/nls/nls_cp1250.ko
kernel/fs/nls/nls_cp1251.ko
kernel/fs/nls/nls_iso8859-2.ko
kernel/fs/nls/nls_iso8859-3.ko
kernel/fs/nls/nls_iso8859-4.ko
kernel/fs/nls/nls_iso8859-5.ko
kernel/fs/nls/nls_iso8859-6.ko
kernel/fs/nls/nls_iso8859-7.ko
kernel/fs/nls/nls_cp1255.ko
kernel/fs/nls/nls_iso8859-9.ko
kernel/fs/nls/nls_iso8859-13.ko
kernel/fs/nls/nls_iso8859-14.ko
kernel/fs/nls/nls_iso8859-15.ko
kernel/fs/nls/nls_koi8-r.ko
kernel/fs/nls/nls_koi8-u.ko
kernel/fs/nls/nls_koi8-ru.ko
kernel/fs/nls/nls_utf8.ko
kernel/fs/ntfs/ntfs.ko
kernel/fs/udf/udf.ko
kernel/crypto/crypto_algapi.ko
kernel/crypto/aead.ko
kernel/crypto/crypto_blkcipher.ko
kernel/crypto/chainiv.ko
kernel/crypto/eseqiv.ko
kernel/crypto/crypto_hash.ko
kernel/crypto/cryptomgr.ko
kernel/crypto/hmac.ko
kernel/crypto/md5.ko
kernel/crypto/sha1_generic.ko
kernel/crypto/ecb.ko
kernel/crypto/cbc.ko
kernel/crypto/des_generic.ko
kernel/crypto/aes_generic.ko
kernel/crypto/arc4.ko
kernel/crypto/deflate.ko
kernel/crypto/michael_mic.ko
kernel/crypto/authenc.ko
kernel/crypto/rng.ko
kernel/crypto/krng.ko
kernel/drivers/video/backlight/lcd.ko
kernel/drivers/video/backlight/backlight.ko
kernel/drivers/parport/parport_pc.ko
kernel/drivers/parport/parport_ax88796.ko
kernel/drivers/block/nbd.ko
kernel/drivers/misc/eeprom_93cx6.ko
kernel/drivers/net/wireless/strip.ko
kernel/drivers/net/wireless/hostap/hostap.ko
kernel/drivers/net/macvlan.ko
kernel/drivers/ide/ide-tape.ko
kernel/drivers/scsi/scsi_tgt.ko
kernel/drivers/scsi/st.ko
kernel/drivers/scsi/sr_mod.ko
kernel/drivers/scsi/ch.ko
kernel/drivers/scsi/scsi_wait_scan.ko
kernel/drivers/usb/storage/usb-storage.ko
kernel/drivers/usb/serial/navman.ko
kernel/drivers/usb/serial/option.ko
kernel/drivers/usb/misc/ldusb.ko
kernel/drivers/usb/misc/usbled.ko
kernel/drivers/usb/class/cdc-acm.ko
kernel/drivers/usb/class/usblp.ko
kernel/drivers/usb/class/cdc-wdm.ko
kernel/drivers/hid/hid-dummy.ko
kernel/drivers/block/aoe/aoe.ko
kernel/net/wireless/cfg80211.ko
kernel/net/mac80211/mac80211.ko
kernel/net/ieee80211/ieee80211.ko
kernel/net/ieee80211/ieee80211_crypt.ko
kernel/net/ieee80211/ieee80211_crypt_wep.ko
kernel/net/ieee80211/ieee80211_crypt_ccmp.ko
kernel/net/ieee80211/ieee80211_crypt_tkip.ko
kernel/lib/crc-itu-t.ko
也不知道内核的那些模块是需要加载的

基本情况就是这样,但加载compat-wireless中要求的模块后无线网卡不能识别。还有ar9271.fw已经放到 /bin/ 文件夹下了

希望有知道怎么解决的前来指点一下。
[解决办法]
内核没有配置好吧
[解决办法]
刚才弄了一下,成功了!。
内核配置


Build ATH9K_HTC driver: 
1.   Kernel config: 
Please make sure your current kernel config has following settings: 
CONFIG_NET_SCHED=y 
CONFIG_CFG80211=m 
CONFIG_MAC80211=m 
CONFIG_RFKILL=m 
CONFIG_WLAN_80211=y 
# CONFIG_ATH9K is not set 

固件是在 /lib/firmware/下的 , 名字叫 htc_9271.fw
http://my.oschina.net/u/147624/blog/56052

插入模块:
insmod compat.ko
insmod compat_firmware_class.ko
insmod rfkill_backport.ko
insmod cfg80211.ko
insmod mac80211.ko
insmod ath.ko
insmod ath9k_hw.ko
insmod ath9k_common.ko
insmod ath9k_htc.ko

我编译出来的模块没有kfifo.ko

插入USB网卡显示:
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: New USB device found, idVendor=0cf3, idProduct=1006
usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
usb 1-1: Product: USB2.0 WLAN
usb 1-1: Manufacturer: ATHEROS
usb 1-1: SerialNumber: 12345
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: ath9k_htc: Firmware htc_9271.fw requested
usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.3
ieee80211 phy0: Atheros AR9271 Rev:1

扫描:
iwconfig 发现 wlan0 设备。
ifconfig wlan0 up
san-wifi:

         30% Do you love me ?
         31% ChinaNet
         44% 6-107(Security)
         36% 505(Security)
         63% posico(Security)
         63% sjx18094552(Security)
         39% wj(Security)
         33% sjx18094552(Security)
         37% ChinaNet
         39% CMCC-EDU
         40% CMCC

热点排行