查看: 7726|回复: 8

有玩过wifi模块的没

[复制链接]
发表于 2009-11-9 15:22:06 | 显示全部楼层 |阅读模式
关键词: WiFi , 模块
There are some steps to make the SDIO WIFI module work.
1.configure the kernel
a.select Network stack
Networking  --->
         [*] Networking support
         Wireless  --->
                 <*> Improved wireless configuration API  
                [*]   nl80211 new netlink interface support
                -*- Wireless extensions
                 <*> Generic IEEE 802.11 Networking Stack (mac80211)
                 [*]   Enable mac80211 mesh networking (pre-802.11s) support
b.select Blackfin SDH driver
Device Drivers  --->
        <*> MMC/SD card support  --->
                 *** MMC/SD Card Drivers ***
                 <*>   MMC block device driver
                 [*]     Use bounce buffer for simple hosts
                 *** MMC/SD Host Controller Drivers ***
                <*>   Blackfin Secure Digital Host support
                [*]     Blackfin EZkit Rev 1.3 Missing SDH_CMD Pull Up Resistor Workaround
c.select libertas driver
Device Drivers  --->
         [*] Network device support  --->
                 Wireless LAN  --->      
                         [*] Wireless LAN (IEEE 802.11)
                            Marvell 8xxx Libertas WLAN driver support
                              Marvell Libertas 8385 and 8686 SDIO 802.11b/g cards
                         [*]     Enable full debugging output in the Libertas module.  
                             
2.patch the kernel
cd uclinux-dist/linux-2.6.x
...uclinux-dist/linux-2.6.x$ patch -p0  < sdio_wifi.patch

3.copy firmwares and hotplug script to romfs
cd uclinux-dist
.../uclinux-dist$mkdir romfs/lib/firmware
.../uclinux-dist$cp sd8686.bin romfs/lib/firmware
.../uclinux-dist$cp sd8686_helper.bin romfs/lib/firmware
.../uclinux-dist$cp .../hotplug /romfs/sbin/
.../uclinux-dist$cd /romfs/sbin/;chmod +x hotplug

4.install libertas module
After doing above job,then compile the source and download the image to BF548-EZKIT board
SDIO card should be showed after the image is downloaded to the board.
mmc0: new SDIO card at address 0001

root:/> echo /sbin/hotplug > /proc/sys/kernel/hotplug
root:/> modprobe libertas                                                                     
root:/> modprobe libertas_sdio helper_name=sd8686_helper.bin fw_name=sd8686.bin
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
firmware: requesting sd8686_helper.bin
firmware: requesting sd8686.bin
libertas: 00:13:e0:a1:69:92, fw 9.70.3p24, cap 0x00000303
libertas: unidentified region code; using the default (USA)
libertas: PREP_CMD: command 0x0022 failed: 2
libertas: PREP_CMD: command 0x00a3 failed: 2
libertas: PREP_CMD: command 0x00a3 failed: 2
libertas: eth1: Marvell WLAN 802.11 adapter



Following is my steps to connect this wifi module to my AP
root:/> iwconfig eth1
Warning: Driver for device eth1 has been compiled with version 22
of Wireless Extension, while this program supports up to version 17.
Some things may be broken...

g eth1 192.168.1.101 up
route add default gw 192.168.1.1eth1      IEEE 802.11b/g  ESSID:""  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:00:00:00:00:00   
          Bit Rate:0 kb/s   Tx-Power=18 dBm   
          Retry limit:8   RTS thr=2347 B   Fragment thr=2346 B   
          Encryption keyff
          Power Managementff
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root:/> ifconfig eth1 up
root:/> iwlist eth1 scan
Warning: Driver for device eth1 has been compiled with version 22
of Wireless Extension, while this program supports up to version 17.
Some things may be broken...

eth1      Scan completed :
          Cell 01 - Address: 00:19:A9:FD:2B:01
                    ESSID:"ADICHINA"
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality=43/100  Signal level=-88 dBm  Noise level=-96 dBm
                    Encryption keyn
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 02 - Address: 00:1C:F9:C02:E0
                    ESSID:"ADIWLAN"
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality=89/100  Signal level=-61 dBm  Noise level=-96 dBm
                    Encryption keyn
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 03 - Address: 00:1C:F9:C02:E1
                    ESSID:"ADICHINA"
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality=89/100  Signal level=-61 dBm  Noise level=-96 dBm
                    Encryption keyn
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 04 - Address: 00:19:A9:FD:2B:00
                    ESSID:"ADIWLAN"
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality=43/100  Signal level=-88 dBm  Noise level=-96 dBm
                    Encryption keyn
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 05 - Address: 00:1A:704:94:C7
                    ESSID:"linksys"
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality=98/100  Signal level=-31 dBm  Noise level=-96 dBm
                    Encryption keyff
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:54 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:48 Mb/s
          Cell 06 - Address: 00:1C:F9:C0B:E0
                    ESSID:"ADIWLAN"
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality=91/100  Signal level=-59 dBm  Noise level=-96 dBm
                    Encryption keyn
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 07 - Address: 00:1C:F9:C0B:E1
                    ESSID:"ADICHINA"
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality=91/100  Signal level=-59 dBm  Noise level=-96 dBm
                    Encryption keyn
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 08 - Address: 00:1C:F9:C05:A0
                    ESSID:"ADIWLAN"
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality=46/100  Signal level=-87 dBm  Noise level=-96 dBm
                    Encryption keyn
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 09 - Address: 00:1C:F9:C05:A1
                    ESSID:"ADICHINA"
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality=48/100  Signal level=-86 dBm  Noise level=-96 dBm
                    Encryption key:on
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 10 - Address: 00:0F:E2:90:15:50
                    ESSID:"ChinaNet"
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality=50/100  Signal level=-85 dBm  Noise level=-96 dBm
                    Encryption key:off
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
          Cell 11 - Address: 02D:B2:FA8:E5
                    ESSID:"hpsetup"
                    Mode:Ad-Hoc
                    Frequency:2.457 GHz (Channel 10)
                    Quality=68/100  Signal level=-76 dBm  Noise level=-96 dBm
                    Encryption key:off
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:11 Mb/s
          Cell 12 - Address: 00:1C:F9:C0:73:00
                    ESSID:"ADIWLAN"
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality=89/100  Signal level=-61 dBm  Noise level=-96 dBm
                    Encryption key:on
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 13 - Address: 00:1C:F9:C0:73:01
                    ESSID:"ADICHINA"
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality=89/100  Signal level=-61 dBm  Noise level=-96 dBm
                    Encryption key:on
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 14 - Address: 00:19:A9:FD:2F:01
                    ESSID:"ADICHINA"
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality=57/100  Signal level=-82 dBm  Noise level=-96 dBm
                    Encryption key:on
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)
          Cell 15 - Address: 00:50:18:1F:81:42
                    ESSID:"Lilly"
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality=43/100  Signal level=-88 dBm  Noise level=-96 dBm
                    Encryption key:on
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:11 Mb/s
          Cell 16 - Address: 00:19:A9:FD:2F:00
                    ESSID:"ADIWLAN"
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality=54/100  Signal level=-83 dBm  Noise level=-96 dBm
                    Encryption key:on
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    (Unknown Wireless Token 0x8C05)

root:/> iwconfig eth1 essid linksys
root:/> ifconfig eth1 192.168.1.101 up
root:/> route add default gw 192.168.1.1
root:/> ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=24.000 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=12.000 ms
64 bytes from 192.168.1.1: seq=2 ttl=64 time=12.000 ms
64 bytes from 192.168.1.1: seq=3 ttl=64 time=16.000 ms
64 bytes from 192.168.1.1: seq=4 ttl=64 time=12.000 ms
64 bytes from 192.168.1.1: seq=5 ttl=64 time=12.000 ms
 楼主| 发表于 2009-11-9 15:22:31 | 显示全部楼层
这个模块谁有?谁用过?我正在编译。
机器是benq的s6。
 楼主| 发表于 2009-11-9 17:39:33 | 显示全部楼层
模块编译好了。可惜,开关打不开。找不到开关软件,linux版本的。windows的,打开后,重启又关了。
http://www.umpcportal.com/module ... _id=4959%26forum=32
发表于 2009-11-10 22:51:08 | 显示全部楼层
没搞错吧?你的benq s6山寨的啊/
刚买的还用不了wifi?
 楼主| 发表于 2009-11-11 07:27:22 | 显示全部楼层
是linux用不了,有开关,打不开,winxp一切正常。
linux找到了恢复盘,下不来,估计gfw吧国外的bt种子封了。
看来,还得想办法翻墙。做电工真的很不容易。
发表于 2009-11-11 09:18:26 | 显示全部楼层
准备入手那个OMAP平台的了~~~麻痹的,没linux系统。靠~~
拿来看书用
发表于 2010-7-24 16:12:20 | 显示全部楼层
呵呵
发表于 2010-8-4 23:54:42 | 显示全部楼层
学习ing。。。
发表于 2011-7-20 12:13:45 | 显示全部楼层
学习
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关于我们  -  服务条款  -  使用指南  -  站点地图  -  友情链接  -  联系我们
电子工程网 © 版权所有   京ICP备16069177号 | 京公网安备11010502021702
快速回复 返回顶部 返回列表