您尚未登录。

楼主 # 2022-12-26 22:07:47

jeekate
会员
注册时间: 2022-02-13
已发帖子: 2
积分: 2

V3S+RTL8189FTV网卡驱动失败

LicheePi Zero+自己画的底板跑wifi测试,调通了SDIO但是似乎WiFI驱动出了问题,求大佬帮帮忙看一下

Uboot版本:
U-Boot SPL 2017.01-rc2-00055-gc41fbfe7b5 (Jan 20 2017 - 00:39:08)

内核版本:
Linux version 5.2.0-licheepi-zero+ (jk@jk-virtual-machine) (gcc version 7.5.0 (Linaro GCC 7.5-2019.12)) #6 SMP Mon Dec 12 21:23:48 CST 2022

驱动版本:
https://linux-sunxi.org/Wifi#RTL8189FTV


驱动加载过程如下:
[    4.616952] RTW: module init start
[    4.623463] RTW: rtl8189fs v5.7.9_35795.20191128
[    4.631117] RTW: build time: Dec 12 2022 21:21:37
[    4.638805] RTW: rtw_inetaddr_notifier_register
[    4.972155] systemd-journald[107]: Received request to flush runtime journal from PID 1
[    5.029530] RTW: == SDIO Card Info ==
[    5.036509] RTW:   card: (ptrval)
[    5.043139] RTW:   clock: 50000000 Hz
[    5.050056] RTW:   timing spec: sd high-speed
[    5.057596] RTW:   sd3_bus_mode: FALSE
[    5.064488] RTW:   func num: 1
[    5.070639] RTW:   func1: (ptrval) (*)
[    5.077413] RTW: ================
[    5.083708] RTW: CHIP TYPE: RTL8188F
[    5.384211] RTW: rtw_hal_config_rftype RF_Type is 0 TotalTxPath is 1
[    5.393855] RTW: Chip Version Info: CHIP_8188F_Normal_Chip_SMIC_B_CUT_1T1R_RomVer(0)
[    5.503151] RTW: SetHwReg: hci_sus_state=1
[    5.541337] RTW: SetHwReg: bMacPwrCtrlOn=1
[    5.548498] RTW: SetHwReg: hci_sus_state=2
[    5.607897] RTW: sdio_power_on_check: val_mix:0x0000063f, res:0x0000063f
[    5.617793] RTW: sdio_power_on_check: 0x100 the result of cmd52 and cmd53 is the same.
[    5.699608] RTW: sdio_power_on_check: 0x1B8 test Pass.
[    5.710020] RTW: EEPROM type is E-FUSE
[    5.745491] RTW: hal_EfuseSwitchToBank: Efuse switch bank to 0
[    5.905835] RTW: hal_ReadEFuse_WiFi: data end at address=0x98
[    5.956836] RTW: HW EFUSE
[    5.962525] RTW: 0x000: 29 81 03 CC  00 00 50 00  00 00 04 CC  0A 0C 00 00
[    5.972614] RTW: 0x010: 29 28 28 28  28 28 2E 2E  2E 2E 2E 02  FF FF FF FF
[    5.982655] RTW: 0x020: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    5.992655] RTW: 0x030: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.002554] RTW: 0x040: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.012296] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.021897] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.031372] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.040806] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.050208] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.059560] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.068849] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  20 2E 1D 00  00 00 00 FF
[    6.078155] RTW: 0x0C0: FF 02 00 10  00 FF 00 FF  00 00 FF FF  FF FF FF FF
[    6.087487] RTW: 0x0D0: 3E 10 01 12  23 FF FF FF  20 04 4C 02  79 F1 21 02
[    6.096839] RTW: 0x0E0: 0C 00 22 04  00 08 00 32  FF 21 02 0C  00 22 2A 01
[    6.106220] RTW: 0x0F0: 01 00 00 00  00 00 00 00  00 00 00 00  02 00 FF FF
[    6.115563] RTW: 0x100: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
[    6.124822] RTW: 0x110: 00 EB 00 6E  01 00 00 00  00 FF 54 EF  33 2F 47 2E
[    6.134013] RTW: 0x120: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.143141] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.152146] RTW: 0x140: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.161121] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.170068] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.178898] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.187663] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.196338] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.204944] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.213470] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.221913] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.230284] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.238554] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.246761] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[    6.254949] RTW: hal_com_config_channel_plan chplan:0x20
[    7.220267] RTW: kfree Pwr Trim flag:1
[    7.225295] RTW: bb_gain:0
[    7.239616] RTW: rtl8188f_FirmwareDownload((null)) tmp_ps=3
[    7.246627] RTW: rtl8188f_FirmwareDownload fw: FW_NIC, size: 20306
[    7.254316] RTW: rtl8188f_FirmwareDownload: fw_ver=e fw_subver=0000 sig=0x88f1, Month=06, Date=07, Hour=17, Minute=18
[    7.268121] RTW: rtl8188f_FirmwareDownload(): Shift for fw header!
[    7.276137] RTW: rtl8188f_FirmwareDownload by IO write!
[    7.539882] RTW: polling_fwdl_chksum: Checksum report OK! (1, 10ms), REG_MCUFWDL:0x07040105
[    7.569813] RTW: _8051Reset8188: Finish
[    7.589847] RTW: _FWFreeToGo: Polling FW ready OK! (2, 20ms), REG_MCUFWDL:0x070401c6
[    7.599846] RTW: rtl8188f_FirmwareDownload: DLFW OK !
[    7.606986] RTW: rtl8188f_FirmwareDownload success. write_fw:1, 330ms
[    7.649825] RTW:  <=== rtl8188f_FirmwareDownload()
[    7.657208] RTW: hal_read_mac_hidden_rpt OK! (1, 0ms), fwdl:1, id:0x19
[    7.679924] RTW: SetHwReg: bMacPwrCtrlOn=0
[    7.686379] RTW: SetHwReg: hci_sus_state=3
[    7.709929] RTW: SetHwReg: hci_sus_state=0
[    7.716418] RTW: rtw_hal_read_chip_info in 2310 ms
[    7.723761] RTW: init_channel_set((null)) ChannelPlan ID:0x20, ch num:13
[    7.757551] RTW: init_mlme_default_rate_set: support CCK
[    7.765710] RTW: init_mlme_default_rate_set: support OFDM
[    7.776442] RTW: rtw_alloc_macid((null)) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[    7.786922] RTW: rtw_init_pwrctrl_priv: IPS_mode=1, LPS_mode=2, LPS_level=1
[    7.798103] RTW: IQK FW offload:disable
[    7.805023] RTW: Init_ODM_ComInfo_8188f(): fab_ver=0 cut_ver=5
[    7.813935] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    7.831570] RTW: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array!
[    7.843754] RTW: default power by rate loaded
[    7.851725] RTW: rtw_macaddr_cfg mac addr:54:ef:33:2f:47:2e
[    7.864599] RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[    7.876625] RTW: rtw_wiphy_alloc(phy0)
[    7.884074] RTW: rtw_wdev_alloc(padapter=(ptrval))
[    7.892516] RTW: rtw_wiphy_register(phy0)
[    7.899997] RTW: Register RTW cfg80211 vendor cmd(0x67) interface
[    7.909577] ------------[ cut here ]------------
[    7.917690] WARNING: CPU: 0 PID: 127 at net/wireless/core.c:868 wiphy_register+0x8e8/0xbd4
[    7.929554] Modules linked in: 8189fs(+) mousedev
[    7.937778] CPU: 0 PID: 127 Comm: systemd-udevd Not tainted 5.2.0-licheepi-zero+ #6
[    7.949003] Hardware name: Allwinner sun8i Family
[    7.957255] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[    7.968685] [<c010b774>] (show_stack) from [<c07754d8>] (dump_stack+0x88/0x9c)
[    7.979599] [<c07754d8>] (dump_stack) from [<c011db1c>] (__warn+0xdc/0xf4)
[    7.990127] [<c011db1c>] (__warn) from [<c011dc4c>] (warn_slowpath_null+0x40/0x48)
[    8.001388] [<c011dc4c>] (warn_slowpath_null) from [<c06eb878>] (wiphy_register+0x8e8/0xbd4)
[    8.014750] [<c06eb878>] (wiphy_register) from [<bf087ecc>] (rtw_wiphy_register+0x34/0x5c [8189fs])
[    8.033639] [<bf087ecc>] (rtw_wiphy_register [8189fs]) from [<bf088340>] (rtw_cfg80211_ndev_res_register+0x14/0x68 [8189fs])
[    8.055106] [<bf088340>] (rtw_cfg80211_ndev_res_register [8189fs]) from [<bf067374>] (rtw_os_ndev_register+0x44/0x150 [8189fs])
[    8.077328] [<bf067374>] (rtw_os_ndev_register [8189fs]) from [<bf06832c>] (rtw_os_ndevs_register+0xd0/0x138 [8189fs])
[    8.099040] [<bf06832c>] (rtw_os_ndevs_register [8189fs]) from [<bf0683e8>] (rtw_os_ndevs_init+0x24/0x3c [8189fs])
[    8.120669] [<bf0683e8>] (rtw_os_ndevs_init [8189fs]) from [<bf06a720>] (rtw_drv_init+0x8c/0x120 [8189fs])
[    8.140681] [<bf06a720>] (rtw_drv_init [8189fs]) from [<c053b6e4>] (sdio_bus_probe+0x84/0x110)
[    8.154137] [<c053b6e4>] (sdio_bus_probe) from [<c0435804>] (really_probe+0xf0/0x2c8)
[    8.166792] [<c0435804>] (really_probe) from [<c0435b54>] (driver_probe_device+0x60/0x164)
[    8.179870] [<c0435b54>] (driver_probe_device) from [<c0435e00>] (device_driver_attach+0x58/0x60)
[    8.193563] [<c0435e00>] (device_driver_attach) from [<c0435e88>] (__driver_attach+0x80/0xbc)
[    8.206982] [<c0435e88>] (__driver_attach) from [<c0433ca4>] (bus_for_each_dev+0x74/0xb4)
[    8.220128] [<c0433ca4>] (bus_for_each_dev) from [<c0434cb8>] (bus_add_driver+0x160/0x1e4)
[    8.233400] [<c0434cb8>] (bus_add_driver) from [<c04366a4>] (driver_register+0x7c/0x114)
[    8.247523] [<c04366a4>] (driver_register) from [<bf1730b8>] (rtw_drv_entry+0xb8/0x1000 [8189fs])
[    8.262524] [<bf1730b8>] (rtw_drv_entry [8189fs]) from [<c010275c>] (do_one_initcall+0x54/0x1b4)
[    8.276437] [<c010275c>] (do_one_initcall) from [<c019dd60>] (do_init_module+0x5c/0x20c)
[    8.289594] [<c019dd60>] (do_init_module) from [<c019cfa8>] (load_module+0x1e0c/0x2268)
[    8.302629] [<c019cfa8>] (load_module) from [<c019d638>] (sys_finit_module+0xac/0xd8)
[    8.315463] [<c019d638>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    8.328655] Exception stack(0xc32e3fa8 to 0xc32e3ff0)
[    8.338726] 3fa0:                   00000000 beb40024 00000007 b6de79f8 00000000 00000000
[    8.352015] 3fc0: 00000000 beb40024 00000000 0000017b 00020000 00037f78 00050048 00052e58
[    8.365251] 3fe0: beb3ff00 beb3fef0 b6de1c4b b6eeca42
[    8.375466] ---[ end trace 39ae1c51e8e66d49 ]---
[    8.385054] RTW: rtw_cfg80211_ndev_res_register rtw_wiphy_register fail for if1
[    8.397312] ------------[ cut here ]------------
[    8.407818] WARNING: CPU: 0 PID: 127 at drivers/net/wireless/realtek/rtl8189ES_linux/os_dep/linux/os_intfs.c:1825 rtw_os_ndev_register+0x5c/0x150 [8189fs]
[    8.431466] Modules linked in: 8189fs(+) mousedev
[    8.440961] CPU: 0 PID: 127 Comm: systemd-udevd Tainted: G        W         5.2.0-licheepi-zero+ #6
[    8.459273] Hardware name: Allwinner sun8i Family
[    8.468523] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[    8.480823] [<c010b774>] (show_stack) from [<c07754d8>] (dump_stack+0x88/0x9c)
[    8.492531] [<c07754d8>] (dump_stack) from [<c011db1c>] (__warn+0xdc/0xf4)
[    8.503786] [<c011db1c>] (__warn) from [<c011dc4c>] (warn_slowpath_null+0x40/0x48)
[    8.516757] [<c011dc4c>] (warn_slowpath_null) from [<bf06738c>] (rtw_os_ndev_register+0x5c/0x150 [8189fs])
[    8.537122] [<bf06738c>] (rtw_os_ndev_register [8189fs]) from [<bf06832c>] (rtw_os_ndevs_register+0xd0/0x138 [8189fs])
[    8.558739] [<bf06832c>] (rtw_os_ndevs_register [8189fs]) from [<bf0683e8>] (rtw_os_ndevs_init+0x24/0x3c [8189fs])
[    8.580195] [<bf0683e8>] (rtw_os_ndevs_init [8189fs]) from [<bf06a720>] (rtw_drv_init+0x8c/0x120 [8189fs])
[    8.600124] [<bf06a720>] (rtw_drv_init [8189fs]) from [<c053b6e4>] (sdio_bus_probe+0x84/0x110)
[    8.613535] [<c053b6e4>] (sdio_bus_probe) from [<c0435804>] (really_probe+0xf0/0x2c8)
[    8.626104] [<c0435804>] (really_probe) from [<c0435b54>] (driver_probe_device+0x60/0x164)
[    8.639111] [<c0435b54>] (driver_probe_device) from [<c0435e00>] (device_driver_attach+0x58/0x60)
[    8.652740] [<c0435e00>] (device_driver_attach) from [<c0435e88>] (__driver_attach+0x80/0xbc)
[    8.666004] [<c0435e88>] (__driver_attach) from [<c0433ca4>] (bus_for_each_dev+0x74/0xb4)
[    8.678898] [<c0433ca4>] (bus_for_each_dev) from [<c0434cb8>] (bus_add_driver+0x160/0x1e4)
[    8.691921] [<c0434cb8>] (bus_add_driver) from [<c04366a4>] (driver_register+0x7c/0x114)
[    8.705770] [<c04366a4>] (driver_register) from [<bf1730b8>] (rtw_drv_entry+0xb8/0x1000 [8189fs])
[    8.720563] [<bf1730b8>] (rtw_drv_entry [8189fs]) from [<c010275c>] (do_one_initcall+0x54/0x1b4)
[    8.734298] [<c010275c>] (do_one_initcall) from [<c019dd60>] (do_init_module+0x5c/0x20c)
[    8.747281] [<c019dd60>] (do_init_module) from [<c019cfa8>] (load_module+0x1e0c/0x2268)
[    8.760118] [<c019cfa8>] (load_module) from [<c019d638>] (sys_finit_module+0xac/0xd8)
[    8.772707] [<c019d638>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    8.785673] Exception stack(0xc32e3fa8 to 0xc32e3ff0)
[    8.795465] 3fa0:                   00000000 beb40024 00000007 b6de79f8 00000000 00000000
[    8.808458] 3fc0: 00000000 beb40024 00000000 0000017b 00020000 00037f78 00050048 00052e58
[    8.821454] 3fe0: beb3ff00 beb3fef0 b6de1c4b b6eeca42
[    8.831379] ---[ end trace 39ae1c51e8e66d4a ]---
[    8.840757] ------------[ cut here ]------------
[    8.851154] WARNING: CPU: 0 PID: 127 at drivers/net/wireless/realtek/rtl8189ES_linux/os_dep/linux/os_intfs.c:3316 rtw_os_ndevs_register+0xec/0x138 [8189fs]
[    8.874801] Modules linked in: 8189fs(+) mousedev
[    8.884278] CPU: 0 PID: 127 Comm: systemd-udevd Tainted: G        W         5.2.0-licheepi-zero+ #6
[    8.902547] Hardware name: Allwinner sun8i Family
[    8.911782] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[    8.924061] [<c010b774>] (show_stack) from [<c07754d8>] (dump_stack+0x88/0x9c)
[    8.935751] [<c07754d8>] (dump_stack) from [<c011db1c>] (__warn+0xdc/0xf4)
[    8.946981] [<c011db1c>] (__warn) from [<c011dc4c>] (warn_slowpath_null+0x40/0x48)
[    8.959915] [<c011dc4c>] (warn_slowpath_null) from [<bf068348>] (rtw_os_ndevs_register+0xec/0x138 [8189fs])
[    8.980258] [<bf068348>] (rtw_os_ndevs_register [8189fs]) from [<bf0683e8>] (rtw_os_ndevs_init+0x24/0x3c [8189fs])
[    9.001407] [<bf0683e8>] (rtw_os_ndevs_init [8189fs]) from [<bf06a720>] (rtw_drv_init+0x8c/0x120 [8189fs])
[    9.021060] [<bf06a720>] (rtw_drv_init [8189fs]) from [<c053b6e4>] (sdio_bus_probe+0x84/0x110)
[    9.034374] [<c053b6e4>] (sdio_bus_probe) from [<c0435804>] (really_probe+0xf0/0x2c8)
[    9.046823] [<c0435804>] (really_probe) from [<c0435b54>] (driver_probe_device+0x60/0x164)
[    9.059679] [<c0435b54>] (driver_probe_device) from [<c0435e00>] (device_driver_attach+0x58/0x60)
[    9.073133] [<c0435e00>] (device_driver_attach) from [<c0435e88>] (__driver_attach+0x80/0xbc)
[    9.086244] [<c0435e88>] (__driver_attach) from [<c0433ca4>] (bus_for_each_dev+0x74/0xb4)
[    9.099016] [<c0433ca4>] (bus_for_each_dev) from [<c0434cb8>] (bus_add_driver+0x160/0x1e4)
[    9.111876] [<c0434cb8>] (bus_add_driver) from [<c04366a4>] (driver_register+0x7c/0x114)
[    9.125559] [<c04366a4>] (driver_register) from [<bf1730b8>] (rtw_drv_entry+0xb8/0x1000 [8189fs])
[    9.140096] [<bf1730b8>] (rtw_drv_entry [8189fs]) from [<c010275c>] (do_one_initcall+0x54/0x1b4)
[    9.153619] [<c010275c>] (do_one_initcall) from [<c019dd60>] (do_init_module+0x5c/0x20c)
[    9.166384] [<c019dd60>] (do_init_module) from [<c019cfa8>] (load_module+0x1e0c/0x2268)
[    9.179099] [<c019cfa8>] (load_module) from [<c019d638>] (sys_finit_module+0xac/0xd8)
[    9.191692] [<c019d638>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    9.204588] Exception stack(0xc32e3fa8 to 0xc32e3ff0)
[    9.214264] 3fa0:                   00000000 beb40024 00000007 b6de79f8 00000000 00000000
[    9.227175] 3fc0: 00000000 beb40024 00000000 0000017b 00020000 00037f78 00050048 00052e58
[    9.240043] 3fe0: beb3ff00 beb3fef0 b6de1c4b b6eeca42
[    9.249852] ---[ end trace 39ae1c51e8e66d4b ]---
[    9.259100] RTW: rtw_wdev_free(wdev=(ptrval))
[    9.268030] RTW: rtw_wiphy_free(phy0)
[    9.276193] RTW: rtw_dev_unload: bup==_FALSE
[    9.284930] RTW: +r871xu_dev_remove, hw_init_completed=0
[    9.317189] RTW: module init ret=0

最近编辑记录 jeekate (2022-12-26 22:15:06)

离线

楼主 #4 2023-08-28 17:47:51

jeekate
会员
注册时间: 2022-02-13
已发帖子: 2
积分: 2

Re: V3S+RTL8189FTV网卡驱动失败

资本家大善人 说:

我解决了,at net/wireless/core.c:868 wiphy_register
删除这行判断和return即可
rtl驱动和cfg80211. h结构体包含的变量对不上
也可以试试非荔枝派的linux sdk

验证过了,感谢大佬!

离线

页脚

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

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