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