Re: SD card timeouts on older Raspberry Pi 4 models on 14.1-BETA

From: Mark Millard <marklmi_at_yahoo.com>
Date: Tue, 07 May 2024 18:34:58 UTC
On May 7, 2024, at 11:17, HP van Braam <hp@tmm.cx> wrote:

> RE: SD card timeouts on older Raspberry Pi 4 models on 14.1-BETA > I'll note that my testing that Mike mentioned was without any USB devices
> > being plugged into any USB port: Just Serial console, Ethernet connection,
> > power supply, and the fan's power-pin connections. Nothing else connected.
> 
> Thanks for confirming! It just *looks* like the bug I'm chasing then!
> 
> > Only the old 4 GiByte Rev 1.1 RPi4B's failed to boot 14.1.
> 
> I'll test this locally as well, I think I still have one kicking around.
> 
> One thing I'd like you to check is to see if the "mmc" overlay is enabled in
> config.txt. If it is can you try commenting it out? If that does work problems
> are probably related after all.

I did not modify it:

# cat /boot/efi/config.txt
[all]
arm_64bit=1
dtparam=audio=on,i2c_arm=on,spi=on
dtoverlay=mmc
dtoverlay=disable-bt
device_tree_address=0x4000
kernel=u-boot.bin

[pi4]
hdmi_safe=1
armstub=armstub8-gic.bin

So commenting out the dtoverlay=mmc line and switching
to the Rev 1.1 RPi4B to attempt a boot still results in:

. . .
Release APs...done
TCP_ratelimit: Is now initialized
uhub0: 5 ports with 4 removable, self powered
ugen0.2: <vendor 0x2109 USB2.0 Hub> at usbus0
uhub1 on uhub0
uhub1: <vendor 0x2109 USB2.0 Hub, class 9/0, rev 2.10/4.21, addr 1> on usbus0
uhub1: 4 ports with 4 removable, self powered
sdhci_bcm1-slot0: Controller timeout
sdhci_bcm1-slot0: ============== REGISTER DUMP ==============
sdhci_bcm1-slot0: Sys addr: 0x000000c8 | Version:  0x00001002
sdhci_bcm1-slot0: Blk size: 0x00000200 | Blk cnt:  0x00000001
sdhci_bcm1-slot0: Argument: 0x03b723ff | Trn mode: 0x00000012
sdhci_bcm1-slot0: Present:  0x1fff0a06 | Host ctl: 0x00000007
sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:  0x00000080
sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:    0x00000107
sdhci_bcm1-slot0: Timeout:  0x00000003 | Int stat: 0x00000000
sdhci_bcm1-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff0009
sdhci_bcm1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_bcm1-slot0: Caps:     0x45ee6432 | Caps2:    0x0000a525
sdhci_bcm1-slot0: Max curr: 0x00080008 | ADMA err: 0x00000000
sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000
sdhci_bcm1-slot0: ===========================================
mmcsd0: Error indicated: 1 Timeout
sdhci_bcm1-slot0: Controller timeout
sdhci_bcm1-slot0: ============== REGISTER DUMP ==============
sdhci_bcm1-slot0: Sys addr: 0x000000c8 | Version:  0x00001002
sdhci_bcm1-slot0: Blk size: 0x00000200 | Blk cnt:  0x00000001
sdhci_bcm1-slot0: Argument: 0x03b723ff | Trn mode: 0x00000012
sdhci_bcm1-slot0: Present:  0x1fff0a06 | Host ctl: 0x00000007
sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:  0x00000080
sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:    0x00000107
sdhci_bcm1-slot0: Timeout:  0x00000003 | Int stat: 0x00000021
sdhci_bcm1-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff0008
sdhci_bcm1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_bcm1-slot0: Caps:     0x45ee6432 | Caps2:    0x0000a525
sdhci_bcm1-slot0: Max curr: 0x00080008 | ADMA err: 0x00000000
sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000
sdhci_bcm1-slot0: ===========================================
mmcsd0: Error indicated: 1 Timeout
sdhci_bcm1-slot0: Controller timeout
sdhci_bcm1-slot0: ============== REGISTER DUMP ==============
sdhci_bcm1-slot0: Sys addr: 0x000000c8 | Version:  0x00001002
sdhci_bcm1-slot0: Blk size: 0x00000200 | Blk cnt:  0x00000004
sdhci_bcm1-slot0: Argument: 0x03b723c1 | Trn mode: 0x00000036
sdhci_bcm1-slot0: Present:  0x1fff0a06 | Host ctl: 0x00000007
sdhci_bcm1-slot0: Power:    0x0000000f | Blk gap:  0x00000080
sdhci_bcm1-slot0: Wake-up:  0x00000000 | Clock:    0x00000107
sdhci_bcm1-slot0: Timeout:  0x00000003 | Int stat: 0x00000021
sdhci_bcm1-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff0008
sdhci_bcm1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_bcm1-slot0: Caps:     0x45ee6432 | Caps2:    0x0000a525
sdhci_bcm1-slot0: Max curr: 0x00080008 | ADMA err: 0x00000000
sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000
sdhci_bcm1-slot0: ===========================================
mmcsd0: Error indicated: 1 Timeout
mmcsd0: Error indicated: 1 Timeout
mmcsd0: Error indicated: 1 Timeout
mmcsd0: Error indicated: 1 Timeout
mmcsd0: Error indicated: 1 Timeout
mountroot: waiting for device /dev/ufs/rootfs...
Mounting from ufs:/dev/ufs/rootfs failed with error 19.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/ufs/rootfs
  vfs.root.mountfrom.options=rw

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot> 

===
Mark Millard
marklmi at yahoo.com