如何在 Ubuntu 12.04 上运行 ID 148f:5370 Ralink Technology, Corp. RT5370 无线适配器

如何在 Ubuntu 12.04 上运行 ID 148f:5370 Ralink Technology, Corp. RT5370 无线适配器

我在 Ubuntu 12.04 机器上运行 ID 148f:5370 Ralink Technology, Corp. RT5370 无线适配器时遇到了问题。我已从http://www.mediatek.com/_en/07_downloads/dl.php并编译它们并激活对以下项的支持:

HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

make 和 make install 没有任何问题。

我还将其添加到黑名单中:

blacklist rt2800usb
blacklist rt2870sta

插入设备时我得到

[ 1625.120102] usb 1-1.2: new high-speed USB device number 7 using ehci_hcd
[ 1625.232103] 
[ 1625.232106] 
[ 1625.232107] === pAd = ffffc900228ea000, size = 598360 ===
[ 1625.232109] 
[ 1625.232241] <-- RTMPAllocAdapterBlock, Status=0
[ 1625.232419] Efuse Size=0x2d [2d0-2fc] 
[ 1625.232776] NVM is EFUSE
[ 1625.249500] ADDRCONF(NETDEV_UP): ra0: link is not ready

Syslog 对此进行了一些扩展:

Nov 19 17:27:03 betschwa kernel: [ 1625.120102] usb 1-1.2: new high-speed USB device number 7 using ehci_hcd
Nov 19 17:27:03 betschwa kernel: [ 1625.232103] 
Nov 19 17:27:03 betschwa kernel: [ 1625.232106] 
Nov 19 17:27:03 betschwa kernel: [ 1625.232107] === pAd = ffffc900228ea000, size = 598360 ===
Nov 19 17:27:03 betschwa kernel: [ 1625.232109] 
Nov 19 17:27:03 betschwa kernel: [ 1625.232241] <-- RTMPAllocAdapterBlock, Status=0
Nov 19 17:27:03 betschwa mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2"
Nov 19 17:27:03 betschwa kernel: [ 1625.232419] Efuse Size=0x2d [2d0-2fc] 
Nov 19 17:27:03 betschwa kernel: [ 1625.232776] NVM is EFUSE
Nov 19 17:27:03 betschwa mtp-probe: bus: 1, device: 7 was not an MTP device
Nov 19 17:27:03 betschwa NetworkManager[1092]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/net/ra0, iface: ra0)
Nov 19 17:27:03 betschwa NetworkManager[1092]:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/net/ra0, iface: ra0): no ifupdown configuration found.
Nov 19 17:27:03 betschwa NetworkManager[1092]: <warn> failed to allocate link cache: (-10) Operation not supported
Nov 19 17:27:03 betschwa NetworkManager[1092]: <info> (ra0): driver does not support SSID scans (scan_capa 0x00).
Nov 19 17:27:03 betschwa NetworkManager[1092]: <info> (ra0): using WEXT for WiFi device control
Nov 19 17:27:03 betschwa NetworkManager[1092]: <error> [1384878423.166788] [nm-device-wifi.c:2591] real_update_permanent_hw_address(): (ra0): unable to read permanent MAC address (error 0)
Nov 19 17:27:03 betschwa NetworkManager[1092]: <info> (ra0): new 802.11 WiFi device (driver: 'usb' ifindex: 7)
Nov 19 17:27:03 betschwa NetworkManager[1092]: <info> (ra0): exported as /org/freedesktop/NetworkManager/Devices/6
Nov 19 17:27:03 betschwa NetworkManager[1092]: <info> (ra0): now managed
Nov 19 17:27:03 betschwa NetworkManager[1092]: <info> (ra0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov 19 17:27:03 betschwa NetworkManager[1092]: <info> (ra0): bringing up device.
Nov 19 17:27:03 betschwa NetworkManager[1092]: <info> (ra0): deactivating device (reason 'managed') [2]
Nov 19 17:27:03 betschwa NetworkManager[1092]: <warn> (ra0): error 100 getting card mode
Nov 19 17:27:03 betschwa NetworkManager[1092]: <error> [1384878423.168059] [wifi-utils-wext.c:155] wifi_wext_set_mode(): (ra0): error setting mode 2
Nov 19 17:27:03 betschwa kernel: [ 1625.249500] ADDRCONF(NETDEV_UP): ra0: link is not ready
Nov 19 17:27:03 betschwa NetworkManager[1092]: <warn> (ra0): error 100 getting card mode

我还遗漏了什么?是否有任何可用的 Ubuntu deb?

答案1

有两种可能,第一种是你没有安装ralink固件,试试

  sudo apt-get install linux-firmware-nonfree

然后关闭电脑并重新打开,看看它是否正常工作。

如果这还不够,那么打开一个终端,创建一个空目录,然后发出以下命令:

 wget http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.12.1/backports-3.12.1-1.tar.bz2
 tar xvf backports-3.12.1-1.tar.bz2
 cd backports-3.12.1-1
 make defconfig-wifi
 make
 sudo make install

联合国-blacklist rt2800usb,因为这正是您的模块。关闭您的电脑,然后重新打开,它现在应该可以工作了。您可以通过以下方式检查它

 modinfo rt2800usb | grep 148F | grep 5370

应该返回

 alias:          usb:v148Fp5370d*dc*dsc*dp*ic*isc*ip*in*

如果它不起作用,请将竞争对手的模块(您上面尝试安装但未成功的模块)列入黑名单,关闭电脑然后重新打开,希望这次它可以起作用。

相关内容