CubieBoard中文论坛

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

cubieboard能使用雷凌网卡吗?我在ifconfig wlan0 up 都启动不了。

[复制链接]
发表于 2013-12-16 10:50:11 | 显示全部楼层 |阅读模式
请高手指点
系统报错如下:

root@cubieboard2:~# ifconfig wlan0 up
SIOCSIFFLAGS: No such file or directory

回复

使用道具 举报

发表于 2013-12-16 12:05:55 | 显示全部楼层

回帖奖励 +10 金钱

支持的。内核必须启用Ralink driver support,并选择好相应的模块;此外还要apt-get install firmware-ralink固件(for debian)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-12-16 14:21:22 | 显示全部楼层
soloforce 发表于 2013-12-16 12:05
支持的。内核必须启用Ralink driver support,并选择好相应的模块;此外还要apt-get install firmware-rali ...

请问如何启用Ralink driver support啊?  lubuntu本来就有了雷凌的驱动,所以是不需要下载驱动的。就是不知道为什么起不来,用strace ifconfig wlan0 up时,出现了一个读不出的参数,如下所示

oot@cubieboard2:~# strace ifconfig wlan0 up
execve("/sbin/ifconfig", ["ifconfig", "wlan0", "up"], [/* 21 vars */]) = 0
brk(0)                                  = 0x2001000
uname({sys="Linux", node="cubieboard2", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fb2000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=39586, ...}) = 0
mmap2(NULL, 39586, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6f8c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\340\321\0\0004\0\0\0"..., 512) = 512
lseek(3, 103000, SEEK_SET)              = 103000
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1120) = 1120
lseek(3, 102664, SEEK_SET)              = 102664
read(3, "A4\0\0\0aeabi\0\1*\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\4\22"..., 53) = 53
fstat64(3, {st_mode=S_IFREG|0644, st_size=104120, ...}) = 0
mmap2(NULL, 135488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6f6a000
mprotect(0xb6f83000, 28672, PROT_NONE)  = 0
mmap2(0xb6f8a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18) = 0xb6f8a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0]p\1\0004\0\0\0"..., 512) = 512
lseek(3, 888772, SEEK_SET)              = 888772
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1360) = 1360
lseek(3, 888332, SEEK_SET)              = 888332
read(3, "A2\0\0\0aeabi\0\1(\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\4\22"..., 51) = 51
fstat64(3, {st_mode=S_IFREG|0755, st_size=890132, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fb1000
mmap2(NULL, 931208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6e86000
mprotect(0xb6f5c000, 32768, PROT_NONE)  = 0
mmap2(0xb6f64000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd6) = 0xb6f64000
mmap2(0xb6f67000, 9608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6f67000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fb0000
set_tls(0xb6fb04c0, 0xb6fb0b98, 0xb6fb5048, 0xb6fb04c0, 0xb6fb1590) = 0
mprotect(0xb6f64000, 8192, PROT_READ)   = 0
mprotect(0xb6f8a000, 4096, PROT_READ)   = 0
mprotect(0x1a000, 4096, PROT_READ)      = 0
mprotect(0xb6fb4000, 4096, PROT_READ)   = 0
munmap(0xb6f8c000, 39586)               = 0
brk(0)                                  = 0x2001000
brk(0x2022000)                          = 0x2022000
uname({sys="Linux", node="cubieboard2", ...}) = 0
access("/proc/net", R_OK)               = 0
access("/proc/net/unix", R_OK)          = 0
socket(PF_FILE, SOCK_DGRAM, 0)          = 3
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
access("/proc/net/if_inet6", R_OK)      = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 5
access("/proc/net/ax25", R_OK)          = -1 ENOENT (No such file or directory)
access("/proc/net/nr", R_OK)            = -1 ENOENT (No such file or directory)
access("/proc/net/rose", R_OK)          = -1 ENOENT (No such file or directory)
access("/proc/net/ipx", R_OK)           = -1 ENOENT (No such file or directory)
access("/proc/net/appletalk", R_OK)     = -1 ENOENT (No such file or directory)
access("/proc/sys/net/econet", R_OK)    = -1 ENOENT (No such file or directory)
access("/proc/sys/net/ash", R_OK)       = -1 ENOENT (No such file or directory)
access("/proc/net/x25", R_OK)           = -1 ENOENT (No such file or directory)
ioctl(4, SIOCGIFFLAGS, {ifr_name="wlan0", ifr_flags=IFF_BROADCAST|IFF_MULTICAST}) = 0
ioctl(4, SIOCSIFFLAGS, {ifr_name="wlan0", ???}) = -1 ENOENT (No such file or directory)
dup(2)                                  = 6
fcntl64(6, F_GETFL)                     = 0x20002 (flags O_RDWR|O_LARGEFILE)
fstat64(6, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6faf000
_llseek(6, 0, 0xbec9b378, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(6, "SIOCSIFFLAGS: No such file or di"..., 40SIOCSIFFLAGS: No such file or directory
) = 40
close(6)                                = 0
munmap(0xb6faf000, 4096)                = 0
exit_group(-1)                          = ?
回复 支持 反对

使用道具 举报

发表于 2013-12-16 19:24:50 | 显示全部楼层
  1. ls /sys/class/net/
复制代码
看看有没有wlan0这个设备

另外你的是USB无线网卡吧,插入后dmesg看看信息是什么。很多USB网卡都要驱动+固件(firmware)才能用的。

评分

参与人数 1威望 +5 金钱 +5 贡献 +5 收起 理由
0x88 + 5 + 5 + 5 赞一个!

查看全部评分

回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-12-17 10:30:55 | 显示全部楼层
确实少了firmware,使用apt-get install linux-firmware就可以了。谢谢soloforce.
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-23 23:37 , Processed in 0.023988 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部