我正在开发 odroid HC2,它运行 Debian 9“Stretch”。
在我的日志中,我可以看到 Wifi 缺少驱动程序:
usb 1-1: request_firmware(rtlwifi/rtl8192eu_nic.bin) failed
所以我安装了firmware-realtek包
apt install firmware-realtek
按照安装的输出:
root@ohc2:~# apt install firmware-realtek Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
firmware-realtek
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 342 kB of archives.
After this operation, 1,148 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/non-free armhf firmware-realtek all 20161130-5 [342 kB]
Fetched 342 kB in 0s (582 kB/s)
Selecting previously unselected package firmware-realtek.
(Reading database ... 60762 files and directories currently installed.)
Preparing to unpack .../firmware-realtek_20161130-5_all.deb ...
Unpacking firmware-realtek (20161130-5) ...
Setting up firmware-realtek (20161130-5) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.130) ...
ln: failed to create hard link '/boot/initrd.img-4.14.141+.dpkg-bak' => '/boot/initrd.img-4.14.141+': Operation not permitted
update-initramfs: Generating /boot/initrd.img-4.14.141+
Image Name: uInitrd
Created: Sat Sep 14 10:06:40 2019
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 5722236 Bytes = 5588.12 kB = 5.46 MB
Load Address: 00000000
Entry Point: 00000000
root@ohc2:~#
正如我所看到的,符号链接的创建失败。
另外,显然我无法 modprobe 该模块:
root@ohc2:~# modprobe rtl8192eu
modprobe: FATAL: Module rtl8192eu not found in directory /lib/modules/4.14.141+
我已经尝试清除并重新安装它。
我该如何解决这个问题?
谢谢
答案1
根据 Freddy 的评论,答案如下:
安装编译所需的包
apt update
apt install linux-headers-$(uname -r) git build-essential dkms -y
获取文件
cd /tmp
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
cd rtl8192eu-linux-driver
如果您像我一样使用 Odroid HC2,则需要修改Makefile
(https://github.com/diederikdehaas/rtl8812AU/issues/34)
nano Makefile
将参数CONFIG_PLATFORM_I386_P
C 更改为n
并将参数更改CONFIG_PLATFORM_ARM_RPI
为y
现在编译
dkms add .
dkms install rtl8192eu/1.0
modprobe 8192eu