[Letux-kernel] LX20 prototype is booting

H. Nikolaus Schaller hns at goldelico.com
Mon May 5 21:35:27 CEST 2025


Hi Paul,
after upgrading Letux to 6.15-rc5 I have checked again for SDHCI.

The boot log of the 6.1.28 kernel reports a spurious interrupt but then initialized.
The 6.15 doesn't but reports an errno = -145 (ETIMEDOUT but MIPS only!).

Attached is a stripped down boot log of 6.1.28 vs. 6.15-rc5

Hm. Maybe it is an issue in pinctrl or dual-edge interrupts?

git diff sudomaker-6.1.28 work-x2000-sudomaker drivers/pinctrl/pinctrl-ingenic.c 

shows some differences but it is not clear if they are significant.

I think I should better debug the gpio-keys irq issue next. It is quite easily
repeatable by pressing teh WKUP button. Then, kernel stops and LEDs don't blink.
Unless I release and then everything continues.

And/or I should dig into the exec() syscall code (do_execve) where it decides that
it can't read and exec the code (Starting init: /sbin/init exists but couldn't execute it (error -8)).

And, I have pushed both trees now:

https://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work-x2000-sudomaker
https://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/sudomaker-6.1.28

BR,
Nikolaus

6.1.28:

[    0.017086] sdhci: Secure Digital Host Controller Interface driver
[    0.017086] sdhci: Copyright(c) Pierre Ossman
[    0.017086] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.017086] ingenic,sdhci 13490000.sdhci: Looking up vmmc-supply from device tree
[    0.017086] ingenic,sdhci 13490000.sdhci: Looking up vmmc-supply property in node /sdhci at 13490000 failed
[    0.017086] ingenic,sdhci 13490000.sdhci: Looking up vqmmc-supply from device tree
[    0.017086] ingenic,sdhci 13490000.sdhci: Looking up vqmmc-supply property in node /sdhci at 13490000 failed
[    0.017086] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017086] mmc0: SDHCI controller on ingenic-sdhci [13490000.sdhci] using ADMA
[    0.017086] Waiting for root device /dev/mmcblk0p2...
[    0.017086] mmc0: Got command interrupt 0x00000001 even though no command operation was in progress.
[    0.017086] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[    0.017086] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00000005
[    0.017086] mmc0: sdhci: Blk size:  0x00000000 | Blk cnt:  0x00000000
[    0.017086] mmc0: sdhci: Argument:  0x80000c08 | Trn mode: 0x00000000
[    0.017086] mmc0: sdhci: Present:   0x03f70000 | Host ctl: 0x00000001
[    0.017086] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[    0.017086] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x0000fa0f
[    0.017086] mmc0: sdhci: Timeout:   0x00000000 | Int stat: 0x00000000
[    0.017086] mmc0: sdhci: Int enab:  0x00ff0003 | Sig enab: 0x00ff0003
[    0.017086] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[    0.017086] mmc0: sdhci: Caps:      0x276dc898 | Caps_1:   0x08002077
[    0.017086] mmc0: sdhci: Cmd:       0x0000341a | Max curr: 0x00000000
[    0.017086] mmc0: sdhci: Resp[0]:   0x00000000 | Resp[1]:  0x00000000
[    0.017086] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[    0.017086] mmc0: sdhci: Host ctl2: 0x00001000
[    0.017086] mmc0: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x00000000
[    0.017086] mmc0: sdhci: ============================================
[    0.017086] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017086] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017086] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017086] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017086] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017086] sdhci_ingenic_set_clock, set clk: 25000000, get_clk_rate=24000000
[    0.017086] sdhci_ingenic_set_clock, set clk: 25000000, get_clk_rate=24000000
[    0.017086] sdhci_ingenic_set_clock, set clk: 25000000, get_clk_rate=24000000
[    0.017086] mmc0: new high speed SDHC card at address 59b4
[    0.017086] mmcblk0: mmc0:59b4 USDU1 28.3 GiB 
[    0.017086]  mmcblk0: p1 p2
[    0.017086] EXT4-fs: Warning: mounting with data=journal disables delayed allocation, dioread_nolock, O_DIRECT and fast_commit support!
[    0.017086] EXT4-fs (mmcblk0p2): mounted filesystem with journalled data mode. Quota mode: none.
[    0.017086] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    0.017086] devtmpfs: mounted
[    0.017086] Freeing unused kernel image (initmem) memory: 264K
[    0.017086] This architecture does not have kernel memory protection.

6.15-rc5:

[    0.017005] sdhci: Secure Digital Host Controller Interface driver
[    0.017005] sdhci: Copyright(c) Pierre Ossman
[    0.017005] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.017005] ingenic,sdhci 13490000.sdhci: Looking up vmmc-supply from device node /sdhci at 13490000
[    0.017005] ingenic,sdhci 13490000.sdhci: Looking up vmmc-supply property in node /sdhci at 13490000 failed
[    0.017005] ingenic,sdhci 13490000.sdhci: Looking up vqmmc-supply from device node /sdhci at 13490000
[    0.017005] ingenic,sdhci 13490000.sdhci: Looking up vqmmc-supply property in node /sdhci at 13490000 failed
[    0.017005] ingenic,sdhci 13490000.sdhci: Looking up vqmmc2-supply from device node /sdhci at 13490000
[    0.017005] ingenic,sdhci 13490000.sdhci: Looking up vqmmc2-supply property in node /sdhci at 13490000 failed
[    0.017005] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017005] mmc0: SDHCI controller on ingenic-sdhci [13490000.sdhci] using ADMA
[    0.017005] Waiting for root device /dev/mmcblk0p2...
[    0.017005] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017005] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017005] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017005] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017005] sdhci_ingenic_set_clock, set clk: 400000, get_clk_rate=400000
[    0.017005] sdhci_ingenic_set_clock, set clk: 25000000, get_clk_rate=23076923
[    0.017005] sdhci_ingenic_set_clock, set clk: 25000000, get_clk_rate=23076923
[    0.017005] mmc0: error -145 whilst initialising SD card
[    0.017005] sdhci_ingenic_set_clock, set clk: 25000000, get_clk_rate=23076923
[    0.017005] sdhci_ingenic_set_clock, set clk: 300000, get_clk_rate=300000
[    0.017005] sdhci_ingenic_set_clock, set clk: 300000, get_clk_rate=300000
[    0.017005] sdhci_ingenic_set_clock, set clk: 300000, get_clk_rate=300000
[    0.017005] sdhci_ingenic_set_clock, set clk: 300000, get_clk_rate=300000
[    0.017005] sdhci_ingenic_set_clock, set clk: 300000, get_clk_rate=300000
[    0.017005] sdhci_ingenic_set_clock, set clk: 300000, get_clk_rate=300000
[    0.017005] sdhci_ingenic_set_clock, set clk: 25000000, get_clk_rate=23076923
[    0.017005] sdhci_ingenic_set_clock, set clk: 25000000, get_clk_rate=23076923



More information about the Letux-kernel mailing list