文章目录
1 RTL8188ETV 驱动源码
- https://github.com/quickreflex/rtl8188eus.git
该仓库最后一次更新已经是 5 年前(2019 年),支持的最新 Linux 内核版本为 5.1.x
- https://github.com/lwfinger/rtl8188eu.git
该仓库最后一次更新已经是 2 年前(2022 年),支持的最新 Linux 内核版本为 5.17
2 驱动编译
2.1 添加驱动源代码
2.1.1 添加 AIC8800 驱动源代码(可选)
# 复制内核源码(来自其驱动的 deb 包解压)
cp ~/aic8800/drivers/aic8800/ -r drivers/net/wireless/
# 打开 drivers/net/wireless/Makefile 文件,添加:
obj-$(CONFIG_AIC_WLAN_SUPPORT) += aic8800/
# 打开 drivers/net/wireless/Kconfig 文件,添加:
source "drivers/net/wireless/aic8800/Kconfig"
2.1.2 添加 RTL8188ETV 驱动源代码
1)lwfinger 仓库的 rtl8188eu 代码不需要合并到内核中一起编译,只需要在将内核编译一遍后引用内核自行即可。
2)quickreflex 仓库的 rtl8188eus 代码,经测试,如果按照 AIC8800 驱动的方式添加到源码中无法编译出驱动,而在驱动外引用内核编译则可以成功生成。
2.2 编译
2.2.1 linux 内核
首先清理一下编译生成的中间文件:
make mrproper # Remove all generated files + config + various backup files'
make distclean # mrproper + remove editor backup and patch files'
1)以 sunxi_defconfig 为基础,生成 .config 配置文件:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sunxi_defconfig
......
#
# configuration written to .config
#
2)编译菜单项配置:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
|
第一级
|
第二级 | 第三级 | 第四级 | 第五级 |
说明
|
|---|---|---|---|---|---|
| Enable loadable module support | |||||
| Networking support | Wireless | cfg80211 - wireless configuration API | |||
| Networking support | Wireless | cfg80211 wireless extensions compatibility |

最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



