D1移植rtl8723wifi驱动
-
1、获取rtl8723驱动源码
源码上传到了码云:https://gitee.com/yao-xiaoyao/rtl8723.git
2、源码结构
3、修改源码支持linux5.4
需要修改文件rtl8821cu/os_dep/os_intfs.c--- a/rtl8821cu/os_dep/os_intfs.c +++ b/rtl8821cu/os_dep/os_intfs.c @@ -28,6 +28,8 @@ MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Realtek Wireless Lan Driver"); MODULE_AUTHOR("Realtek Semiconductor Corp."); MODULE_VERSION(DRIVERVERSION); +MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
需要修改文件rtl8821cu/os_dep/rtw_cfgvendor.c
--- a/rtl8821cu/os_dep/rtw_cfgvendor.c +++ b/rtl8821cu/os_dep/rtw_cfgvendor.c #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)) .policy = VENDOR_CMD_RAW_DATA, ++++ .maxattr = 1 #endif
4、交叉编译
make ARCH=riscv CROSS_COMPILE=/home/linux/tina-d1-open/prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/bin/riscv64-unknown-linux-gnu- KSRC=/home/linux/tina-d1-open/lichee/linux-5.4
5、下载到开发板上面insmod
-
楼主优秀! 这是 RTL8723BS 还是 RTL8723DS 呢?
-
完了完了,我们的XR829更没市场了
-
@memory rtl8723du
-
想不到 8723 居然那么多后缀
-
@memory 驱动结构好像都差不多
-
-
-
Is bluetooth working as well on your board?
-
@lecndav 这个rtl8723du的驱动有tcp 小包的优化策略吗?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号