我有一张 Ralink 的无线 N 卡。在芯片上我读到数字“RT3062f”。我正在运行 Ubuntu 11.10。
在全新安装的 Ubuntu 上,卡可以被识别,但未检测到任何信号(这不太可能,因为它位于路由器旁边,并且我所有其他设备都连接良好)。
我尝试从卡附带的 CD 安装驱动程序,但无法编译。我还尝试从 Ralink 网站下载驱动程序,但安装后,卡根本无法扫描。
以下是一些我认为方向正确的论坛帖子链接:
http://ubuntuforums.org/showthread.php?t=1908542
http://ubuntuforums.org/showthread.php?t=1609086
诊断:
morgan@mohi:~/Downloads$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
morgan@mohi:~/Downloads$ iwlist scanning
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
wlan0 No scan results
morgan@mohi:~/Downloads$ sudo lsmod
Module Size Used by
nls_utf8 12493 1
isofs 39549 1
bnep 17923 2
rfcomm 38408 0
bluetooth 148839 10 bnep,rfcomm
binfmt_misc 17292 1
snd_intel8x0 33318 2
snd_ac97_codec 106082 1 snd_intel8x0
ac97_bus 12642 1 snd_ac97_codec
snd_pcm 80435 2 snd_intel8x0,snd_ac97_codec
arc4 12473 2
snd_seq_midi 13132 0
snd_rawmidi 25241 1 snd_seq_midi
snd_seq_midi_event 14475 1 snd_seq_midi
rt2800pci 18340 0
rt2800lib 48909 1 rt2800pci
crc_ccitt 12595 1 rt2800lib
rt2x00pci 14202 1 rt2800pci
rt2x00lib 48146 3 rt2800pci,rt2800lib,rt2x00pci
joydev 17393 0
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
mac80211 393421 3 rt2800lib,rt2x00pci,rt2x00lib
snd_timer 28932 2 snd_pcm,snd_seq
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
hid_microsoft 12728 0
cfg80211 172427 2 rt2x00lib,mac80211
usbhid 41905 0
hid 77367 2 hid_microsoft,usbhid
i915 509519 3
snd 55902 11 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 12600 1 snd
eeprom_93cx6 12653 1 rt2800pci
drm_kms_helper 32889 1 i915
drm 192194 4 i915,drm_kms_helper
snd_page_alloc 14115 2 snd_intel8x0,snd_pcm
i2c_algo_bit 13199 1 i915
video 18908 1 i915
ppdev 12849 0
psmouse 73673 0
serio_raw 12990 0
parport_pc 32114 1
lp 17455 0
parport 40930 3 ppdev,parport_pc,lp
tg3 132972 0
floppy 60310 0
如果我尝试从 CD 编译驱动程序:
morgan@mohi:~/Downloads/2009_0521_RT2860_Linux_STA_V2.1.2.0$ sudo make
make -C tools
...
/home/morgan/Downloads/2009_0521_RT2860_Linux_STA_V2.1.2.0/os/linux/../../os/linux/rt_linux.c:1570:10: error: ‘struct net_device’ has no member named ‘open’
/home/morgan/Downloads/2009_0521_RT2860_Linux_STA_V2.1.2.0/os/linux/../../os/linux/rt_linux.c:1571:10: error: ‘struct net_device’ has no member named ‘stop’
/home/morgan/Downloads/2009_0521_RT2860_Linux_STA_V2.1.2.0/os/linux/../../os/linux/rt_linux.c:1572:10: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/morgan/Downloads/2009_0521_RT2860_Linux_STA_V2.1.2.0/os/linux/../../os/linux/rt_linux.c:1573:10: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/morgan/Downloads/2009_0521_RT2860_Linux_STA_V2.1.2.0/os/linux/../../os/linux/rt_linux.c:1579:11: error: ‘struct net_device’ has no member named ‘get_stats’
/home/morgan/Downloads/2009_0521_RT2860_Linux_STA_V2.1.2.0/os/linux/../../os/linux/rt_linux.c:1613:9: error: ‘struct net_device’ has no member named ‘validate_addr’
make[2]: *** [/home/morgan/Downloads/2009_0521_RT2860_Linux_STA_V2.1.2.0/os/linux/../../os/linux/rt_linux.o] Error 1
make[1]: *** [_module_/home/morgan/Downloads/2009_0521_RT2860_Linux_STA_V2.1.2.0/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-16-generic'
make: *** [LINUX] Error 2
从网站安装驱动程序后
morgan@mohi:~$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
ra0 Ralink STA
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 invalid crypt:0 invalid misc:0
morgan@mohi:~$ iwlist scanning
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
ra0 Interface doesn't support scanning.
非常感谢!
答案1
好的,是的,您确实需要安装 Ralink 的驱动程序才能使该卡工作。但是有一个更新的版本可用。我使用的是 4.1.1 版。我建议您找到并下载该版本。它应该可以从 Ralinktech 网站获得。
获取驱动程序后,将其展开到其自己的目录中。从该目录运行“sudo make”,然后运行“sudo make install”。然后运行“sudo modprobe rt3562sta”。您的无线网络应在几秒钟内启动。
将默认模块 rt2800pci 列入黑名单也是一个好主意。
此外,每次 Linux 内核升级到更高版本后,您都必须重新安装此驱动程序。