Source: u-boot
Version: 2025.01-3
Severity: normal
Tags: upstream

Hi,

I am trying to use u-boot on a Raspberry Pi 4. Since the current version 
of raspi-firmware has other issues accessing SD cards on the Raspberry 
Pi 4, I am using the firmware dated Mar 19 2025 from Raspberry Pi OS.  
The package being used is u-boot-rpi_2025.01-3_arm64, and I am using 
/usr/lib/u-boot/rpi_arm64/u-boot.bin (the 
/usr/lib/u-boot/rpi_4/u-boot.bin fails earlier).

This version of u-boot does not seem to be able to access the SD card 
that it was itself booted from at all:

MMC:   mmc@7e300000: 0, mmc@7e340000: 1
Loading Environment from FAT... Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **

(and later, after stopping autoboot to get to the u-boot shell)

U-Boot> fatls mmc 0:0
Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
Couldn't find partition mmc 0:0

Full log pasted below.

If I can do anything to help debugging this, I am available. I can also 
give you an image of an SD card that you can use on a Raspberry Pi 4 to 
debug. The image is 162 MB large.

Thank you very much for providing u-boot.

Greetings
Marc


Full log follows:

  2.67 RPi: BOOTLOADER release VERSION:69471177 DATE: 2025/05/08 TIME: 16:21:35
  2.67 BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1746717695 serial 
78b53347 boardrev d03114 stc 2679968
  2.71 PCI0 init
  2.71 PCI0 reset
  2.88 PCIe scan 00001106:00003483
  2.99 XHCI-STOP
  2.99 xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
  2.99 USBSTS 11
  3.00 xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
  3.00 xHC0 ports 5 slots 32 intrs 4
  3.16 Boot mode: USB-MSD (04) order f1
  3.17 USB2[1] 400202e1 connected
  3.35 USB2 root HUB port 1 init
  3.03 DEV [01:00] 2.16 000000:01 class 9 VID 2109 PID 3431
  3.04 HUB init [01:00] 2.16 000000:01
  3.93 XHCI-STOP
  3.93 xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
  3.93 USBSTS 18
  3.94 XHCI-STOP
  3.94 xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
  3.95 USBSTS 19
  3.95 xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
  3.95 xHC0 ports 5 slots 32 intrs 4
  3.69 USB2[1] 400202e1 connected
  3.84 USB2 root HUB port 1 init
  3.98 DEV [01:00] 2.16 000000:01 class 9 VID 2109 PID 3431
  3.98 HUB init [01:00] 2.16 000000:01
 28.84 USB MSD stopped. Timeout: 25 seconds
 28.85 Boot mode: SD (01) order f
 29.00 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ 
div: 512 (256) status: 0x1fff0000 delay: 276
 29.01 SD HOST: 200000000 CTL0: 0x00800f00 BUS: 400000 Hz actual: 390625 HZ 
div: 512 (256) status: 0x1fff0000 delay: 276
 29.10 OCR c0ff8000 [76]
CID: 009f54494153544300120000116d016a
CSD: 400e00325b5900003a3b7f800a400000
 29.11 SD: bus-width: 4 spec: 2 SCR: 0x02b58000 0x00000000
 29.12 SD HOST: 200000000 CTL0: 0x00800f04 BUS: 50000000 Hz actual: 50000000 HZ 
div: 4 (2) status: 0x1fff0000 delay: 2
 29.13 MBR: 0x00000001,15265791 type: 0xee
 29.13 MBR: 0x00000000,       0 type: 0x00
 29.13 MBR: 0x00000000,       0 type: 0x00
 29.13 MBR: 0x00000000,       0 type: 0x00
 29.43 Trying partition: 0
 29.14 GPT 8191cb7062f5e84eb064bb71a979ec35 000000001 000e8efff num-partitions 
128 entry-size 128 pentry 2 first 0
 29.15 GPT partition: 0 ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 
000000800..0004007ff
 29.16 Matched GUID bootable-part-idx 0 want partition 0
 29.68 type: 32 lba: 2048 'mkfs.fat' ' FIRMWARE   ' clusters 523262 (8)
 29.17 rsc 32 fat-sectors 4088 root dir cluster 2 sectors 0 entries 0
 29.18 FAT32 clusters 523262
 29.18 [sdcard] autoboot.txt not found
 29.19 Select partition rsts 0 C(boot_partition) 0 EEPROM config 0 result 1
 29.96 Trying partition: 1
 29.19 GPT 8191cb7062f5e84eb064bb71a979ec35 000000001 000e8efff num-partitions 
128 entry-size 128 pentry 2 first 0
 29.20 GPT partition: 0 ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 
000000800..0004007ff
 29.21 Matched GUID bootable-part-idx 0 want partition 0
 29.22 type: 32 lba: 2048 'mkfs.fat' ' FIRMWARE   ' clusters 523262 (8)
 29.22 rsc 32 fat-sectors 4088 root dir cluster 2 sectors 0 entries 0
 29.26 FAT32 clusters 523262
 29.66 Read config.txt bytes      613 hnd 0xe6f9
 29.26 [sdcard] pieeprom.upd not found
 29.27 [sdcard] recover4.elf not found
 29.27 [sdcard] recovery.elf not found
 29.03 Read start4.elf bytes  2263840 hnd 0xed4b
 29.10 Read fixup4.dat bytes     5459 hnd 0xe6fb
 29.12 0x00d03114 0x00000000 0x00001fff
 29.15 MEM GPU: 76 ARM: 948 TOTAL: 1024
 29.18 Firmware: ca6e8171a80ea46924ffaa629250bfb482f3a02c Mar 19 2025 18:24:21
 29.51 Starting start4.elf @ 0xfec00200 partition 1
 29.59 XHCI-STOP
 29.59 xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
 29.59 USBSTS 18
 29.59 PCI0 reset
 29.68 +

MESS:00:00:29.699107:0: arasan: arasan_emmc_open
MESS:00:00:29.700765:0: arasan: arasan_emmc_set_clock C0: 0x00800000 C1: 
0x000e0047 emmc: 200000000 actual: 390625 div: 0x00000100 target: 400000 min: 
400000 max: 400000 delay: 5
MESS:00:00:29.821002:0: arasan: arasan_emmc_set_clock C0: 0x00800000 C1: 
0x000e0047 emmc: 200000000 actual: 390625 div: 0x00000100 target: 400000 min: 
400000 max: 400000 delay: 5
MESS:00:00:29.833873:0: arasan: arasan_emmc_set_clock C0: 0x00800f00 C1: 
0x000e0047 emmc: 200000000 actual: 390625 div: 0x00000100 target: 400000 min: 
390000 max: 400000 delay: 5
MESS:00:00:29.868481:0: boot-part: 1 fs-type: 5
MESS:00:00:30.001955:0: boot-part: 0 fs-type: 3
MESS:00:00:30.003496:0: arasan: arasan_emmc_set_clock C0: 0x00800f06 C1: 
0x000e0207 emmc: 200000000 actual: 50000000 div: 0x00000002 target: 50000000 
min: 0 max: 50000000 delay: 1
MESS:00:00:30.342612:0: brfs: File read: /mfs/sd/config.txt
MESS:00:00:30.345491:0: brfs: File read: 613 bytes
MESS:00:00:30.371768:0: HDMI0:EDID error reading EDID block 0 attempt 0
MESS:00:00:30.376271:0: HDMI0:EDID giving up on reading EDID block 0
MESS:00:00:30.393376:0: HDMI1:EDID error reading EDID block 0 attempt 0
MESS:00:00:30.397883:0: HDMI1:EDID giving up on reading EDID block 0
MESS:00:00:30.406158:0: brfs: File read: /mfs/sd/config.txt
MESS:00:00:30.871859:0: gpioman: gpioman_get_pin_num: pin DISPLAY_DSI_PORT not 
defined
MESS:00:00:30.877420:0: gpioman: gpioman_get_pin_num: pin DISPLAY_DSI_PORT not 
defined
MESS:00:00:30.886447:0: *** Restart logging
MESS:00:00:30.888224:0: brfs: File read: 613 bytes
MESS:00:00:30.898158:0: hdmi: HDMI0:EDID error reading EDID block 0 attempt 0
MESS:00:00:30.903183:0: hdmi: HDMI0:EDID giving up on reading EDID block 0
MESS:00:00:30.913807:0: hdmi: HDMI0:EDID error reading EDID block 0 attempt 0
MESS:00:00:30.918837:0: hdmi: HDMI0:EDID giving up on reading EDID block 0
MESS:00:00:30.924435:0: hdmi: HDMI:hdmi_get_state is deprecated, use 
hdmi_get_display_state instead
MESS:00:00:30.938225:0: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0
MESS:00:00:30.943255:0: hdmi: HDMI1:EDID giving up on reading EDID block 0
MESS:00:00:30.953877:0: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0
MESS:00:00:30.958901:0: hdmi: HDMI1:EDID giving up on reading EDID block 0
MESS:00:00:30.964498:0: hdmi: HDMI:hdmi_get_state is deprecated, use 
hdmi_get_display_state instead
MESS:00:00:30.973263:0: HDMI0: hdmi_pixel_encoding: 300000000
MESS:00:00:30.978737:0: HDMI1: hdmi_pixel_encoding: 300000000
MESS:00:00:30.994685:0: dtb_file 'bcm2711-rpi-4-b.dtb'
MESS:00:00:31.003802:0: brfs: File read: /mfs/sd/bcm2711-rpi-4-b.dtb
MESS:00:00:31.007042:0: Loaded 'bcm2711-rpi-4-b.dtb' to 0x100 size 0x9ae2
MESS:00:00:31.023963:0: brfs: File read: 39650 bytes
MESS:00:00:31.078548:0: brfs: File read: /mfs/sd/overlays/overlay_map.dtb
MESS:00:00:31.136525:0: brfs: File read: 5555 bytes
MESS:00:00:31.143220:0: brfs: File read: /mfs/sd/config.txt
MESS:00:00:31.158823:0: brfs: File read: 613 bytes
MESS:00:00:31.161966:0: brfs: File read: /mfs/sd/cmdline.txt
MESS:00:00:31.165903:0: Read command line from file 'cmdline.txt':
MESS:00:00:31.171781:0: 'console=tty0 console=ttyS1,115200 
root=/dev/mapper/rasp-root rw fsck.repair=yes net.ifnames=0  rootwait'
MESS:00:00:31.276170:0: brfs: File read: 104 bytes
MESS:00:00:31.344270:0: brfs: File read: /mfs/sd/u-boot.bin
MESS:00:00:31.346742:0: Loaded 'u-boot.bin' to 0x200000 size 0xa90a0
MESS:00:00:31.353533:0: Kernel relocated to 0x80000
MESS:00:00:31.357413:0: Device tree loaded to 0x2eff5f00 (size 0xa017)
MESS:00:00:31.366148:0: uart: Set PL011 baud rate to 103448.300000 Hz
MESS:00:00:31.372735:0: uart: Baud rate change done...
MESS:00:00:31.374757:0:

U-Boot 2025.01-3 (Apr 08 2025 - 23:07:41 +0000)

DRAM:  948 MiB (effective 7.9 GiB)
RPI 4 Model B (0xd03114)
Core:  178 devices, 18 uclasses, devicetree: board
MMC:   mmc@7e300000: 0, mmc@7e340000: 1
Loading Environment from FAT... Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
Net:   eth0: ethernet@7d580000

PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... abort_td: Expected a TRB_TRANSFER TRB first
XHCI timeout on event type 33...
unable to get device descriptor (error=-110)
1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
U-Boot> 
U-Boot> 
U-Boot> 
U-Boot> 
U-Boot> 
U-Boot> 
U-Boot> 
U-Boot> fatls mmc 0:0
Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
Couldn't find partition mmc 0:0
U-Boot> 
Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
Couldn't find partition mmc 0:0
U-Boot> 

Reply via email to