Navigation

    全志在线开发者论坛

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

    D1 LicheeRV Dock 移植RTL8723DS驱动

    MR Series
    14
    18
    8382
    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 9 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

      D CWEIB 2 Replies Last reply Reply Quote Share 2
      • tigger
        tigger LV 7 last edited by

        ifconfig -a

        是不是有显示 wlan0 和 wlan1?

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

        YuzukiTsuru X 2 Replies Last reply Reply Quote Share 1
        • YuzukiTsuru
          柚木 鉉 LV 9 @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 1
          • tigger
            tigger LV 7 @YuzukiTsuru last edited by

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

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

              @tigger 当然可以(

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

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

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

                  👍 👍 👍 点赞支持

                  1 Reply Last reply Reply Quote Share 1
                  • Referenced by  M memory 
                  • Referenced by  Chrithon Chrithon 
                  • Referenced by  q1215200171 q1215200171 
                  • Referenced by  q1215200171 q1215200171 
                  • L
                    lecndav LV 5 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?

                    L 1 Reply Last reply Reply Quote Share 1
                    • Y
                      YterAA LV 7 last edited by YterAA

                      This post is deleted!
                      1 Reply Last reply Reply Quote Share 0
                      • L
                        lecndav LV 5 @lecndav last edited by

                        @lecndav Turns out it was a combination of a bug in our unifi access points and a (minor) bug in the driver. After updating the access points, broadcast and arp are working.

                        1 Reply Last reply Reply Quote Share 0
                        • thorinkong
                          徵船 LV 3 last edited by

                          @yuzukitsuru 在 D1 LicheeRV Dock 移植RTL8723DS驱动 中说:

                          Kernel modules ->
                          Wireless Drivers ->
                          <*> kmod-net-rtl8723ds........................... RTL8723DS support (staging)

                          这里有两个kmod-net-rtl8723ds选项,是正常的吗?

                          walker2048 1 Reply Last reply Reply Quote Share 0
                          • D
                            dream LV 6 @YuzukiTsuru last edited by

                            @yuzukitsuru 在 D1 LicheeRV Dock 移植RTL8723DS驱动 中说:

                            make -j65535
                            pack

                            厉害厉害。

                            1 Reply Last reply Reply Quote Share 0
                            • walker2048
                              walker2048 LV 5 @thorinkong last edited by

                              @thorinkong 哈哈哈,我这儿也一样(有两个),反正能用

                              1 Reply Last reply Reply Quote Share 0
                              • J
                                JIAndanai LV 4 last edited by

                                为什么我重新配置内核后, 再编译就会有一堆选项要选

                                1 Reply Last reply Reply Quote Share 0
                                • X
                                  xfdr0805 LV 5 @tigger last edited by

                                  @tigger 在 D1 LicheeRV Dock 移植RTL8723DS驱动 中说:

                                  ifconfig -a

                                  是不是有显示 wlan0 和 wlan1?

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

                                  大佬,研究一下airkiss或者smartconfig,我在8723ds测试 不太稳定,有时可以配网成功 有时不行,不知道怎么修改

                                  L D 2 Replies Last reply Reply Quote Share 0
                                  • Referenced by  WhycanService WhycanService 
                                  • L
                                    luciferseva LV 3 @xfdr0805 last edited by

                                    @xfdr0805 好像确实速率上会有些问题?

                                    1 Reply Last reply Reply Quote Share 0
                                    • CWEIB
                                      CWEIB LV 4 @YuzukiTsuru last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote Share 0
                                      • D
                                        didiao LV 4 @xfdr0805 last edited by

                                        @xfdr0805 @xfdr0805 大佬这个问题您解决了吗,我也是按照上文的步骤,wifi还总是断开,信号也不稳定

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

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

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