CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 13639|回复: 13

关于腾达811m/w311m usb 无线网卡

[复制链接]
发表于 2013-4-13 18:39:12 | 显示全部楼层 |阅读模式
本帖最后由 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



5370 Linux.rar

724.57 KB, 下载次数: 24, 下载积分: 金钱 -1

网卡驱动

回复

使用道具 举报

 楼主| 发表于 2013-4-14 19:16:21 | 显示全部楼层
好吧,网上又查了下,好像是说是有多个网络管理器导致的。
可是不知道有什么管理器在哪里,发现一个方法管用,
ps -A |grep "n"
查看有的network-manager的进程
然后运行
/etc/init.d/network-manager stop
然后再kill掉现有的wpa_supplicant进程,再运行:
wpa_supplicant -B -c /opt/config/wpa_supplicant.conf -iwlan2
这个时候就不会提示那一大堆的东西了,
然后运行dhcient wlan2
自动获取IP
ping 8.8.8.8
网络就同了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-4-14 20:08:32 | 显示全部楼层
直接卸载掉network-manager
运行:
apt-get remove network-manager-gnome network-manager linaro-alip
但是默认会卸载掉wpasupplicant,所以需要
apt-get install wapsupplicant
这个时候需要手动设置/etc/network/interface文件:
auto wlan2
iface wlan2 inet static
address 192.168.1.222
netmask 255.255.255.0
up route add default gw 192.168.1.1
然后再写一个自动启动脚本就好了:/opt/autostart/wlan.sh
#!/bin/sh
wpa_supplicant -B -i wlan2 -c /opt/config/wpa_supplicant.conf -D wext
然后再设置这个脚本开机自动启动就好了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-4-14 20:21:16 | 显示全部楼层
自动启动:在/etc/init.d/rc.local最后一行添加:
/bin/sh /opt/autostart/wlan.sh
就可以了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-4-14 21:12:27 | 显示全部楼层
自动启动:在/etc/init.d/rc.local最后一行添加:
/bin/sh /opt/autostart/wlan.sh
就可以了
回复 支持 反对

使用道具 举报

发表于 2013-7-19 10:21:02 | 显示全部楼层
好文收藏之 可惜不是编译5370的无线网卡驱动
回复 支持 反对

使用道具 举报

发表于 2013-8-8 10:43:39 | 显示全部楼层
楼上的在线,我按你的方法装不了无线网卡,你刷的是什么安装包
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-8-10 09:12:12 | 显示全部楼层
我的系统是自己编译得Debian系统,主要是内核和image用上面给的地址的就可以了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-8-10 09:47:02 | 显示全部楼层
本帖最后由 yiyangzhi111 于 2013-8-10 10:01 编辑
lkmdcw 发表于 2013-8-8 10:43
楼上的在线,我按你的方法装不了无线网卡,你刷的是什么安装包

想要方便的话,建议看一下这个帖子:
http://cn.cubieboard.org/forum.php?mod=viewthread&tid=485&extra=page%3D1
里面的
http://pan.baidu.com/share/link?shareid=494017&uk=3426192474
这个固件刷入到nand中.
然后先用有线得连接下网络,执行一下命令就好了
apt-get install linux-firmware
mkdir -p /system/vendor/modules/
cp RT2870STA.dat /system/vendor/modules/

RT2870STA.dat在附件里面有
注:使用这个固件的时候,我第一次插在usb延长线上的时侯,系统没有识别出来得wlan0得,直接插在cb上才识别了

RT2870STA.tar.gz

732 Bytes, 下载次数: 5, 下载积分: 金钱 -1

回复 支持 反对

使用道具 举报

发表于 2013-8-10 15:08:39 | 显示全部楼层
谢谢,驱动我昨天装好了,但现有新问题,我用有线,无线可以使用,不用网线,无线也使用不了,清楚是什么原因吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-27 11:24 , Processed in 0.026449 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部