Hi all,
Running a LS1012ARDB here and wanting using the in package provided SD WiFi module.
It's a Murata WiFi one, parted TDA6350.
Just inserting the module and fire-up u-boot works but later on when booting e.g. Ubuntu kernel it throws a -110 error. Coming back to u-boot again then stay there and try to see SDHC1 device it get this
=> printenv hwconfig
hwconfig=esdhc1
=> mmc list
FSL_SDHC: 0
FSL_SDHC: 1 (eMMC)
=> mmc dev 1
switch to partitions #0, OK
mmc1(part 0) is current device
=> mmc dev 0
Card did not respond to voltage select!
=>
I understand it's linked to voltage select on GPIO23 defined in RCW register.
NOTE: for eMMC device there is another post I submitted here and that works flawlessly.
My question: what is simplest method to correctly set SDHC1_VSEL? Since I suspect it's that one posing trouble here. There is no switch on the board to manage this and it has to go over RCW. If I can simply peek/poke into that one from u-boot in a persistent way then I'd be glad.
Ubuntu kernel throws me this out:
[ OK ] Started D-Bus System Message Bus.
[ 13.158599] mmc0: Timeout waiting for hardware cmd interrupt.
[ 13.164363] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 13.170815] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00002102
[ 13.177264] mmc0: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[ 13.183715] mmc0: sdhci: Argument: 0x00000e00 | Trn mode: 0x00000000
[ 13.190165] mmc0: sdhci: Present: 0x01f50009 | Host ctl: 0x00000020
[ 13.196614] mmc0: sdhci: Power: 0x00000000 | Blk gap: 0x00000000
[ 13.203063] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000098
[ 13.209513] mmc0: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[ 13.215962] mmc0: sdhci: Int enab: 0x007f1087 | Sig enab: 0x007f1083
[ 13.222411] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00002102
[ 13.228861] mmc0: sdhci: Caps: 0x37fa0000 | Caps_1: 0x0000af00
[ 13.235310] mmc0: sdhci: Cmd: 0x0000341a | Max curr: 0x00000000
[ 13.241759] mmc0: sdhci: Resp[0]: 0x00001003 | Resp[1]: 0x00000034
[ 13.248209] mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
[ 13.254657] mmc0: sdhci: Host ctl2: 0x00000000
[ 13.259106] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000
[ 13.266250] mmc0: sdhci: ============================================
[ 13.272970] mmc0: error -110 whilst initialising SDIO card
Thx Christophe
I run a u-boot v2019.04. You can find dts details here
https://elixir.bootlin.com/u-boot/v2019.04/source/arch/arm/dts/fsl-ls1012a.dtsi#L56
Ok still try to figure out how to make work the WiFi module shipped with the LS1012ARDB. User guides and documents are not of a great help. It says: plug-in, works .... nope.
Anybody? Thx Christophe
Let me add the kernel logs
root@localhost:~# dmesg | grep sdhc -A 5 -B 5
[ 2.879759] usbcore: registered new interface driver usb-storage
[ 2.892818] ftm-alarm 29d0000.timer: registered as rtc1
[ 2.900425] i2c /dev entries driver
[ 2.913369] imx2-wdt 2ad0000.wdog: timeout 60 sec (nowayout=0)
[ 2.922446] qoriq_cpufreq: Freescale QorIQ CPU frequency scaling driver
[ 2.930597] sdhci: Secure Digital Host Controller Interface driver
[ 2.937333] sdhci: Copyright(c) Pierre Ossman
[ 2.942674] Synopsys Designware Multimedia Card Interface Driver
[ 2.950548] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.983228] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit
[ 3.006831] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 3.014672] mmc0: queuing unknown CIS tuple 0x80 (6 bytes)
[ 3.023001] mmc0: queuing unknown CIS tuple 0x80 (8 bytes)
[ 3.028524] mmc1: SDHCI controller on 1580000.esdhc [1580000.esdhc] using ADMA 64-bit
[ 3.037908] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 3.044086] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.053839] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 3.066627] mmc0: queuing unknown CIS tuple 0x80 (5 bytes)
[ 3.073106] caam 1700000.crypto: Instantiated RNG4 SH1
--
[ 4.473247] sda: sda1 sda2 sda3 sda4
[ 4.479532] sd 1:0:0:0: [sda] Attached SCSI removable disk
[ 4.493120] random: fast init done
[ 11.032548] random: crng init done
[ 13.159136] mmc0: Timeout waiting for hardware cmd interrupt.
[ 13.164901] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 13.171352] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00002102
[ 13.177801] mmc0: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[ 13.184252] mmc0: sdhci: Argument: 0x00000e00 | Trn mode: 0x00000000
[ 13.190701] mmc0: sdhci: Present: 0x01f50009 | Host ctl: 0x00000020
[ 13.197150] mmc0: sdhci: Power: 0x00000000 | Blk gap: 0x00000000
[ 13.203599] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000098
[ 13.210048] mmc0: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[ 13.216497] mmc0: sdhci: Int enab: 0x007f1087 | Sig enab: 0x007f1083
[ 13.222948] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00002102
[ 13.229397] mmc0: sdhci: Caps: 0x37fa0000 | Caps_1: 0x0000af00
[ 13.235846] mmc0: sdhci: Cmd: 0x0000341a | Max curr: 0x00000000
[ 13.242294] mmc0: sdhci: Resp[0]: 0x00001003 | Resp[1]: 0x00000034
[ 13.248745] mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
[ 13.255194] mmc0: sdhci: Host ctl2: 0x00000000
[ 13.259642] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000
[ 13.266787] mmc0: sdhci: ============================================
[ 13.273439] mmc0: error -110 whilst initialising SDIO card
[ 13.322602] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 13.331248] mmc0: queuing unknown CIS tuple 0x80 (6 bytes)
[ 13.340681] mmc0: queuing unknown CIS tuple 0x80 (8 bytes)
[ 13.347749] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
root@localhost:~#
Thx Christophe
Hi Pavel,
Cannot tell since this is the only one I've that was provided with the ARDB.
Let me share the register view of both SDHC interfaces at u-boot stage.
Please, if anybody can help be here I'd be glad - think it's a stupid problem but for now I don't see it.
Thx Christophe
=> md 0x01560000 (ESDHC1)
01560000: 00000000 00000000 00000000 00000000 ................
01560010: 00000000 00000000 00000000 00000000 ................
01560020: 00000000 0800850f 20000000 98200e00 ........... .. .
01560030: c0000000 cf117f37 00100004 00000000 ....7...........
01560040: 0000f237 10001000 00000000 00000000 7...............
01560050: 00000000 00000000 00000000 00000000 ................
01560060: 00000000 00000000 00000000 00000000 ................
01560070: 00000000 00000000 00000000 00000000 ................
01560080: 00000000 00000000 00000000 00000000 ................
01560090: 00000000 00000000 00000000 00000000 ................
015600a0: 00000000 00000000 00000000 00000000 ................
015600b0: 00000000 00000000 00000000 00000000 ................
015600c0: 00000000 00000000 00000000 00000000 ................
015600d0: 00000000 00000000 00000000 00000000 ................
015600e0: 00000000 00000000 00000000 00000000 ................
015600f0: 00000000 00000000 00000000 02210000 ..............!.
01560100: 00000000 00000000 00000000 00000000 ................
01560110: 00000000 07af0000 00000080 00000000 ................
01560120: 02000080 00000000 00000000 00000000 ................
01560130: 00000000 00000000 00000000 00000000 ................
01560140: 01000000 00000000 00000000 00000000 ................
01560150: 00000000 00000000 00000000 00000000 ................
01560160: 00000000 00000000 00000000 00000000 ................
01560170: 00000000 00000000 00000000 00000000 ................
01560180: 00000000 00000000 00000000 00000000 ................
01560190: 00000000 00000000 00000000 00000000 ................
015601a0: 00000000 00000000 00000000 00000000 ................
015601b0: 00000000 00000000 00000000 00000000 ................
015601c0: 00000000 00000000 00000000 00000000 ................
015601d0: 00000000 00000000 00000000 00000000 ................
015601e0: 00000000 00000000 00000000 00000000 ................
015601f0: 00000000 00000000 00000000 00000000 ................
01560200: 00000000 00000000 00000000 00000000 ................
01560210: 00000000 00000000 00000000 00000000 ................
01560220: 00000000 00000000 00000000 00000000 ................
01560230: 00000000 00000000 00000000 00000000 ................
01560240: 00000000 00000000 00000000 00000000 ................
01560250: 00000000 00000000 00000000 00000000 ................
01560260: 00000000 00000000 00000000 00000000 ................
01560270: 00000000 00000000 00000000 00000000 ................
01560280: 00000000 00000000 00000000 00000000 ................
01560290: 00000000 00000000 00000000 00000000 ................
015602a0: 00000000 00000000 00000000 00000000 ................
015602b0: 00000000 00000000 00000000 00000000 ................
015602c0: 00000000 00000000 00000000 00000000 ................
015602d0: 00000000 00000000 00000000 00000000 ................
015602e0: 00000000 00000000 00000000 00000000 ................
015602f0: 00000000 00000000 00000000 00000000 ................
01560300: 00000000 00000000 00000000 00000000 ................
01560310: 00000000 00000000 00000000 00000000 ................
01560320: 00000000 00000000 00000000 00000000 ................
01560330: 00000000 00000000 00000000 00000000 ................
01560340: 00000000 00000000 00000000 00000000 ................
01560350: 00000000 00000000 00000000 00000000 ................
01560360: 00000000 00000000 00000000 00000000 ................
01560370: 00000000 00000000 00000000 00000000 ................
01560380: 00000000 00000000 00000000 00000000 ................
01560390: 00000000 00000000 00000000 00000000 ................
015603a0: 00000000 00000000 00000000 00000000 ................
015603b0: 00000000 00000000 00000000 00000000 ................
015603c0: 00000000 00000000 00000000 00000000 ................
015603d0: 00000000 00000000 00000000 00000000 ................
015603e0: 00000000 00000000 00000000 00000000 ................
015603f0: 00000000 00000000 00000000 00000000 ................
01560400: 00000000 00000000 00000000 40000000 ...............@
=> md 0x01580000 (ESDHC2)
01580000: 00000000 00000000 00000000 00000000 ................
01580010: 00000000 00000000 00000000 00000000 ................
01580020: 00000000 0800880f 20000000 98200e00 ........... .. .
01580030: 00000000 cf117f37 00100004 00000000 ....7...........
01580040: 0000f237 10001000 00000000 00000000 7...............
01580050: 00000000 00000000 00000000 00000000 ................
01580060: 00000000 00000000 00000000 00000000 ................
01580070: 00000000 00000000 00000000 00000000 ................
01580080: 00000000 00000000 00000000 00000000 ................
01580090: 00000000 00000000 00000000 00000000 ................
015800a0: 00000000 00000000 00000000 00000000 ................
015800b0: 00000000 00000000 00000000 00000000 ................
015800c0: 00000000 00000000 00000000 00000000 ................
015800d0: 00000000 00000000 00000000 00000000 ................
015800e0: 00000000 00000000 00000000 00000000 ................
015800f0: 00000000 00000000 00000000 02210000 ..............!.
01580100: 00000000 00000000 00000000 00000000 ................
01580110: 00000000 07af0000 00000080 00000000 ................
01580120: 02000080 00000000 00000000 00000000 ................
01580130: 00000000 00000000 00000000 00000000 ................
01580140: 01000000 00000000 00000000 00000000 ................
01580150: 00000000 00000000 00000000 00000000 ................
01580160: 00000000 00000000 00000000 00000000 ................
01580170: 00000000 00000000 00000000 00000000 ................
01580180: 00000000 00000000 00000000 00000000 ................
01580190: 00000000 00000000 00000000 00000000 ................
015801a0: 00000000 00000000 00000000 00000000 ................
015801b0: 00000000 00000000 00000000 00000000 ................
015801c0: 00000000 00000000 00000000 00000000 ................
015801d0: 00000000 00000000 00000000 00000000 ................
015801e0: 00000000 00000000 00000000 00000000 ................
015801f0: 00000000 00000000 00000000 00000000 ................
01580200: 00000000 00000000 00000000 00000000 ................
01580210: 00000000 00000000 00000000 00000000 ................
01580220: 00000000 00000000 00000000 00000000 ................
01580230: 00000000 00000000 00000000 00000000 ................
01580240: 00000000 00000000 00000000 00000000 ................
01580250: 00000000 00000000 00000000 00000000 ................
01580260: 00000000 00000000 00000000 00000000 ................
01580270: 00000000 00000000 00000000 00000000 ................
01580280: 00000000 00000000 00000000 00000000 ................
01580290: 00000000 00000000 00000000 00000000 ................
015802a0: 00000000 00000000 00000000 00000000 ................
015802b0: 00000000 00000000 00000000 00000000 ................
015802c0: 00000000 00000000 00000000 00000000 ................
015802d0: 00000000 00000000 00000000 00000000 ................
015802e0: 00000000 00000000 00000000 00000000 ................
015802f0: 00000000 00000000 00000000 00000000 ................
01580300: 00000000 00000000 00000000 00000000 ................
01580310: 00000000 00000000 00000000 00000000 ................
01580320: 00000000 00000000 00000000 00000000 ................
01580330: 00000000 00000000 00000000 00000000 ................
01580340: 00000000 00000000 00000000 00000000 ................
01580350: 00000000 00000000 00000000 00000000 ................
01580360: 00000000 00000000 00000000 00000000 ................
01580370: 00000000 00000000 00000000 00000000 ................
01580380: 00000000 00000000 00000000 00000000 ................
01580390: 00000000 00000000 00000000 00000000 ................
015803a0: 00000000 00000000 00000000 00000000 ................
015803b0: 00000000 00000000 00000000 00000000 ................
015803c0: 00000000 00000000 00000000 00000000 ................
015803d0: 00000000 00000000 00000000 00000000 ................
015803e0: 00000000 00000000 00000000 00000000 ................
015803f0: 00000000 00000000 00000000 00000000 ................
01580400: 00000000 00000000 00000000 40000000 ...............@
There is the same message from u-boot. on our LS1012ARDB board.
There is correct message from Linux.
There is the following information under Linux:
root@OpenWrt:/# dmesg | grep sdhc -A 5 -B 5
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
imx2-wdt 2ad0000.wdog: timeout 60 sec (nowayout=0)
qoriq_cpufreq: Freescale QorIQ CPU frequency scaling driver
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-esdhc 1560000.esdhc: assigned as wifi host
sdhci-esdhc 1560000.esdhc: No vmmc regulator found
sdhci-esdhc 1560000.esdhc: No vqmmc regulator found
ata1: SATA link down (SStatus 0 SControl 300)
mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using DMA
caam 1700000.crypto: Instantiated RNG4 SH1
caam 1700000.crypto: device ID = 0x0a14040000000000 (Era
caam 1700000.crypto: job rings = 2, qi = 0
caam algorithms registered in /proc/crypto
caam_jr 1710000.jr: registering rng-caam
There is the following information about this WiFi card under LSDK 1909:
root@TinyLinux:~# dmesg | grep sdhc -A 5 -B 5
[ 2.778530] usbcore: registered new interface driver usb-storage
[ 2.785174] ftm-alarm 29d0000.timer: registered as rtc1
[ 2.788966] i2c /dev entries driver
[ 2.797615] imx2-wdt 2ad0000.wdog: timeout 60 sec (nowayout=0)
[ 2.801565] qoriq_cpufreq: Freescale QorIQ CPU frequency scaling driver
[ 2.802263] sdhci: Secure Digital Host Controller Interface driver
[ 2.802267] sdhci: Copyright(c) Pierre Ossman
[ 2.802811] Synopsys Designware Multimedia Card Interface Driver
[ 2.805871] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.832464] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit
[ 2.833793] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.845238] caam 1700000.crypto: Instantiated RNG4 SH1
[ 2.845250] caam 1700000.crypto: device ID = 0x0a14040000000000 (Era
[ 2.845255] caam 1700000.crypto: job rings = 3, qi = 0
[ 2.850042] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
root@TinyLinux:~# cat /sys/kernel/debug/mmc0/ios
clock: 50000000 Hz
actual clock: 50000000 Hz
vdd: 21 (3.3 ~ 3.4 V)
bus mode: 2 (push-pull)
chip select: 0 (don't care)
power mode: 2 (on)
bus width: 2 (4 bits)
timing spec: 2 (sd high-speed)
signal voltage: 0 (3.30 V)
driver type: 0 (driver type B)
Is the SW2[3] "ON" your board?
What Linux BSP is used on your LS1012ARDB board?
Try to test your LS1012ARDB board using LSDK 2004.