CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
12
返回列表 发新帖
楼主: 120261065

lununtu 怎么连上wifi啊,求教

[复制链接]
发表于 2014-8-25 00:14:22 | 显示全部楼层
gcd0318 发表于 2014-8-24 22:36
开机就自动有wifi?我每次开机连wlan0都没有,还要手动ifconfig wlan0 up才可以,但只要up了wifi就自己连 ...

开机后 ls /sys/class/net 看看有没有wlan0之类的。
然后看看interfaces设置对没?我的wifi连接是设置为静态IP的,如下
cat /etc/network/interfaces
auto lo
iface lo inet loopback

#-----------Wifi Static-------------------
auto wlan0
iface wlan0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
pre-up ip link set wlan0 up
pre-up iwconfig wlan0 essid my-ap-ssid
wpa-ssid my-ap-ssid
wpa-psk my-passwd

回复 支持 反对

使用道具 举报

发表于 2014-8-25 01:04:33 | 显示全部楼层
soloforce 发表于 2014-8-25 00:14
开机后 ls /sys/class/net 看看有没有wlan0之类的。
然后看看interfaces设置对没?我的wifi连接是设置为静 ...

除了我用dhcp以外别的都和你一样
而且dmesg总有一串smc 3 err, cmd 52, RTO的错,但应该和wifi没关系
回复 支持 反对

使用道具 举报

发表于 2014-8-25 05:23:13 | 显示全部楼层
本帖最后由 soloforce 于 2014-8-25 05:29 编辑
gcd0318 发表于 2014-8-25 01:04
除了我用dhcp以外别的都和你一样
而且dmesg总有一串smc 3 err, cmd 52, RTO的错,但应该和wifi没关系 ...

我用的系统是debian,不知道有没关系 :-/ 。是不是官方的lubuntu默认关闭了wlan? 用rfkill list wifi 或者 rfkill list wlan之类的查看一下。然后 dmesg | grep -i wlan 看看。 我的是类似这样的:
[   10.544300] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
[   10.858842] =========== WLAN placed in POWER ON ========
[   11.554734] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33
[   11.627758] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to insert WLAN RESET
[   11.861381] =========== WLAN placed in RESET ========
[   11.878748] udevd[200]: renamed network interface wlan0 to wlan2
[   15.801938] dhd_customer_gpio_wlan_ctrl: callc customer specific GPIO to remove WLAN RESET
[   16.017932] =========== WLAN going back to live  ========
[   16.446253] dhd_bus_devreset: == WLAN ON ==
[   27.235464] wlan2: no IPv6 routers present

因为之前插过usb wifi适配器,所以上面自动把内建wifi设备名转为wlan2了;如果没用过usb wifi适配器的话内建wifi默认是wlan0。

回复 支持 反对

使用道具 举报

发表于 2014-8-25 13:30:43 | 显示全部楼层
gcd0318 发表于 2014-8-25 01:04
除了我用dhcp以外别的都和你一样
而且dmesg总有一串smc 3 err, cmd 52, RTO的错,但应该和wifi没关系 ...

你用的是lubuntu??
回复 支持 反对

使用道具 举报

发表于 2014-8-25 21:54:16 | 显示全部楼层
sunbeyond 发表于 2014-8-25 13:30
你用的是lubuntu??

是,1.03的,有什么要特别注意的?
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 07:12 , Processed in 0.022218 second(s), 12 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部