我读了很多文章,但没有什么帮助。我正在运行 UBUNTU 16.04。
两天来,我一直尝试为我的 HP Pavilion dv7 安装 Wi-Fi 驱动程序(Ralink RT5390),但至今没有成功,除了我成功启用了屏幕右上角的“启用 Wi-Fi”按钮,同时按照论坛上其他驱动程序的步骤操作。但是没有出现任何网络。
然后,我按照 GitHub 上的一些步骤安装适合我的驱动程序,步骤如下:
https://github.com/Inglebard/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO_v2
下载档案
提取内容
cd 2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO
复制文件补丁
2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO
patch -p1 < rt5592sta_fix_64bit_3.8.patch
(如果要求目录则指向pci_main_dev.c
)确保
/os/linux/config.mk
阅读HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
make
sudo make install
modprobe rt5390sta
但是当执行第 7 步的“make”命令时,它似乎不起作用。
错误:
scripts/Makefile.build:308: recipe for target '/home/zrobot/Downloads/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../chips/rtmp_chip.o' failed
make[2]: *** [/home/zrobot/Downloads/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../chips/rtmp_chip.o] Error 1
Makefile:1550: recipe for target '_module_/home/zrobot/Downloads/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux' failed
make[1]: *** [_module_/home/zrobot/Downloads/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-36-generic'
Makefile:375: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
非常感谢您的帮助!
答案1
我4.4.0-116-generic
按照以下步骤在内核上编译了这个模块:
sudo apt-get install git
git clone https://github.com/Inglebard/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO_v2.git
cd 2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO_v2
tar -xjvf 2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO_v2.tar.bz2.bz2
cd 2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO
cp ../patch/rt5592sta_fix_64bit_3.8.patch .
patch -p1 <rt5592sta_fix_64bit_3.8.patch
sed -i "s\HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n\HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y\g" os/linux/config.mk
sudo make # sudo is needed because of /tftpboot
sudo make install
sudo modprobe rt5390sta
模块已成功加载:
$ lsmod | grep ^rt
rt5390sta 1441792 0
$ modinfo rt5390sta
filename: /lib/modules/4.4.0-116-generic/kernel/drivers/net/wireless/rt5390sta.ko
version: 2.6.0.0
srcversion: 30A94311FFD42FD05E12867
alias: pci:v00001186d00003C05sv*sd*bc*sc*i*
alias: pci:v00001814d00005362sv*sd*bc*sc*i*
alias: pci:v00001814d00005392sv*sd*bc*sc*i*
alias: pci:v00001814d0000539Fsv*sd*bc*sc*i*
alias: pci:v00001814d00005390sv*sd*bc*sc*i*
alias: pci:v00001814d00003390sv*sd*bc*sc*i*
alias: pci:v00001814d00003092sv*sd*bc*sc*i*
alias: pci:v00001814d00003091sv*sd*bc*sc*i*
alias: pci:v00001814d00003090sv*sd*bc*sc*i*
depends:
vermagic: 4.4.0-116-generic SMP mod_unload modversions retpoline
parm: mac:rt28xx: wireless mac addr (charp)
但我无法4.13.0-36-generic
按照您写的方式进行编译。
其他司机来自 https://github.com/agerwick/RT28XX-RT539X-Linux-driver在 4.13 上也无法编译。