ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.8k stars 1.86k forks source link

小米盒子 4C 无线网络驱动编译请教 #2433

Closed PJ-568 closed 1 month ago

PJ-568 commented 1 month ago

Device Information | 设备信息

Armbian Version | 系统版本

Describe the bug | 问题描述

开机后无法找到并使用 rtl8188ftv 驱动,遂尝试编译。

kelebek333/rtl8188fu

sudo apt-get install build-essential git dkms linux-headers-$(uname -r)
git clone https://github.com/kelebek333/rtl8188fu
sudo dkms install ./rtl8188fu
sudo cp ./rtl8188fu/firmware/rtl8188fufw.bin /lib/firmware/rtlwifi/

我在执行第一步时无法找到正确的 linux-headers。在执行第三条命令时也出现 linux-headers 相关错误。

请问我应该如何找到相应的 linux-headers?

ophub commented 1 month ago

linux-headers-xxx 在 /usr/src/ 目录下,不需要安装。

PJ-568 commented 1 month ago

我在 /usr/src/linux-headers-6.1.98-ophub 下执行 make scripts 出现错误:

Configuration file ".config" not found!
...
PJ-568 commented 1 month ago
git clone https://github.com/kelebek333/rtl8188fu
sudo dkms install ./rtl8188fu

...
'make'all KVER=6.1.98-ophub...(bad exit status: 2)
Error! bad return status for module build on kernel: 6.1.98-ophub (aarch64)
Consult .../log.txt for more info..
ophub commented 1 month ago

https://github.com/ophub/amlogic-s9xxx-armbian/issues/1043#issuecomment-1432720738

PJ-568 commented 1 month ago

原驱动仓库提供的代码似乎存在问题。遂更换内核至 5.15.163 以使用内核自带驱动,但重启后复现 #1392 问题。因此 Fork 本仓库用 Actions 编译安装 Armbian_24.8.0_amlogic_s905l_jammy_5.15.163_server_2024.07.20.img.gz 。#1392 问题依旧。采用 https://github.com/ophub/amlogic-s9xxx-armbian/issues/1392#issuecomment-1645140608 方案临时解决。

自此,网络问题得到解决。