imx93 wifi ap6212 debug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx93 wifi ap6212 debug

5,602 Views
5454ty
Contributor II

HI,

    My platform is imx93 evk

   SDK VERSION :6.1.22-2.0.0

  HI,

      I am debugging the wifi modules  .It is ap6212

      my dts is modified as follows:

      

5454ty_0-1723188341147.png

 

 My critical log is as follows:

  root@imx93evk:~#
root@imx93evk:~# dmesg | grep sdhc
[ 1.564553] sdhci: Secure Digital Host Controller Interface driver
[ 1.570777] sdhci: Copyright(c) Pierre Ossman
[ 1.582290] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.910537] sdhci-esdhc-imx 428b0000.mmc: Failed to create device link (0x180) with 43820080.gpio
[ 2.543322] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
root@imx93evk:~# 

root@imx93evk:~#
root@imx93evk:~# dmesg | grep Br
[ 0.088861] smp: Bringing up secondary CPUs ...
[ 0.093845] smp: Brought up 1 node, 2 CPUs
[ 1.277345] Broadcom 43xx driver loaded [ Features: PNLS ]
[ 1.282911] Broadcom 43xx-legacy driver loaded [ Features: PLID ]
[ 1.551722] Bluetooth: HCI UART protocol Broadcom registered
root@imx93evk:~#

The full log is as follows:

 

 

 

Labels (1)
0 Kudos
Reply
11 Replies

5,509 Views
5454ty
Contributor II

我的DTS如附件所示

0 Kudos
Reply

5,487 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

如果你使用GPIO3_IO26作为中断引脚,中断配置应该是这样。

Zhiming_Liu_1-1723438114265.png

 

0 Kudos
Reply

5,484 Views
5454ty
Contributor II

刘工,

     我的其实是

5454ty_0-1723439555948.png

我的中断脚其实是这个,gpio2 9

 

5454ty_1-1723439604493.png

但是还是报这个错误,能否再看看

0 Kudos
Reply

5,409 Views
5454ty
Contributor II

刘工,您好

 上回那个错误解决了,现在变成了BRCM驱动报错了,你能否看看

我贴上我的关键日志

2.479283] mmc2: new high speed SDIO card at address 0001
[ 2.489483] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 2.499116] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.fsl,imx93-11x11-evk.bin failed with error -2
[ 2.510660] brcmfmac mmc2:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43430-sdio.fsl,imx93-11x11-evk.bin
[ 2.598708] hub 2-1:1.0: USB hub found
[ 2.602693] hub 2-1:1.0: 7 ports detected
[ 2.856736] systemd[1]: System time before build time, advancing clock.
[ 2.925384] systemd[1]: systemd 253.1^ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -TPM2 -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
[ 2.957110] systemd[1]: Detected architecture arm64.

 

MMC2识别了SDIO卡,但是报下面的错误

brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 2.499116] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.fsl,imx93-11x11-evk.bin failed with error -2

是SDK的驱动太旧了嘛

0 Kudos
Reply

5,404 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

从下面网站下载brcmfmac43430a0-sdio.bin,放到文件系统对应的位置,可能是/lib/firmware/brcm/brcmfmac43430-sdio.bin

https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/brcm

Best Regards
Zhiming

0 Kudos
Reply

5,400 Views
5454ty
Contributor II

[ 6.981052] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[ 7.007130] brcmfmac mmc2:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43430-sdio.clm_blob
[ 7.268133] brcmfmac: brcmf_sdiod_ramrw: membytes transfer failed
[ 7.282264] brcmfmac: brcmf_sdio_verifymemory: error -84 on reading 2048 membytes at 0x00080000
[ 7.334541] brcmfmac: brcmf_sdio_download_firmware: dongle image file download failed

 

报错变了,还有得看嘛

0 Kudos
Reply

5,401 Views
5454ty
Contributor II

mmc2: new high speed SDIO card at address 0001
[ 2.493459] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 2.543378] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.fsl,imx93-11x11-evk.bin failed with error -2
[ 2.554903] brcmfmac mmc2:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43430-sdio.fsl,imx93-11x11-evk.bin
[ 2.602719] hub 2-1:1.0: USB hub found
[ 2.606674] hub 2-1:1.0: 7 ports detected

我其实自己创建了brcm目录,把对应文件放进去了,可是还是报上面的错误

0 Kudos
Reply

5,440 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

如果你的引脚连接的是芯片pad上的GPIO2_IO9,需要加在pinctrl节点里。

	pinctrl_usdhc3_wlan: usdhc3wlangrp {
		fsl,pins = <
			MX93_PAD_CCM_CLKO1__GPIO3_IO26		0x31e
          MX93_PAD_GPIO_IO09__GPIO2_IO09          0x31e
		>;
	};

 

0 Kudos
Reply

5,438 Views
5454ty
Contributor II

root@imx93evk:/# dmesg | grep sdhc
[ 1.625609] sdhci: Secure Digital Host Controller Interface driver
[ 1.631832] sdhci: Copyright(c) Pierre Ossman
[ 1.643285] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.650893] sdhci-esdhc-imx 428b0000.mmc: allocated mmc-pwrseq
[ 1.984863] sdhci-esdhc-imx 428b0000.mmc: Failed to create device link (0x180) with 43820080.gpio
[ 2.642378] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
root@imx93evk:/#

 

还是这个错误,我增加了那行

0 Kudos
Reply

5,563 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

GPIO3_IO26设置pinctrl了吗?

Zhiming_Liu_0-1723251738024.png

 



Best Regards
Zhiming

0 Kudos
Reply

5,545 Views
5454ty
Contributor II

您好,

设置PINCTRL什么意思,还不太懂,不好意思

0 Kudos
Reply