Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    D1移植rtl8723wifi驱动

    D1系列-RISC-V
    5
    8
    810
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yaoxiaoyao LV 5 last edited by

      1、获取rtl8723驱动源码
      源码上传到了码云:https://gitee.com/yao-xiaoyao/rtl8723.git
      2、源码结构
      c38bc657-a770-4729-8a53-c3e4e06b0dc5-image.png
      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
      0cadac0c-5d2e-4221-a385-e49e7e732509-image.png

      5886952c-0002-460d-931a-b5d1020ebe85-image.png
      baba1710-2625-47b5-9db0-3e5855e7b8e6-image.png

      1 Reply Last reply Reply Quote Share 0
      • M
        memory LV 7 last edited by

        楼主优秀! 这是 RTL8723BS 还是 RTL8723DS 呢?

        Y 1 Reply Last reply Reply Quote Share 0
        • xiaowenge
          DOT小文哥 LV 8 last edited by

          完了完了,我们的XR829更没市场了

          1 Reply Last reply Reply Quote Share 0
          • Y
            yaoxiaoyao LV 5 @memory last edited by

            @memory rtl8723du

            M 1 Reply Last reply Reply Quote Share 0
            • M
              memory LV 7 @yaoxiaoyao last edited by

              @yaoxiaoyao

              想不到 8723 居然那么多后缀

              Y 1 Reply Last reply Reply Quote Share 0
              • Y
                yaoxiaoyao LV 5 @memory last edited by

                @memory 驱动结构好像都差不多

                1 Reply Last reply Reply Quote Share 0
                • Referenced by  q1215200171 q1215200171 
                • Referenced by  q1215200171 q1215200171 
                • L
                  lecndav LV 3 last edited by

                  Is bluetooth working as well on your board?

                  S 1 Reply Last reply Reply Quote Share 0
                  • S
                    sjzliyue926 LV 1 @lecndav last edited by

                    @lecndav 这个rtl8723du的驱动有tcp 小包的优化策略吗?

                    1 Reply Last reply Reply Quote Share 0
                    • 1 / 1
                    • First post
                      Last post

                    Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                    行为准则 | 用户协议 | 隐私权政策