您尚未登录。

#2 Re: 全志 SOC » 分享在V3S RTL8723DS 上调试蓝牙音频的一点经验 » 2025-02-14 16:26:13

博主您好,我在licheepi 的主线linux 5.2.y 和4.10.y中编译 RTL8723DS 的wifi源码,加载驱动的过程中出现了错误,导致不能够正常显示wlan0 网卡。我的驱动版本是RTL8723DS_WiFi_linux_v5.13.5-91-gf00b2a755_COEX20220930-4541.20241203 。这里我贴一下我的5.2.y版本的启动过程。我的疑惑:1、是不是我的驱动版本不能适配linux内核的版本?2、看到您用的5.10内核,您的驱动版本是多少?您能否分享一下您的编译经验?

# insmod cfg80211.ko
[   30.093469] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   30.119448] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
# insmod 8723ds.ko
[   40.376919] RTW: module init start
[   40.384028] RTW: rtl8723ds v5.13.5-91-gf00b2a755.20241203_COEX20220930-4541
[   40.394595] RTW: build time: Feb 14 2025 15:06:41
[   40.402832] RTW: rtl8723ds BT-Coex version = COEX20220930-4541
[   40.412207] RTW: rtw_inetaddr_notifier_register
[   40.421393] RTW: == SDIO Card Info ==
[   40.428513] RTW:   card: (ptrval)
[   40.435103] RTW:   clock: 50000000 Hz
[   40.442061] RTW:   timing spec: sd high-speed
[   40.449690] RTW:   sd3_bus_mode: FALSE
[   40.456628] RTW:   func num: 1
[   40.462846] RTW:   func1: (ptrval) (*)
[   40.469718] RTW: ================
[   40.476037] RTW: CHIP TYPE: RTL8723D
[   40.483747] RTW: Chip Version Info: CHIP_8723D_T4_1T1R_RomVer(0)
[   40.495034] RTW: SetHwReg: bMacPwrCtrlOn=1
[   40.503008] RTW: sdio_power_on_check: val_mix:0x0000063f, res:0x0000063f
[   40.512851] RTW: sdio_power_on_check: 0x100 the result of cmd52 and cmd53 is the same.
[   40.524385] RTW: sdio_power_on_check: 0x1B8 test Pass.
[   40.532701] RTW: _InitPowerOn_8723DS: Normal Mode
[   40.540867] RTW: _InitPowerOn_8723DS: SPS Mode
[   40.548398] RTW: ReadAdapterInfo8723DS, 0x4e=0x42
[   40.555942] RTW: EEPROM type is E-FUSE
[   40.563094] RTW: hal_EfuseSwitchToBank: Efuse switch bank to 0
[   40.588390] RTW: hal_ReadEFuse_WiFi: data end at address=0xa9
[   40.596927] RTW: HW EFUSE
[   40.602279] RTW: 0x000: 29 81 40 7C  E1 88 07 00  A0 04 EC 35  12 C0 A2 D8
[   40.612155] RTW: 0x010: 25 25 25 25  25 25 26 26  26 26 26 00  FF FF FF FF
[   40.621945] RTW: 0x020: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.631668] RTW: 0x030: FF FF FF FF  FF FF FF FF  FF FF 22 22  22 22 22 22
[   40.641311] RTW: 0x040: 21 21 21 21  21 02 FF FF  FF FF FF FF  FF FF FF FF
[   40.650908] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.660417] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.669829] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.679163] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.688436] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.697671] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.706887] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  20 35 1E 00  00 00 FF FF
[   40.716087] RTW: 0x0C0: FF 29 20 11  00 00 00 FF  00 FF 11 FF  FF FF FF FF
[   40.725284] RTW: 0x0D0: 3E 10 01 12  23 FF FF FF  20 04 4C 02  23 D7 21 02
[   40.734510] RTW: 0x0E0: 0C 00 22 04  00 08 00 32  FF 21 02 0C  00 22 2A 01
[   40.743787] RTW: 0x0F0: 01 00 00 00  00 00 00 00  00 00 00 00  02 00 FF FF
[   40.753075] RTW: 0x100: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
[   40.762347] RTW: 0x110: 00 EB 00 6E  01 00 00 00  00 FF 78 22  88 BF C9 32
[   40.771579] RTW: 0x120: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.780797] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.789915] RTW: 0x140: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.798927] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.807855] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.816735] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.825601] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.834403] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.843150] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.851809] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.860389] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.868888] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.877282] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.885612] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[   40.896295] RTW: Hal_EfuseParseBTCoexistInfo_8723D: Enable BT-coex, ant_num=1
[   40.904879] RTW: hal_com_config_channel_plan chplan:0x20
[   40.911564] RTW: Hal_EfuseParseVoltage_8723D hwinfo[EEPROM_Voltage_ADDR_8723D] =a0
[   40.920606] RTW: Hal_EfuseParseVoltage_8723D pHalData->adjuseVoltageVal =a
[   40.929804] RTW: kfree Pwr Trim flag:1
[   40.935152] RTW: bb_gain(S1):1
[   40.939843] RTW: bb_gain(S0):0
[   40.945110] RTW: rtl8723d_FirmwareDownload fw: FW_NIC, size: 30830
[   40.953129] RTW: rtl8723d_FirmwareDownload: fw_ver=33 fw_subver=0004 sig=0x23d1, Month=12, Date=17, Hour=11, Minute=44
[   40.967526] RTW: rtl8723d_FirmwareDownload(): Shift for fw header!
[   40.976548] RTW: rtl8723d_FirmwareDownload by IO write!
[   41.172302] RTW: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x07070305
[   41.182762] RTW: rtl8723d_FirmwareDownload: download FW count:1
[   41.191676] RTW: _8051Reset8723: Finish
[   41.210060] RTW: _FWFreeToGo: Polling FW ready OK! (231, 20ms), REG_MCUFWDL:0x070703c6
[   41.220396] RTW: rtl8723d_FirmwareDownload success. write_fw:1, 250ms
[   41.229747] RTW:  <=== rtl8723d_FirmwareDownload()
[   41.237377] RTW: hal_read_mac_hidden_rpt OK! (1, 0ms), fwdl:1, id:0x19
[   41.247502] RTW: SetHwReg: bMacPwrCtrlOn=0
[   41.254745] RTW: rtw_hal_read_chip_info in 760 ms
[   41.262259] RTW: [RF_PATH] ver_id.RF_TYPE:RF_1T1R
[   41.269785] RTW: [RF_PATH] HALSPEC's rf_reg_trx_path_bmp:0x11, rf_reg_path_avail_num:1, max_tx_cnt:1
[   41.284865] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
[   41.293997] RTW: [RF_PATH] Registry's trx_path_bmp:0x00, tx_path_lmt:0, rx_path_lmt:0
[   41.305184] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x11, max_tx_cnt:1
[   41.315004] RTW: [RF_PATH] HALDATA's rf_type:RF_1T1R, NumTotalRFPath:1
[   41.325038] RTW: rtw_hal_rfpath_init trx_path_bmp:0x11(RF_1T1R), NumTotalRFPath:1, max_tx_cnt:1
[   41.337438] RTW: [TRX_Nss] HALSPEC - tx_nss:1, rx_nss:1
[   41.346309] RTW: [TRX_Nss] Registry - tx_nss:0, rx_nss:0
[   41.355214] RTW: [TRX_Nss] HALDATA - tx_nss:1, rx_nss:1
[   41.363965] RTW: rtw_hal_trxnss_init tx_nss:1, rx_nss:1
[   41.372691] RTW: txpath=0x1, rxpath=0x1
[   41.379961] RTW: txpath_1ss:0x1, num:1
[   41.389739] RTW: init_mlme_default_rate_set: support CCK
[   41.398732] RTW: init_mlme_default_rate_set: support OFDM
[   41.409385] RTW: rtw_alloc_macid((null)) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[   41.420539] RTW: rtw_init_pwrctrl_priv: IPS_mode=1, LPS_mode=2, LPS_level=1
[   41.431619] RTW: IQK FW offload:disable
[   41.438951] RTW: Init_ODM_ComInfo_8723d(): Fv=0 Cv=3
[   41.447389] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[   41.463369] RTW: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array!
[   41.475563] RTW: default power by rate loaded
[   41.483462] RTW: phy_txpwr_by_rate_chk_for_path_dup duplicate 2.4G [A] to [B]
[   41.494187] RTW: init_channel_set_from_rtk_priv((null)) ChannelPlan ID:0x20, ch num:13
[   41.506116] RTW: rtw_macaddr_cfg mac addr:78:22:88:bf:c9:32
[   41.516256] RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[   41.528226] RTW: rtw_cfg80211_init_wiphy_band:rf_type=0
[   41.537164] RTW: [HT] HAL Support STBC = 0x01
[   41.545235] RTW: rtw_wiphy_alloc(phy0)
[   41.552648] RTW: rtw_wdev_alloc(padapter=(ptrval))
[   41.560955] RTW: rtw_wiphy_register(phy0)
[   41.568376] RTW: Register RTW cfg80211 vendor cmd(0x67) interface
[   41.577890] ------------[ cut here ]------------
[   41.586044] WARNING: CPU: 0 PID: 187 at net/wireless/core.c:868 wiphy_register+0x900/0xbc4 [cfg80211]
[   41.602293] Modules linked in: 8723ds(+) cfg80211
[   41.610497] CPU: 0 PID: 187 Comm: insmod Not tainted 5.2.0-licheepi-zero #2
[   41.621028] Hardware name: Allwinner sun8i Family
[   41.629337] [<c010ed14>] (unwind_backtrace) from [<c010b72c>] (show_stack+0x10/0x14)
[   41.640835] [<c010b72c>] (show_stack) from [<c06b2030>] (dump_stack+0x84/0x98)
[   41.651844] [<c06b2030>] (dump_stack) from [<c011db98>] (__warn+0xfc/0x114)
[   41.662629] [<c011db98>] (__warn) from [<c011dcc4>] (warn_slowpath_null+0x40/0x48)
[   41.674152] [<c011dcc4>] (warn_slowpath_null) from [<bf0013f4>] (wiphy_register+0x900/0xbc4 [cfg80211])
[   41.692921] [<bf0013f4>] (wiphy_register [cfg80211]) from [<bf0e1b4c>] (rtw_wiphy_register+0x38/0x74 [8723ds])
[   41.713808] [<bf0e1b4c>] (rtw_wiphy_register [8723ds]) from [<bf0e202c>] (rtw_cfg80211_dev_res_register+0xc/0x18 [8723ds])
[   41.736084] [<bf0e202c>] (rtw_cfg80211_dev_res_register [8723ds]) from [<bf0bd030>] (rtw_os_ndevs_register+0x14/0x150 [8723ds])
[   41.758901] [<bf0bd030>] (rtw_os_ndevs_register [8723ds]) from [<bf0bd1c0>] (rtw_os_ndevs_init+0x24/0x3c [8723ds])
[   41.780721] [<bf0bd1c0>] (rtw_os_ndevs_init [8723ds]) from [<bf0bf9f8>] (rtw_drv_init+0x8c/0x138 [8723ds])
[   41.800753] [<bf0bf9f8>] (rtw_drv_init [8723ds]) from [<c054ca24>] (sdio_bus_probe+0x100/0x114)
[   41.814180] [<c054ca24>] (sdio_bus_probe) from [<c0436484>] (really_probe+0x1dc/0x2c8)
[   41.826765] [<c0436484>] (really_probe) from [<c04366f0>] (driver_probe_device+0x60/0x160)
[   41.839755] [<c04366f0>] (driver_probe_device) from [<c0436998>] (device_driver_attach+0x58/0x60)
[   41.853439] [<c0436998>] (device_driver_attach) from [<c0436a20>] (__driver_attach+0x80/0xbc)
[   41.866859] [<c0436a20>] (__driver_attach) from [<c0434844>] (bus_for_each_dev+0x68/0xb4)
[   41.880001] [<c0434844>] (bus_for_each_dev) from [<c04357d4>] (bus_add_driver+0xec/0x1e0)
[   41.893175] [<c04357d4>] (bus_add_driver) from [<c0437248>] (driver_register+0x78/0x10c)
[   41.907596] [<c0437248>] (driver_register) from [<bf21f11c>] (rtw_drv_entry+0x11c/0x1000 [8723ds])
[   41.927751] [<bf21f11c>] (rtw_drv_entry [8723ds]) from [<c01026fc>] (do_one_initcall+0x54/0x1b4)
[   41.941719] [<c01026fc>] (do_one_initcall) from [<c019d82c>] (do_init_module+0x5c/0x20c)
[   41.954938] [<c019d82c>] (do_init_module) from [<c019ca20>] (load_module+0x1e08/0x22a4)
[   41.968057] [<c019ca20>] (load_module) from [<c019d108>] (sys_finit_module+0xc8/0xd8)
[   41.980975] [<c019d108>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[   41.994248] Exception stack(0xc31e3fa8 to 0xc31e3ff0)
[   42.004406] 3fa0:                   000c3008 bea88e7b 00000003 000c3008 00000000 bea88e7b
[   42.017808] 3fc0: 000c3008 bea88e7b 00000002 0000017b bea88e7b 00000000 b6fb0000 00000000
[   42.031141] 3fe0: bea88bc0 bea88bb0 00026408 b6e44a42
[   42.041345] ---[ end trace daecb6049275bd49 ]---
[   42.050943] ------------[ cut here ]------------
[   42.061718] WARNING: CPU: 0 PID: 187 at drivers/net/wireless/realtek/rtl8723ds/os_dep/linux/os_intfs.c:3752 rtw_os_ndevs_register+0x4c/0x150 [8723ds]
[   42.084914] Modules linked in: 8723ds(+) cfg80211
[   42.094458] CPU: 0 PID: 187 Comm: insmod Tainted: G        W         5.2.0-licheepi-zero #2
[   42.107548] Hardware name: Allwinner sun8i Family
[   42.116870] [<c010ed14>] (unwind_backtrace) from [<c010b72c>] (show_stack+0x10/0x14)
[   42.129234] [<c010b72c>] (show_stack) from [<c06b2030>] (dump_stack+0x84/0x98)
[   42.141010] [<c06b2030>] (dump_stack) from [<c011db98>] (__warn+0xfc/0x114)
[   42.152406] [<c011db98>] (__warn) from [<c011dcc4>] (warn_slowpath_null+0x40/0x48)
[   42.165696] [<c011dcc4>] (warn_slowpath_null) from [<bf0bd068>] (rtw_os_ndevs_register+0x4c/0x150 [8723ds])
[   42.186805] [<bf0bd068>] (rtw_os_ndevs_register [8723ds]) from [<bf0bd1c0>] (rtw_os_ndevs_init+0x24/0x3c [8723ds])
[   42.208729] [<bf0bd1c0>] (rtw_os_ndevs_init [8723ds]) from [<bf0bf9f8>] (rtw_drv_init+0x8c/0x138 [8723ds])
[   42.228840] [<bf0bf9f8>] (rtw_drv_init [8723ds]) from [<c054ca24>] (sdio_bus_probe+0x100/0x114)
[   42.242303] [<c054ca24>] (sdio_bus_probe) from [<c0436484>] (really_probe+0x1dc/0x2c8)
[   42.254921] [<c0436484>] (really_probe) from [<c04366f0>] (driver_probe_device+0x60/0x160)
[   42.267844] [<c04366f0>] (driver_probe_device) from [<c0436998>] (device_driver_attach+0x58/0x60)
[   42.281372] [<c0436998>] (device_driver_attach) from [<c0436a20>] (__driver_attach+0x80/0xbc)
[   42.294511] [<c0436a20>] (__driver_attach) from [<c0434844>] (bus_for_each_dev+0x68/0xb4)
[   42.307309] [<c0434844>] (bus_for_each_dev) from [<c04357d4>] (bus_add_driver+0xec/0x1e0)
[   42.320122] [<c04357d4>] (bus_add_driver) from [<c0437248>] (driver_register+0x78/0x10c)
[   42.334141] [<c0437248>] (driver_register) from [<bf21f11c>] (rtw_drv_entry+0x11c/0x1000 [8723ds])
[   42.353585] [<bf21f11c>] (rtw_drv_entry [8723ds]) from [<c01026fc>] (do_one_initcall+0x54/0x1b4)
[   42.367172] [<c01026fc>] (do_one_initcall) from [<c019d82c>] (do_init_module+0x5c/0x20c)
[   42.380022] [<c019d82c>] (do_init_module) from [<c019ca20>] (load_module+0x1e08/0x22a4)
[   42.392811] [<c019ca20>] (load_module) from [<c019d108>] (sys_finit_module+0xc8/0xd8)
[   42.405480] [<c019d108>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[   42.418460] Exception stack(0xc31e3fa8 to 0xc31e3ff0)
[   42.428207] 3fa0:                   000c3008 bea88e7b 00000003 000c3008 00000000 bea88e7b
[   42.441203] 3fc0: 000c3008 bea88e7b 00000002 0000017b bea88e7b 00000000 b6fb0000 00000000
[   42.454179] 3fe0: bea88bc0 bea88bb0 00026408 b6e44a42
[   42.464093] ---[ end trace daecb6049275bd4a ]---
[   42.473447] RTW: rtw_wdev_free(wdev=(ptrval))
[   42.482462] RTW: rtw_wiphy_free(phy0)
[   42.490761] RTW: rtw_dev_unload: bup==_FALSE
[   42.499567] RTW: +r871xu_dev_remove, hw_init_completed=0
[   42.514944] RTW: module init ret=0
# [   42.974870] random: crng init done

# ifconfig -a
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

万分期待您的回复 smile

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn