t113-s3 XR829模块导入出错
-
主控:t113-s3
SDK: longan_SDK
wifi 模块:XR829
导入的时候报错:# insmod lib/modules/5.4.61/xr829.ko [ 381.819597] xr829: loading out-of-tree module taints kernel. [ 381.831613] ======== XRADIO WIFI OPEN ======== [ 381.837252] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31 [ 381.844093] [XRADIO] Allocated hw_priv @ 1e7dceda [ 381.849377] [ADDR_MGT] get_addr_by_name: t->addr: [ 381.955930] [XRADIO] Detect SDIO card 0 [ 384.090284] [XRADIO] Remove SDIO card 0 [ 384.104598] [SBUS_ERR] sdio probe timeout! [ 384.109195] [XRADIO_ERR] sbus_sdio_init failed [ 384.114639] xradio_core_init failed (-110)! [ 384.251814] ======== XRADIO WIFI OPEN ======== [ 384.257742] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31 [ 384.264613] [XRADIO] Allocated hw_priv @ 1e7dceda [ 384.269898] [ADDR_MGT] get_addr_by_name: t->addr: [ 384.379940] [XRADIO] Detect SDIO card 0 [ 386.570280] [XRADIO] Remove SDIO card 0 [ 386.584595] [SBUS_ERR] sdio probe timeout! [ 386.589196] [XRADIO_ERR] sbus_sdio_init failed [ 386.594766] xradio_core_init failed (-110)! insmod: can't insert 'lib/modules/5.4.61/xr829.ko': Connection timed out #
-
@captain 感觉sdc1被禁用了
-
@yuzukitsuru
在device/config/chips/t113/configs/evb1_auto/board.dts 是开启的。
然后在sys_config.fex 里面没有SDC1得配置。
这应该就算是开启了吧!&sdc1 { bus-width = <4>; no-mmc; no-sd; cap-sd-highspeed; /*sd-uhs-sdr12*/ /*sd-uhs-sdr25;*/ /*sd-uhs-sdr50;*/ /*sd-uhs-ddr50;*/ /*sd-uhs-sdr104;*/ /*sunxi-power-save-mode;*/ /*sunxi-dis-signal-vol-sw;*/ cap-sdio-irq; keep-power-in-suspend; ignore-pm-notify; max-frequency = <150000000>; ctl-spec-caps = <0x8>; status = "okay"; };
-
看一下wl_reg_on有没有拉高了
-
@yuzukitsuru
在sys/class/gpio 里面看了一下,是拉高的。 -
@yuzukitsuru
对比了韦东山老师的官方固件XR829.KO的导入,
我发现它的log里面多了rfkill 信息,但是我在设备树里面打开rfkill 之后,仍然没有任何反应。# insmod /lib/modules/5.4.61/kernel/drivers/net/wireless/xr829/xr829.ko [ 109.785544] ======== XRADIO WIFI OPEN ======== [ 109.792019] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31 [ 109.798958] [XRADIO] Allocated hw_priv @ c5bbaa78 [ 109.804236] [ADDR_MGT] get_addr_by_name: t->addr: [ 109.810854] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 109.827340] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success [ 110.034535] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 110.037836] [XRADIO] Detect SDIO card 1 [ 110.045775] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator [ 110.070163] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 110.095111] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 110.109829] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 110.132088] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 110.143717] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 110.155594] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 110.168181] mmc1: new high speed SDIO card at address 0001 [ 110.175370] [SBUS] XRadio Device:sdio clk=50000000 [ 110.240380] [XRADIO] XRADIO_HW_REV 1.0 detected. [ 110.336874] [XRADIO] xradio_update_dpllctrl: DPLL_CTRL Sync=0x01400000. [ 110.378148] [XRADIO] Bootloader complete [ 110.487714] [XRADIO] Firmware completed. [ 110.511171] [WSM] Firmware Label:XR_C09.08.52.64_DBG_02.100 2GHZ HT40 Jan 3 2020 13:14:37 [ 110.520697] [XRADIO] Firmware Startup Done. [ 110.528645] [XRADIO_WRN] enable Multi-Rx! [ 110.534086] mac80211_register_hw signal_type CFG80211_SIGNAL_TYPE_MBM [ 110.534394] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
rfkill: rfkill@0 { compatible = "allwinner,sunxi-rfkill"; chip_en; power_en; pinctrl-0 = <&wlan_pins_a>; pinctrl-names = "default"; status = "okay"; wlan: wlan@0 { compatible = "allwinner,sunxi-wlan"; clock-names = "32k-fanout1"; clocks = <&ccu CLK_FANOUT1_OUT>; wlan_busnum = <0x1>; wlan_regon = <&pio PG 12 GPIO_ACTIVE_HIGH>; wlan_hostwake = <&pio PG 14 GPIO_ACTIVE_HIGH>; /*wlan_power = "VCC-3V3";*/ /*wlan_power_vol = <3300000>;*/ /*interrupt-parent = <&pio>; interrupts = < PG 10 IRQ_TYPE_LEVEL_HIGH>;*/ wakeup-source; status = "okay"; };
-
破案了!!!
最后发现是rfkill没能正确导入的问题。
在设备树里面,rfkill的配置有问题,导致不能正确启用rfkill功能。(可在启动log里面查看rfkill启动情况。)
而wifi是依赖于rfkill的,所以wifi功能也不能正常启用。 -
@captain 可以分享下怎么配置rfkill嘛,我现在在t113也有这个问题
-
@lipeitong
要修改引脚和开发板对应,然后其它地方不能占用这组引脚。 -
@captain 引脚和开发板是对应的,也没有被其他功能复用。现在就是移植ap6256时,insmod bcmdhd.ko出现了类似的情况。麻烦帮忙看一下。
-
@lipeitong 哈喽,该问题最后解决了吗?目前我也遇到类似情况,可以指点下吗?
-
@kamila 老哥,我这边也是一样的问题,你解决了吗
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号