您尚未登录。

楼主 # 2022-09-22 11:22:25

zhongtao1701
会员
注册时间: 2022-02-05
已发帖子: 12
积分: 12

T113加载wifi驱动8189fs.so, 但是却没有触发SDIO读写操作,哪位大侠帮忙看一下

T113的板子上原来焊接XR829模块, 加载xr829.so是可以工作的,换成rtl8189模块,加载驱动8189fs.ko

insmod /lib/modules/5.4.61/kernel/drivers/net/wireless/rtl8189fs/8189fs.ko
[ 41.238505] RTL871X: module init start
[ 41.242814] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[ 41.248914] RTL871X: module init ret=0

没触发sdio的读卡操作,尝试加载xr829的驱动,发现它是可以触发sdio的操作,而且它还能发现芯片是RTL8188F, 于是继续运行8189的驱动,完成eFUSE读取以及FW的加载, rtl8189的驱动来自 https://github.com/Tina-Linux/Tina_d1x_mangopi-sbc

# insmod /lib/modules/5.4.61/kernel/drivers/net/wireless/xr829/xr829.ko
[  145.348636] ======== XRADIO WIFI OPEN ========
[  145.355347] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31
[  145.362187] [XRADIO] Allocated hw_priv @ c656bdcd
[  145.367544] [ADDR_MGT] get_addr_by_name: t->addr:
[  145.374343] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
[  145.390658] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
[  145.597899] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[  145.601670] [XRADIO] Detect SDIO card 1
[  145.609181] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[  145.632659] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[  145.657667] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[  145.672341] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[  145.685743] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[  145.704547] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[  145.716202] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[  145.728416] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[  145.741281] mmc1: new high speed SDIO card at address 0001
[  145.748826] RTL871X: CHIP TYPE: RTL8188F
[  145.753747] RTL871X: rtw_hal_config_rftype RF_Type is 3 TotalTxPath is 1
[  145.761339] RTL871X: Chip Version Info: CHIP_8188F_Normal_Chip_SMIC_B_CUT_1T1R_RomVer(0)
[  145.770631] RTL871X: SetHwReg8188F: hci_sus_state=1
[  145.777750] RTL871X: SetHwReg8188F: bMacPwrCtrlOn=1
[  145.783258] RTL871X: SetHwReg8188F: hci_sus_state=2
[  145.783725] RTL871X: PowerOnCheck: val_mix:0x0000063f, res:0x0000063f
[  145.783732] RTL871X: PowerOnCheck: 0x100 the result of cmd52 and cmd53 is the same.
[  145.783802] RTL871X: PowerOnCheck: 0x1B8 test Pass.
[  145.783881] RTL871X: EEPROM type is E-FUSE
[  145.784522] RTL871X: hal_EfuseSwitchToBank: Efuse switch bank to 0
[  145.852933] RTL871X: hal_ReadEFuse_WiFi: data end at address=0x98
[  145.859788] RTL871X: HW EFUSE
[  145.863151] RTL871X: 0x000

会是什么问题,哪位大侠指点一下,谢谢!

最近编辑记录 zhongtao1701 (2022-09-22 11:24:56)

离线

页脚

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

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