我想使用 Kubuntu 而不是 Windows,所以我目前在 VM VirtualBox 上运行 Kubuntu。我(虚拟地)将我的 USB 密钥与 Wi-fi 密钥的驱动程序以及 Wi-fi 密钥本身插入。然后我将驱动程序复制到桌面上,并在 makefile 目录中执行“sudo make install”。然后控制台告诉我缺少一个 .ko 文件 (m7662u.ko)。我是新用户,所以我几乎对驱动程序和 Linux 一无所知,如果您能提供简单的帮助和良好的解释,我将不胜感激!谢谢 :D
以下是控制台的线路:
kubuntu@kubuntu:~/Desktop/DPO$ sudo make install
make -C /home/kubuntu/Desktop/DPO/os/linux -f Makefile.6 install
make[1]: Entering directory '/home/kubuntu/Desktop/DPO/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /home/kubuntu/Desktop/DPO/conf/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/5.4.0-26-generic/kernel/drivers/net/wireless/
install -m 644 -c mt7662u_sta.ko /lib/modules/5.4.0-26-generic/kernel/drivers/net/wireless/
install: cannot stat 'mt7662u_sta.ko': No such file or directory
make[1]: *** [Makefile.6:784: install] Error 1
make[1]: Leaving directory '/home/kubuntu/Desktop/DPO/os/linux'
make: *** [Makefile:483: install] Error 2
经过简单的 sudo make,我得到了这个:
kubuntu@kubuntu:~/Desktop/DPO$ sudo make
make -C tools
make[1]: Entering directory '/home/kubuntu/Desktop/DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/kubuntu/Desktop/DPO/tools'
/home/kubuntu/Desktop/DPO/tools/bin2h
chipset = mt7662u
chipset = mt7632u
chipset = mt7612u
cp -f os/linux/Makefile.6 /home/kubuntu/Desktop/DPO/os/linux/Makefile
make -C /lib/modules/5.4.0-26-generic/build SUBDIRS=/home/kubuntu/Desktop/DPO/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-26-generic'
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --syncconfig Kconfig
make[2]: *** No rule to make target 'arch/x86/tools/relocs_32.c', needed by 'arch/x86/tools/relocs_32.o'. Stop.
make[1]: *** [arch/x86/Makefile:232: archscripts] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-26-generic'
make: *** [Makefile:391: LINUX] Error 2
这是该问题的论坛:一个简单的 make 出现问题,我该怎么办?
您可以在此处下载驱动程序: https://www.mediatek.com/products/broadbandWifi/mt7612u
答案1
您可能首先必须make
在模块目录中运行。当make
完成且无错误时,您可以执行sudo make install
。