Navigation

    全志在线开发者论坛

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

    D1 LicheeRV Dock 移植RTL8723DS驱动

    D1-H/D1s
    4
    8
    641
    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.
    • YuzukiTsuru
      柚木鉉 LV 8 last edited by

      RTL8723DS焊接上去了,现在把驱动程序移植上去。

      咱先获取源码:https://github.com/lwfinger/rtl8723ds

      下载完成后,把驱动文件复制到 tina-d1-open\lichee\linux-5.4\drivers\net\wireless\rtl8723ds 里,没有rtl8723ds文件夹记得新建一个。

      fe5ca772-673e-4a45-a2df-c8b39365be51-image.png

      修改tina-d1-open\lichee\linux-5.4\drivers\net\wireless\Makefile,加一行 obj-$(CONFIG_RTL8723DS) += rtl8723ds/

      bb6a7df5-1a7a-4e9a-b680-570e4284fd69-image.png

      修改tina-d1-open\lichee\linux-5.4\drivers\net\wireless\Kconfig,加一行 source "drivers/net/wireless/rtl8723ds/Kconfig"

      fdb8f381-75aa-43c8-94e4-ce36577ec0e5-image.png

      修改tina-d1-open\lichee\linux-5.4\drivers\net\wireless\rtl8723ds\os_dep\linux\os_intfs.c
      加一行MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

      1c869ee5-ccc3-4cd0-b92f-185d830f4d9e-image.png

      修改tina-d1-open\lichee\linux-5.4\drivers\net\wireless\rtl8723ds\os_dep\linux\rtw_cfgvendor.c
      在每一行.policy = VENDOR_CMD_RAW_DATA, 下面加上 .maxattr = 1,

      43e66411-c05e-496a-868a-9034ca7098b6-image.png

      修改tina-d1-open\target\allwinner\d1-lichee_rv_dock\modules.mk,增加以下内容:

      define KernelPackage/net-rtl8723ds
        SUBMENU:=$(WIRELESS_MENU)
        TITLE:=RTL8723DS support (staging)
        DEPENDS:= +r8723ds-firmware +@IPV6 +@USES_REALTEK
        FILES:=$(LINUX_DIR)/drivers/net/wireless/rtl8723ds/8723ds.ko
        AUTOLOAD:=$(call AutoProbe,8723ds)
      endef
      
      define KernelPackage/net-rtl8723ds/description
        Kernel modules for RealTek RTL8723DS support
      endef
      
      $(eval $(call KernelPackage,net-rtl8723ds))
      

      (其中的d1-lichee_rv_dock 是我的板级配置,请选择自己的板级配置比如d1-nezha,如下图)
      93134673-9dd9-4a31-9179-da70d31ede99-image.png

      进入内核配置,勾选Realtek 8723D SDIO or SPI WiFi为Module(<M>不是<*>)

      make kernel_menuconfig
      
      Device Drivers ->
           Network device support -> 
                 Wireless LAN -> 
                        <M>   Realtek 8723D SDIO or SPI WiFi
      

      进入Tina配置,勾选相关驱动

      make menuconfig
      
      Firmware  ->
           <*> r8723ds-firmware.............................. RealTek RTL8723DS firmware
      
      Kernel modules -> 
           Wireless Drivers  ->
              <*> kmod-net-rtl8723ds........................... RTL8723DS support (staging)
      

      保存,编译,打包

      make -j65535
      pack
      

      烧录后就能看到了
      e04b88a3-b684-4cfe-9ddf-ad75bc45daaf-739PM1SA(5)F32B@_B{@3~Q.jpg

      1 Reply Last reply Reply Quote Share 2
      • tigger
        tigger LV 7 last edited by

        ifconfig -a

        是不是有显示 wlan0 和 wlan1?

        wlan1 是不是可以作为热点用?

        YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
        • YuzukiTsuru
          柚木鉉 LV 8 @tigger last edited by

          @tigger 对,是有2个

          可以当热点用,一个STATION模式一个AP模式,如果不想要两个可以修改Makefile加一行

          EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
          

          660f14e7-50d9-49bc-92d8-2fb038ea07bc-2.jpg

          tigger 1 Reply Last reply Reply Quote Share 0
          • tigger
            tigger LV 7 @YuzukiTsuru last edited by

            @yuzukitsuru
            那岂不是可以蹭邻居家wifi给全村(家)人用😇😇😇

            1 Reply Last reply Reply Quote Share 0
            • YuzukiTsuru
              柚木鉉 LV 8 last edited by

              @tigger 当然可以(

              1 Reply Last reply Reply Quote Share 0
              • YuzukiTsuru
                柚木鉉 LV 8 last edited by

                测了一下速度
                1bd6a809-dc2f-4e90-9cba-963693af5797-w.png

                1 Reply Last reply Reply Quote Share 0
                • BedRock
                  BedRock LV 6 last edited by

                  👍 👍 👍 点赞支持

                  1 Reply Last reply Reply Quote Share 0
                  • Referenced by  M memory 
                  • Referenced by  Chrithon Chrithon 
                  • Referenced by  q1215200171 q1215200171 
                  • Referenced by  q1215200171 q1215200171 
                  • L
                    lecndav LV 2 last edited by

                    @YuzukiTsuru Hi, thanks for the guide to port the driver! I have the problem, that the D1 LicheeRV dock with tina linux is not getting any TCP broadcast or ARP messages. Therefore the device is not reachable within the network. But it is working the other way round. So the device is connected, has an IP, can ping the default gateway, has connection to the internet, ... But it is not possible to ping the device from another PC in the network.

                    "tcpdump arp" does not show any messages besides from the default gateway.

                    Is this problem familiar to you?

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

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

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