Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6039

Compute Module • Re: CM5 IO board reboot & shutdown hang when booting from NVMe

$
0
0
From the hardware perspective "sudo shutdown now" and "sudo reboot" are identical. Both trigger a watchdog reset, the former sets the reboot parameter to 63.
The early reboot handler doesn't depend on the boot device, it's the minimal code loaded from SPI flash.

Best guess is that that the reset from the kernel hasn't happened yet. To confirm that you'd need to connect / probe the dedicated boot UART pins to observe the reboot/halt.
Thanks for the tip. Below is the output from the debug UART interface. I'm not sure why, but it seems like once the kernel takes over the interface it switches baud rate or something? I don't know what to make of that jumbled output. (/boot/firmware/cmdline.txt of course has "console=serial0,115200")

When running "sudo shutdown now" via ssh, nothing is printed immediately, then 30-70 seconds later we see the last few messages related to powering off.

It more or less seems like the issue is potentially in the OS-side, but where do we go from here to figure this out?

Code:

  1.53 RPi: BOOTSYS release VERSION:a7753063 DATE: 2025/01/22 TIME: 00:16:51  1.57 BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1737505011 serial 1773976b boardrev c041a0 stc 1657692  1.67 AON_RESET: 00000003 PM_RSTS 00001000  1.71 POWER_OFF_ON_HALT: 0 WAIT_FOR_POWER_BUTTON 0 power-on-reset 1  1.81 RP1_BOOT chip ID: 0x20001927  1.90 part 00000000 reset_info 00000000  1.91 PMIC reset-event 00000000 rtc 00000001 alarm 00000000 enabled 0  1.97 uSD voltage 3.3V  1.03 SDRAM_CONFIG: 15  1.03 Initialising SDRAM rank 2 total-size: 32 Gbit 4267 (0x15 0x15)  1.09 DDR 4267 1 0 32 152 BL:1  3.64 OTP boardrev c041a0 bootrom a a  3.65 Customer key hash 0000000000000000000000000000000000000000000000000000000000000000  3.72 VC-JTAG unlocked  3.95 RP1_BOOT chip ID: 0x20001927  4.27 RP1_BOOT chip ID: 0x20001927  4.27 RP1_BOOT: fw size 46888  4.65 PCI2 init  4.65 PCI2 reset  4.10 PCIe scan 00001de4:00000001  4.10 RP1_CHIP_INFO 20001927  4.13 RPi: BOOTLOADER release VERSION:a7753063 DATE: 2025/01/22 TIME: 00:16:51  4.20 BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1737505011 serial 1773976b boardrev c041a0 stc 4920426  4.54 usb_pd_init status 5  4.54 Boot mode: SD (01) order f46  4.71 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  4.82 SD HOST: 200000000 CTL0: 0x00800f00 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  5.91 EMMC  5.91 SD retry 1 oc 0  5.15 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  5.24 SD retry 2 oc 0  5.48 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  5.57 SDV1  5.57 SD CMD: 0x371a0010 (55) 0x0 0x1fff0001  5.59 Failed to open device: 'sdcard' (cmd 371a0010 status 1fff0001)  5.65 Retry SD 1  5.95 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  5.06 SD HOST: 200000000 CTL0: 0x00800f00 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  5.15 EMMC  5.15 SD retry 1 oc 0  5.39 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  5.48 SD retry 2 oc 0  5.72 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  6.81 SDV1  6.81 SD CMD: 0x371a0010 (55) 0x0 0x1fff0001  6.83 Failed to open device: 'sdcard' (cmd 371a0010 status 1fff0001)  6.89 Boot mode: NVME (06) order f4  6.06 PCI1 init  6.06 PCI1 reset  6.64 PCIe scan 0000144d:0000a809  6.64 PCIe scan 0000144d:0000a809  6.72 VID 0x144d MN SAMSUNG MZ9LQ256HBJD-00BVL  6.76 NVME on 0  6.77 MBR: 0x00002000, 1048576 type: 0x0c  6.80 MBR: 0x00102000,499061424 type: 0x83  6.84 MBR: 0x00000000,       0 type: 0x00  6.87 MBR: 0x00000000,       0 type: 0x00  6.91 Trying partition: 0  6.94 type: 32 lba: 8192 'mkfs.fat' ' bootfs     ' clusters 261116 (4)  6.00 rsc 32 fat-sectors 2040 root dir cluster 2 sectors 0 entries 0  6.06 FAT32 clusters 261116  6.12 [nvme] autoboot.txt not found  6.12 Select partition rsts 0 C(boot_partition) 0 EEPROM config 0 result 0  6.19 Trying partition: 0  6.22 type: 32 lba: 8192 'mkfs.fat' ' bootfs     ' clusters 261115 (4)  6.28 rsc 32 fat-sectors 2040 root dir cluster 2 sectors 0 entries 0  6.34 FAT32 clusters 261115  6.39 Read config.txt bytes     1247 hnd 0x1f8  6.42 [nvme] pieeprom.upd not found  6.44 usb_max_current_enable default 0 max-current 5000  6.49 set_reboot_order 0  6.56 Read bcm2712-rpi-5-b.dtb bytes    81451 hnd 0x1c46  6.58 dt-match: compatible: raspberrypi,5-model-b match: brcm,bcm2712  6.65 dt-match: compatible: brcm,bcm2712 match: brcm,bcm2712  6.73 Read /config.txt bytes     1247 hnd 0x1f8  6.76 Read /config.txt bytes     1247 hnd 0x1f8  6.82 MESS:00:00:06.482726:0: Initial voltage 800000 temp 49370  6.83 MESS:00:00:06.683129:0: avs_2712: AVS pred 8700 870000 temp 49920  6.86 MESS:00:00:06.686736:0: vpred 870 mV +0  6.00 MESS:00:00:06.700468:0: FB framebuffer_swap 1  6.20 MESS:00:00:06.720182:0: Select resolution HDMI0/2 hotplug 0 max_mode 2  6.24 MESS:00:00:06.724232:0: Select resolution HDMI1/2 hotplug 0 max_mode 2  6.32 Loading 'initramfs_2712' to 0x00000000 offset 0x0  7.14 Read initramfs_2712 bytes 13268358 hnd 0xd64b  7.91 MESS:00:00:07.291375:0: dtb_file 'bcm2712-rpi-cm5l-cm5io.dtb'  7.94 Loading 'bcm2712-rpi-cm5l-cm5io.dtb' to 0x00000000 offset 0x100  7.05 Read bcm2712-rpi-cm5l-cm5io.dtb bytes    81918 hnd 0x1d0e  7.37 Read /overlays/overlay_map.dtb bytes     5451 hnd 0x1de6  7.45 Read /overlays/bcm2712d0.dtbo bytes     1507 hnd 0x1dd9  7.71 MESS:00:00:07.371115:0: Loaded overlay 'bcm2712d0'  7.65 Read /config.txt bytes     1247 hnd 0x1f8  7.66 MESS:00:00:07.466894:0: dtparam: audio=on  7.75 MESS:00:00:07.475827:0: Unknown dtparam 'audio' - ignored  7.88 Read /overlays/vc4-kms-v3d-pi5.dtbo bytes     3330 hnd 0x1df4  7.30 MESS:00:00:07.530387:0: Loaded overlay 'vc4-kms-v3d-pi5'  7.29 Read /overlays/dwc2.dtbo bytes      801 hnd 0x7785  7.41 MESS:00:00:07.641594:0: Loaded overlay 'dwc2'  7.43 MESS:00:00:07.643458:0: dtparam: dr_mode=host  7.47 Read /cmdline.txt bytes      176 hnd 0x222  7.72 BMD "armstub8-2712.bin" not found  7.73 fs_open: 'armstub8-2712.bin'  7.76 Loading 'kernel_2712.img' to 0x00000000 offset 0x200000  8.58 Read kernel_2712.img bytes  9354568 hnd 0x6c19  9.53 NVME off  9.53 PCI1 reset  9.63 PCI2 reset  9.73 USB-OTG disconnect  9.13 MESS:00:00:09.613313:0: Starting OS 9613 ms  9.18 MESS:00:00:09.618834:0: 00000040: -> 00000480  9.20 MESS:00:00:09.620683:0: 00000030: -> 00100080  9.25 MESS:00:00:09.625395:0: 00000034: -> 00100080  9.30 MESS:00:00:09.630108:0: 00000038: -> 00100080  9.34 MESS:00:00:09.634821:0: 0000003c: -> 00100080NOTICE:  BL31: v2.6(release):v2.6-240-gfc45bc492NOTICE:  BL31: Built : 12:55:13, Dec  4 2024Debian GNU/Linux 12 cm5 ttyAMA10My IP address is 127.0.1.1 ::ffff:127.0.1.1cm5 login:Debian GNU/������f��x��ff�f~`fff�f���怘�昆�f��x`��fx��������x~���xf~���fx~`�����~���~`���怘�ff�f���~f������怘�`fxf����`��ff�������f��x��ff�f~`fff�f���怘�昆�f��x`��fx��������x~���xf~���fx~`�����~���~`���怘�ff�f���~f������怘�`fxf����`��ff�������f��x��ff�f~`fff�f���怘�昆�f��x`��fx����������x�������xf~���fx~`�����~���~`���怘�ff�f���~f������f�x`������`�x�f�fx���`�~f�~fxx��~��怘�  1.53 RPi: BOOTSYS release VERSION:a7753063 DATE: 2025/01/22 TIME: 00:16:51  1.57 BOOTMODE: 0x06 partition 63 build-ts BUILD_TIMESTAMP=1737505011 serial 1773976b boardrev c041a0 stc 1657542  1.67 AON_RESET: 00000003 PM_RSTS 00001575  1.71 POWER_OFF_ON_HALT: 0 WAIT_FOR_POWER_BUTTON 0 power-on-reset 0  1.81 RP1_BOOT chip ID: 0x20001927  1.85 Halt: power_off: 0

Statistics: Posted by Muny — Thu Jan 30, 2025 12:18 am



Viewing all articles
Browse latest Browse all 6039

Latest Images

Trending Articles



Latest Images