![在 Xubuntu 14.10 上“不可能”安装 Ralink rt5370 驱动程序](https://linux22.com/image/866893/%E5%9C%A8%20Xubuntu%2014.10%20%E4%B8%8A%E2%80%9C%E4%B8%8D%E5%8F%AF%E8%83%BD%E2%80%9D%E5%AE%89%E8%A3%85%20Ralink%20rt5370%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F.png)
我确实需要帮助才能在 Xubuntu 14.10 上安装此驱动程序。我无法获取我的 WiFi USB 网络加密狗 (elmak SAVIO CL-63),它附带一张 CD-ROM,其中包含用于 Linux 的芯片组 RT5370 的驱动器。
我有最新的 Linux 标头,当我运行命令时,lsusb
结果是:
Bus 001 Device 016: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
我运行了该命令,编译结束sudo make clean
后的结果如下:sudo make && make install
CC [M] /home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/../../sta/wpa.o
CC [M] /home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/../../sta/ags.o
CC [M] /home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/../../sta/sta_cfg.o
/home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/../../sta/sta_cfg.c:4935:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^
/home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/../../sta/sta_cfg.c:4935:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1345: recipe for target '_module_/home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux' failed
make[1]: *** [_module_/home/vladimir/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-28-generic'
Makefile:356: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
所以我无法安装驱动程序。我添加到blacklist.conf
:
blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2800usb
/etc/Wireless/RT2870STA$/RT2870STA.dat
并创建了一个目录
我该如何继续?
答案1
我建议的第一步是将内部卡的驱动程序列入黑名单,以便驱动程序套件不会干扰。从终端:
sudo -i
echo "blacklist ath5k" >> /etc/modprobe.d/blacklist.conf
modprobe -r ath5k
exit
可能需要重新启动。如果此方法无效,我将编辑此答案并添加进一步的步骤。