|
本帖最后由 yiyangzhi111 于 2013-4-13 18:41 编辑
手里有个811m的网卡,驱动和w311m的应该是一样的,以前在ok6410上成功驱动过,今天搞了一天,没完全搞定……
方法一:
编译驱动:
这一个网上都有教程,可是网上的教程没有针对cubieboard的,我不知道Makefile中的参数该怎么改,求高手指点。
方法二:
搜索了N多网站,终于看到个链接:
https://groups.google.com/forum/#!msg/cubieboard/MgYCyYoMN9g/nFylVnQ_O3YJ
按照上面的说法,从
http://romanrm.ru/en/a10/kernel
找到了http://romanrm.ru/dl/a10/kernels/server-3.0/3.0.62-r1-rm2/下面的
http://romanrm.ru/dl/a10/kernels ... 00.Custom_armhf.deb
和
http://romanrm.ru/dl/a10/kernels ... 1-rm2/uImage-r1-rm2
然后把这两个文件复制到cb上,
dkpg -i linux-image-3.0.62-r1-rm2_3.0.62-r1-rm2-10.00.Custom_armhf.deb
安装一下,然后运行以下命令
mkdir /media/boot
mount /dev/mmcblk0p1 /media/boot
rm /media/boot/uImage
mv uImage-r1-rm2 /media/boot/uImage
然后安装
apt-get install linux-firmware
这个时候ifconfig -a可以看到有wlan2了
然后运行
ifconfig wlan2 up
iwlist wlan2 scan
已经可以看到附近的无线网络了
可是使用wpa_supplicant配置完的时候运行:
wpa_supplicant -B -c /opt/config/wpa_supplicant.conf -iwlan2
却出现下面这些信息,而且循环出现,不停的出现,实在是搞不清楚是什么原因了:
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: authenticated
<7>wlan2: associate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: RX AssocResp from 38:83:45:8c:8f:44 (capab=0x431 status=0 aid=2)
<7>wlan2: associated
<6>ADDRCONF(NETDEV_CHANGE): wlan2: link becomes ready
<7>cfg80211: Pending regulatory request, waiting for it to be processed...<7>wlan2: disassociating from 38:83:45:8c:8f:44 by local choi)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>cfg80211: All devices are disconnected, going to restore regulatory settings
<7>cfg80211: Restoring regulatory settings
<6>cfg80211: Calling CRDA to update world regulatory domain
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: authenticated
<7>wlan2: associate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: RX AssocResp from 38:83:45:8c:8f:44 (capab=0x431 status=0 aid=2)
<7>wlan2: associated
<7>cfg80211: Pending regulatory request, waiting for it to be processed...<7>wlan2: disassociating from 38:83:45:8c:8f:44 by local choi)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>cfg80211: All devices are disconnected, going to restore regulatory settings
<7>cfg80211: Restoring regulatory settings
<6>cfg80211: Calling CRDA for country: US
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: authenticated
<7>wlan2: associate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: RX AssocResp from 38:83:45:8c:8f:44 (capab=0x431 status=0 aid=2)
<7>wlan2: associated
<7>wlan2: disassociating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>cfg80211: All devices are disconnected, going to restore regulatory settings
<7>cfg80211: Restoring regulatory settings
<6>cfg80211: Calling CRDA to update world regulatory domain
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: authenticated
<7>wlan2: associate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: RX AssocResp from 38:83:45:8c:8f:44 (capab=0x431 status=0 aid=2)
<7>wlan2: associated
<7>cfg80211: Pending regulatory request, waiting for it to be processed...<7>wlan2: disassociating from 38:83:45:8c:8f:44 by local choi)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>cfg80211: All devices are disconnected, going to restore regulatory settings
<7>cfg80211: Restoring regulatory settings
<6>cfg80211: Calling CRDA to update world regulatory domain
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: authenticated
<7>wlan2: associate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: RX AssocResp from 38:83:45:8c:8f:44 (capab=0x431 status=0 aid=2)
<7>wlan2: associated
<7>cfg80211: Pending regulatory request, waiting for it to be processed...<7>wlan2: disassociating from 38:83:45:8c:8f:44 by local choi)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>cfg80211: All devices are disconnected, going to restore regulatory settings
<7>cfg80211: Restoring regulatory settings
<6>cfg80211: Calling CRDA for country: US
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: authenticated
<7>wlan2: associate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: RX AssocResp from 38:83:45:8c:8f:44 (capab=0x431 status=0 aid=2)
<7>wlan2: associated
<7>wlan2: disassociating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>cfg80211: All devices are disconnected, going to restore regulatory settings
<7>cfg80211: Restoring regulatory settings
<6>cfg80211: Calling CRDA to update world regulatory domain
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: authenticated
<7>wlan2: associate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: RX AssocResp from 38:83:45:8c:8f:44 (capab=0x431 status=0 aid=2)
<7>wlan2: associated
<7>cfg80211: Pending regulatory request, waiting for it to be processed...<7>wlan2: disassociating from 38:83:45:8c:8f:44 by local choi)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>cfg80211: All devices are disconnected, going to restore regulatory settings
<7>cfg80211: Restoring regulatory settings
<6>cfg80211: Calling CRDA for country: US
<7>wlan2: no IPv6 routers present
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: authenticated
<7>wlan2: associate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: RX AssocResp from 38:83:45:8c:8f:44 (capab=0x431 status=0 aid=2)
<7>wlan2: associated
<7>wlan2: disassociating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>cfg80211: All devices are disconnected, going to restore regulatory settings
<7>cfg80211: Restoring regulatory settings
<6>cfg80211: Calling CRDA to update world regulatory domain
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>wlan2: authenticate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: authenticated
<7>wlan2: associate with 38:83:45:8c:8f:44 (try 1)
<7>wlan2: RX AssocResp from 38:83:45:8c:8f:44 (capab=0x431 status=0 aid=2)
<7>wlan2: associated
<7>cfg80211: Pending regulatory request, waiting for it to be processed...<7>wlan2: disassociating from 38:83:45:8c:8f:44 by local choi)
<7>wlan2: deauthenticating from 38:83:45:8c:8f:44 by local choice (reason=3)
<7>cfg80211: All devices are disconnected, going to restore regulatory settings
<7>cfg80211: Restoring regulatory settings
<6>cfg80211: Calling CRDA to update world regulatory domain
|
|