我正在尝试在我的系统(ubuntu 18.04)上安装 mt7630e 驱动程序,但是在输入命令时sudo ./install
我得到了以下信息:
rahit@Eleven:~/MT7630E-release$ sudo ./install
[sudo] password for rahit:
make -C /lib/modules/4.15.0-20-generic/build M=/home/rahit/MT7630E-release/rt2x00 modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'
CC [M] /home/rahit/MT7630E-release/rt2x00/rt2x00dev.o
cc1: error: code model kernel does not support PIC mode
scripts/Makefile.build:332: recipe for target '/home/rahit/MT7630E-release/rt2x00/rt2x00dev.o' failed
make[2]: *** [/home/rahit/MT7630E-release/rt2x00/rt2x00dev.o] Error 1
Makefile:1552: recipe for target '_module_/home/rahit/MT7630E-release/rt2x00' failed
make[1]: *** [_module_/home/rahit/MT7630E-release/rt2x00] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-20-generic'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
rahit@Eleven:~/MT7630E-release$
我应该怎么办?
我从 github 下载了驱动程序-https://github.com/neurobin/MT7630E。
答案1
该模块可以在我干净的 Ubuntu 18.04 LTS(64 位)上使用以下命令正常编译:
sudo apt-get install git build-essential linux-headers-generic libelf-dev dkms
git clone https://github.com/neurobin/MT7630E.git
cd MT7630E
sudo ./install
sudo make dkms