D1 LicheeRV Dock 移植RTL8723DS驱动
-
RTL8723DS焊接上去了,现在把驱动程序移植上去。
咱先获取源码:https://github.com/lwfinger/rtl8723ds
下载完成后,把驱动文件复制到
tina-d1-open\lichee\linux-5.4\drivers\net\wireless\rtl8723ds
里,没有rtl8723ds
文件夹记得新建一个。修改
tina-d1-open\lichee\linux-5.4\drivers\net\wireless\Makefile
,加一行obj-$(CONFIG_RTL8723DS) += rtl8723ds/
修改
tina-d1-open\lichee\linux-5.4\drivers\net\wireless\Kconfig
,加一行source "drivers/net/wireless/rtl8723ds/Kconfig"
修改
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);
修改
tina-d1-open\lichee\linux-5.4\drivers\net\wireless\rtl8723ds\os_dep\linux\rtw_cfgvendor.c
在每一行.policy = VENDOR_CMD_RAW_DATA,
下面加上.maxattr = 1,
修改
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
,如下图)
进入内核配置,勾选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
烧录后就能看到了
-
ifconfig -a
是不是有显示 wlan0 和 wlan1?
wlan1 是不是可以作为热点用?
-
@tigger 对,是有2个
可以当热点用,一个STATION模式一个AP模式,如果不想要两个可以修改Makefile加一行
EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
-
@yuzukitsuru
那岂不是可以蹭邻居家wifi给全村(家)人用 -
@tigger 当然可以(
-
测了一下速度
-
点赞支持
-
-
-
-
-
@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?
-
This post is deleted! -
@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.
-
@yuzukitsuru 在 D1 LicheeRV Dock 移植RTL8723DS驱动 中说:
Kernel modules ->
Wireless Drivers ->
<*> kmod-net-rtl8723ds........................... RTL8723DS support (staging)这里有两个kmod-net-rtl8723ds选项,是正常的吗?
-
-
@thorinkong 哈哈哈,我这儿也一样(有两个),反正能用
-
为什么我重新配置内核后, 再编译就会有一堆选项要选
-
@tigger 在 D1 LicheeRV Dock 移植RTL8723DS驱动 中说:
ifconfig -a
是不是有显示 wlan0 和 wlan1?
wlan1 是不是可以作为热点用?
大佬,研究一下airkiss或者smartconfig,我在8723ds测试 不太稳定,有时可以配网成功 有时不行,不知道怎么修改
-
-
@xfdr0805 好像确实速率上会有些问题?
-
This post is deleted! -
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号