-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile a driver #2431
Comments
You can include the complete driver code in the kernel source code, add it to the configuration options, enable it, and then compile the kernel. Alternatively, you can compile and install a specific driver separately in the current Armbian system. |
Sorry, I'm still confused about where to start. but the Wifi doesn't work and I checked and it turns out the RTL81889fs driver doesn't exist, it seems the 6.x.x kernel doesn't include that driver. So I want to compile my own driver based on https://github.com/jwrdegoede/rtl8189ES_linux But I don't know what the stages are. I looked for it on Wiki and it wasn't there. |
Try this, it might work. sudo apt update
sudo apt install -y build-essential dkms unzip
cd
wget https://github.com/jwrdegoede/rtl8189ES_linux/archive/master.zip
unzip master.zip
cd rtl8189ES_linux
make
make install
modprobe rtl8189es |
GET ERROR : root@armbian:/home/hg680p/rtl8189ES_linux# make |
Hi, Chris |
Thanks for the heads-up! I found an issue with the invalid symbolic link address for "build" in |
STILL ERROR root@armbian:/home/hg680p/rtl8189ES_linux# make ARCH=arm64 -C /lib/modules/$(uname -r)/build M=/home/hg680p/rtl8189ES_linux modules -j4 |
Hi @ChandraOrbit, I'm here too (I use kernel 5.15.162-ophub). |
STILL ERROR [ INFO ] Start adjusting compilation toolchain [ /usr/local/toolchain/arm-gnu-toolchain-13.3.rel1-aarch64-aarch64-none-elf ]... |
I tried flashing my STB using the image https://www.armbian.com/download/ |
I also tried to compile the driver on a Station M1 under Armbian 24.2.1 Jammy with kernel 6.1.77 from www.armbian.com/download and it was as simple as It didn't go to the end, probably because I didn't find a proper CONFIG_PLATFORM in the Makefile, but there were no problem related to the headers. We have a debian/Jammy in the two cases :-/ |
一样的尝试在盒子里编译github上找到8188gu网卡驱动,结果报错: |
刚刚修复了这个问题,header里遗失了一些文件,f大修复了编译内核的脚步,我同步更新了,但是我还没跑完测试: https://github.com/ophub/kernel/actions/runs/10073384652 等测试好了,重新编译内核,安装新内核即可。 目前还有一种做法,是更新到dev系列里的内核,这个的包含了这些缺少的文件,是我在armbian里编译的。 |
如果安装内核失败,可以使用u盘启动armbian,对emmc里的内核进行救援恢复 详细介绍在仓库的首页有说明 |
冒昧的问一下,首页没找到ramfs里怎么设置从U盘启动,只看到从U盘启动后备份/恢复,目前从ramfs里也看没有找到备份的文件夹/ddbr |
感谢回复,教程内修复及更新内容写得非常详细,我只是在目前环境如果不重刷安卓系统还不知道怎么设置从U盘启动,第一次在机顶盒刷这个系统不是很了解,打扰了 |
只要从U盘启动过一次,就不需要再刷安卓了,安卓系统只有刷机救砖的时候用,平时直接从U盘启动新armbian系统就可以救援内核,或者重新安装等。 |
安装gcc编译工具链更新到最新内核(2024.07.25日以后编译的内核,必须操作)linux-6.1.y 内核下测试:linux-6.6.y 内核下测试文字版说明
这个帖子里的方法,我已经放在帮助文档里了,具体详见9.3 |
感谢提供示例操作,我是在更新内核的时候就直接进不去系统了,不知道是不是因为首次安装时重编译过dtb文件,修改了频率的原因,今天重新下载dev最新版内核后把我机器(UNT402A S905L)修改后的dtb改到内核文件的包里重新计算了sha256值,目前内核更新成功了. 测试编译rtl8188gu无线驱动https://github.com/lwfinger/rtl8xxxu,编译还是失败了,不知道什么原因 |
我给你费劲巴拉写了4步,你就1步概括了?编译工具呢?环境设置呢?我给你图文并茂地写了半天,你又自己敲了?错误日志上写的很清楚,gcc不同。你不想看我的说明,就自己认真看错误日志,根据提示进行操作。 |
老大,莫生气,每一步都按你写的做了,只是截图没有截出来,只截了报错的部分,第一步内核更新了dev的最新版,第二步安装编译工具也完成了(armbian-kernel -u没有更新,盒子总共才8G,存储不够)环境也是按你写的全部配置了的,第三步失败了,根据你的教程make的时候会报错,所以根据AI提示加了headers源码路径还是报错,看了下貌似是GLIBC版本不一致,在根据AI提示编译高版本的glibc |
Thank you, you are the best, it's been successful, I finally compiled the Wifi rtl8189fs driver
|
你好, 我按照教程编译并 加载了驱动, 为何在nmtui里面依然看不到无线网卡? |
Hi, could you please share your DTB file? My device has the same wireless card as yours, but unfortunately, my current DTB cannot successfully identify the wireless card. If you can provide me with your DTB for reference, it would be very grateful! |
Some kernels do not have drivers for certain machines, but in older kernels there are.
How do I compile a driver, for example the RTL8189FS wireless driver?
Please guide?
The text was updated successfully, but these errors were encountered: