CubieBoard中文论坛

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

必须iface wlan0 down再up之后,才能使用无线

[复制链接]
发表于 2015-5-16 21:23:38 | 显示全部楼层 |阅读模式
本帖最后由 wencan 于 2015-5-16 21:38 编辑

之前遇到的问题是
要接上网线,无线才能连上

现在是,接上网线,还得:
iface wlan0 down
iface wlan0 up
即使是重启,也得如此

板子CC-A80
固件linaro server 2.0

贴上interfaces:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo eth0
allow-hotplug eth0
iface lo inet loopback
iface eth0 inet dhcp

#this is open wifi setting."your-ssid-here" and "your-passwd-here" should been replase with yours and remove the annotation

auto wlan0
iface wlan0 inet dhcp
pre-up ip link set wlan0 up
pre-up iwconfig wlan0 essid OpenWrt-78604-5G
wpa-ssid OpenWrt-78604-5G
wpa-psk abcd1234

#auto br0
#iface br0 inet dhcp
#bridge_ports eth0 wlan0


回复

使用道具 举报

发表于 2015-5-19 09:24:18 | 显示全部楼层
暂时解决办法:
vi /etc/init.d/rc.local

ifconfig wlan0 down
ifconfig wlan0 up
/etc/init.d/networking restart

每次系统起来后等一会就能获取IP了。
怀疑是系统加载驱动后,AP6330还没初始化好,尝试连接WIFI了,导致连不上。所以需要手动再一次连接。



回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-5-19 19:03:53 | 显示全部楼层
@allen 发表于 2015-5-19 09:24
暂时解决办法:
vi /etc/init.d/rc.local

好办法
我怎么就没想到呢

期待问题得到解决
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-5-19 22:07:12 | 显示全部楼层
@allen 发表于 2015-5-19 09:24
暂时解决办法:
vi /etc/init.d/rc.local

请问是硬件的问题,内核的问题,还是打包的问题??
回复 支持 反对

使用道具 举报

发表于 2015-5-23 17:28:26 | 显示全部楼层
@allen 发表于 2015-5-19 09:24
暂时解决办法:
vi /etc/init.d/rc.local

正解,ct也是一样的问题,而且这个问题不一会出现,我试过重启了很多次,大概有60%-70%的机率会出现无法获取ip的现象
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-3 02:52 , Processed in 0.021972 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部