Raspberrypi5 OS12 boot issue

Hi,

I am on a raspberry pi 5 (8GB) with bookworm OS.
It has a M.2 Hat+ attached to it, with a 128GB SSD.
The raspberry pi 5 is connected via pins to a mainboard,
for power and communication.

I generated a mender-aware image, but it shows a U-Boot sign at the top right corner.

Is there an existing configuration file I can use to make this work?

Hi @adhn,

Thanks for reaching out! Do you by any chance have access to the debug UART and can obtain eventual boot messages there?

Greetz,
Josef

Hi @TheYoctoJester ,

sure, here are those boot messages:

1.66 RPi: BOOTSYS release VERSION:5855b10b DATE: 2025/06/13 TIME: 10:39:26
1.66 BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1749807566 serial 3ccaa137 boardrev d04171 stc 1668232
1.67 AON_RESET: 00000003 PM_RSTS 00001000
1.68 POWER_OFF_ON_HALT: 0 WAIT_FOR_POWER_BUTTON 0 power-on-reset 1
1.69 RP1_BOOT chip ID: 0x20001927
1.69 PCIEx1: PWR 0 DET_WAKE 1
1.69 part 00000000 reset_info 00000000
1.70 PMIC reset-event 00000000 rtc 68a9d41f alarm 00000000 enabled 0
1.70 uSD voltage 3.3V
1.71 SDRAM_CONFIG: 14
1.71 Initialising SDRAM rank 2 total-size: 64 Gbit 4267 (0x14 0x14)
1.71 DDR 4267 1 0 64 152 BL:1
3.56 OTP boardrev d04171 bootrom a a
3.57 Customer key hash 0000000000000000000000000000000000000000000000000000000000000000
3.57 VC-JTAG unlocked
3.60 RP1_BOOT chip ID: 0x20001927

4.23 RP1_BOOT chip ID: 0x20001927
4.23 RP1_BOOT: fw size 46888
4.87 PCI2 init
4.87 PCI2 reset
4.92 PCIe scan 00001de4:00000001
4.92 RP1_CHIP_INFO 20001927

4.92 RPi: BOOTLOADER release VERSION:5855b10b DATE: 2025/06/13 TIME: 10:39:26
4.93 BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1749807566 serial 3ccaa137 boardrev d04171 stc 4931762
4.94 PCIEx1: PWR 1 DET_WAKE 1
4.96 usb_pd_init status 0
5.18 XHCI-STOP
5.18 xHC0 ver: 272 HCS: 03000440 140000f1 07ff000a HCC: 0240fe6d
5.18 USBSTS 11
5.18 xHC0 ver: 272 HCS: 03000440 140000f1 07ff000a HCC: 0240fe6d
5.19 xHC0 ports 3 slots 64 intrs 4
5.20 XHCI-STOP
5.20 xHC1 ver: 272 HCS: 03000440 140000f1 07ff000a HCC: 0240fe6d
5.21 USBSTS 1
5.21 xHC1 ver: 272 HCS: 03000440 140000f1 07ff000a HCC: 0240fe6d
5.21 xHC1 ports 3 slots 64 intrs 4
5.26 Boot mode: SD (01) order f46
5.95 USB2[1] 000206e1 connected
5.96 USB2[1] 00200e03 connected enabled
5.97 USB2 root HUB port 1 init
5.70 DEV [01:00] 2.01 000000:01 class 0 VID 148f PID 7601
10.04 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
10.05 SD HOST: 200000000 CTL0: 0x00800f00 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
10.16 EMMC
10.26 SD retry 1 oc 0
10.28 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
10.39 SD retry 2 oc 0
10.41 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
10.52 SDV1
10.62 SD CMD: 0x371a0010 (55) 0x0 0x1fff0001
10.28 Failed to open device: ‘sdcard’ (cmd 371a0010 status 1fff0001)
10.63 Retry SD 1
10.83 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
10.85 SD HOST: 200000000 CTL0: 0x00800f00 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
10.95 EMMC
11.05 SD retry 1 oc 0
11.08 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
11.19 SD retry 2 oc 0
11.21 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
11.32 SDV1
11.42 SD CMD: 0x371a0010 (55) 0x0 0x1fff0001
11.26 Failed to open device: ‘sdcard’ (cmd 371a0010 status 1fff0001)
11.33 Boot mode: NVME (06) order f4
11.62 PCI1 init
11.62 PCI1 reset
11.79 PCIe scan 00001e4b:00001202
11.79 PCIe scan 00001e4b:00001202
11.95 VID 0x1e4b MN Patriot M.2 P300 128GB
11.77 NVME on 0
11.97 MBR: 0x00006000, 1048576 type: 0x0c
11.98 MBR: 0x00106000,60760064 type: 0x83
11.98 MBR: 0x03af8000,60760064 type: 0x83
11.98 MBR: 0x074ea000, 262144 type: 0x83
11.91 Trying partition: 0
11.94 type: 32 lba: 24576 ‘mkfs.fat’ ’ bootfs ’ clusters 261116 (4)
12.00 rsc 32 fat-sectors 2040 root dir cluster 2 sectors 0 entries 0
12.18 FAT32 clusters 261116
12.18 [nvme] autoboot.txt not found
12.18 Select partition rsts 0 C(boot_partition) 0 EEPROM config 0 result 1
12.96 Trying partition: 1
12.98 type: 32 lba: 24576 ‘mkfs.fat’ ’ bootfs ’ clusters 261115 (4)
12.20 rsc 32 fat-sectors 2040 root dir cluster 2 sectors 0 entries 0
12.39 FAT32 clusters 261115
12.93 Read config.txt bytes 1513 hnd 0x22
12.39 [nvme] pieeprom.upd not found
12.98 usb_max_current_enable default 0 max-current 3000
12.08 Read bcm2712-rpi-5-b.dtb bytes 78231 hnd 0x1ca6
12.41 dt-match: compatible: raspberrypi,5-model-b match: brcm,bcm2712
12.41 dt-match: compatible: brcm,bcm2712 match: brcm,bcm2712
12.27 Selecting USB low current limit
12.43 MESS:00:00:12.430127:0: *** Restart logging
12.17 Read /config.txt bytes 1513 hnd 0x22
12.20 Read /config.txt bytes 1513 hnd 0x22
12.62 MESS:00:00:12.626018:0: Initial voltage 800000 temp 26838
12.82 MESS:00:00:12.826413:0: avs_2712: AVS pred 8280 828000 temp 27937
12.83 MESS:00:00:12.830013:0: vpred 828 mV +0
13.45 MESS:00:00:13.458199:0: FB framebuffer_swap 1
13.46 MESS:00:00:13.460064:0: Select resolution HDMI0/2 hotplug 1 max_mode 2
13.46 MESS:00:00:13.466954:0: Select resolution HDMI1/2 hotplug 0 max_mode 2
13.47 MESS:00:00:13.473872:0: FB0 disp 0 max-fb 2 1920x1080 stride 3840 base 0x3f800000
13.64 Loading ‘initramfs8’ to 0x00000000 offset 0x0
14.31 Read initramfs8 bytes 13295674 hnd 0xc0a9
14.45 MESS:00:00:14.459893:0: initramfs (initramfs8) loaded to 0x2e351000 (size 0xcae03a)
14.49 MESS:00:00:14.497152:0: dtb_file ‘bcm2712-rpi-5-b.dtb’
14.49 Loading ‘bcm2712-rpi-5-b.dtb’ to 0x00000000 offset 0x100
14.09 Read bcm2712-rpi-5-b.dtb bytes 78231 hnd 0x1ca6
14.98 Read /overlays/overlay_map.dtb bytes 5555 hnd 0x1eb7
14.06 Read /overlays/bcm2712d0.dtbo bytes 1363 hnd 0x1e42
14.72 MESS:00:00:14.729656:0: Loaded overlay ‘bcm2712d0’
14.32 Read /overlays/hat_map.dtb bytes 2297 hnd 0x1e73
14.94 [nvme] /overlays/pciex1.dtbo not found
14.47 /overlays/pciex1.dtbo
15.54 Read /config.txt bytes 1513 hnd 0x22
15.15 MESS:00:00:15.155638:0: dtparam: i2c_arm=on
15.17 MESS:00:00:15.171177:0: dtparam: audio=on
15.17 MESS:00:00:15.176903:0: Unknown dtparam ‘audio’ - ignored
15.92 Read /overlays/vc4-kms-v3d-pi5.dtbo bytes 3350 hnd 0x1efe
15.39 MESS:00:00:15.398973:0: Loaded overlay ‘vc4-kms-v3d-pi5’
15.40 MESS:00:00:15.401908:0: dtparam: uart0=on
15.19 Read /overlays/disable-bt-pi5.dtbo bytes 271 hnd 0x7779
15.68 MESS:00:00:15.689535:0: Loaded overlay ‘disable-bt-pi5’
15.04 /overlays/uart0 # aktiviert UART0 auf GPIO14/15.dtbo
15.34 Read /cmdline.txt bytes 154 hnd 0x21
15.93 MESS:00:00:15.935559:0: Read command line from file ‘cmdline.txt’:
15.94 MESS:00:00:15.942060:0: ‘console=tty1 root=${mender_kernel_root} rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=AT’
16.16 MESS:00:00:16.162019:0: RPM 6146, max RPM 6146
16.41 BMD “armstub8-2712.bin” not found
16.15 fs_open: ‘armstub8-2712.bin’
16.41 Loading ‘kernel8.img’ to 0x00000000 offset 0x200000
16.46 Read kernel8.img bytes 635080 hnd 0x23
16.44 MESS:00:00:16.448510:0: Kernel relocated to 0x80000
16.53 NVME off
16.45 MESS:00:00:16.454876:0: Device tree loaded to 0x2e33d500 (size 0x13a07)
16.46 PCI1 reset
16.47 PCI2 reset
16.48 set_reboot_order 0
16.48 set_reboot_arg1 0
16.48 USB-OTG disconnect
16.68 MESS:00:00:16.686912:0: BSC_A no ACK
16.68 MESS:00:00:16.688143:0: BSC_A no ACK
16.69 MESS:00:00:16.692069:0: BSC_A no ACK
16.71 MESS:00:00:16.718012:0: BSC_B no ACK
16.71 MESS:00:00:16.719239:0: BSC_B no ACK
16.72 MESS:00:00:16.723164:0: BSC_B no ACK
16.74 MESS:00:00:16.748964:0: Starting OS 16748 ms
16.75 MESS:00:00:16.754571:0: 00000040: → 00000480
16.75 MESS:00:00:16.756421:0: 00000030: → 00100080
16.76 MESS:00:00:16.761134:0: 00000034: → 00100080
16.76 MESS:00:00:16.765847:0: 00000038: → 00100080
16.77 MESS:00:00:16.770560:0: 0000003c: → 00100080

NOTICE: BL31: v2.6(release):v2.6-240-gfc45bc492
NOTICE: BL31: Built : 12:55:13, Dec 4 2024

U-Boot 2024.04-gb214b2cf3c (Feb 18 2025 - 08:39:11 +0000)

DRAM: 1016 MiB (effective 8 GiB)
RPI 5 Model B (0xd04171)
Core: 24 devices, 11 uclasses, devicetree: board
MMC: mmc@fff000: 0, mmc@1100000: 1
Loading Environment from MMC… Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment

In: serial,usbkbd
Out: serial,vidconsole
Err: serial,vidconsole
Net: No ethernet found.
starting USB…
No working controllers found
Hit any key to stop autoboot: 0
Working FDT set to 2e33d500
Saving Environment to MMC… Card did not respond to voltage select! : -110
No block device
Failed (1)
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
Couldn’t find partition mmc 0:2
Can’t set block device
could not load kernel, trying to recover

Hope this helps.
Thank you!

Howdy!

Thanks, that’s definitely helpful. Reaching u-boot is a good sign, so it’s essentially just the u-boot environment and/or boot script to be adjusted. I don’t have a RPi with NVMe drive around, so I can’t go tinkering about it unfortunately. :frowning:

Greetz,
Josef