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

Troubleshooting • Compute Module 4 doesn't boot with gpt partition table

$
0
0
Hi,

I'm using the Compute Module 4 with CM4 IO board. I'm adapting a firmware to work on raspberry.

I have a wic image generated yocto, using the following wks :

Code:

part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 20# Rescue rootfspart --ondisk mmcblk --fstype=ext4 --label rescue --align 4096 --fixed-size=200 --source rawcopy --sourceparams="file=rescue-partition-image-${MACHINE}.ext4"# Main rootfspart / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs1 --fixed-size=1400# sur rpi : part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096# Second rootfs (empty, will be populated on system update)part --ondisk mmcblk --fstype=ext4 --label rootfs2 --fixed-size=1400# Data partitionpart --ondisk mmcblk --fstype=ext4 --label data --fixed-size=300bootloader --ptable msdos
boot partition is uboot, rescue partition is a linux partition used if rootfs1 and 2 are broken, and rootfs1 and 2 are the main linux partitions, two partitions for swupdate. And data partition is the partition to store data during update.

This configuration is working fine. kernel boots up, my applications start etc... But I can't perform an update with swupdate because the target partition is not "valid".

msdos partition table doesn't support 5 partitions and concatenate part 4 and 5.

I then tried to replace ptable msdos by ptable gpt in my wks, but then it's not booting anymore.

I can see this on UART console :

Code:

0.16 RPi: BOOTSYS release VERSION:75c1e570 DATE: 2025/02/11 TIME: 17:00:13  0.20 BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1739293213 serial 507ffc92 boardrev a03141 stc 520247  0.30 PM_RSTS 00001000  0.32 POWER_OFF_ON_HALT: 0 WAIT_FOR_POWER_BUTTON 0 power-on-reset 1  0.45 part 00000000 reset_info 00000000  0.46 uSD voltage 3.3V  0.72 Initialising SDRAM rank 1 total-size: 8 Gbit 3200 (0x07 0x00)  0.75 DDR 3200 0 0 8 152 BL:3  1.12 OTP boardrev a03141 bootrom 48b0 48b0  1.14 Customer key hash 0000000000000000000000000000000000000000000000000000000000000000  1.21 VC-JTAG unlocked  1.98 RPi: BOOTLOADER release VERSION:75c1e570 DATE: 2025/02/11 TIME: 17:00:13  1.02 BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1739293213 serial 507ffc92 boardrev a03141 stc 1802357  1.37 Boot mode: SD (01) order f2564  1.52 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  1.62 SD HOST: 200000000 CTL0: 0x00800f00 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  1.71 EMMC  2.71 SD retry 1 oc 0  2.96 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  2.07 OCR c0ff8080 [0]CID: 00150100414a5444345206d6b34b5a8a  2.27 SD HOST: 200000000 CTL0: 0x00800f04 BUS: 25000000 Hz actual: 25000000 HZ div: 8 (4) status: 0x1fff0000 delay: 4  2.37 SD HOST: 200000000 CTL0: 0x00800f04 BUS: 50000000 Hz actual: 50000000 HZ div: 4 (2) status: 0x1fff0000 delay: 2  2.46 MBR: 0x00000001, 6914081 type: 0xee  2.49 MBR: 0x00000000,       0 type: 0x00  2.52 MBR: 0x00000000,       0 type: 0x00  2.56 MBR: 0x00000000,       0 type: 0x00  2.60 Trying partition: 0  2.63 GPT 50d5248d8b967144856eabc13f8c9dd4 000000001 000698021 num-partitions 128 entry-size 128 pentry 2 first 0  2.73 GPT partition: 0 ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 000002000..000024f2f  2.80 Matched GUID bootable-part-idx 0 want partition 0  2.85 type: 16 lba: 8192 'mkfs.fat' '  V       ^ ' clusters 35709 (4)  2.91 rsc 4 fat-sectors 140 root dir cluster 1 sectors 32 entries 512  2.98 FAT16 clusters 35709  2.02 [sdcard] autoboot.txt not found  2.03 Select partition rsts 0 C(boot_partition) 0 EEPROM config 0 result 1  2.10 Trying partition: 1  2.13 GPT 50d5248d8b967144856eabc13f8c9dd4 000000001 000698021 num-partitions 128 entry-size 128 pentry 2 first 0  2.23 GPT partition: 0 ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 000002000..000024f2f  2.30 Matched GUID bootable-part-idx 0 want partition 0  2.35 type: 16 lba: 8192 'mkfs.fat' '  V       ^ ' clusters 35709 (4)  2.41 rsc 4 fat-sectors 140 root dir cluster 1 sectors 32 entries 512  2.48 FAT16 clusters 35709  2.54 Read config.txt bytes     2233 hnd 0x2c18  2.56 [sdcard] pieeprom.upd not found  2.59 [sdcard] recover4.elf not found  2.62 [sdcard] recovery.elf not found  2.84 Read start4.elf bytes  2249280 hnd 0x3313  2.86 Read fixup4.dat bytes     5399 hnd 0x2c1e  2.90 0x00a03141 0x00000000 0x00001fff  2.94 MEM GPU: 76 ARM: 948 TOTAL: 1024  2.62 Firmware: 102f1e848393c2112206fadffaaf86db04e98326 Aug 26 2022 14:03:16  2.94 Starting start4.elf @ 0xfec00200 partition 1  2.96 PCI0 reset  2.08 +MESS:00:00:02.606978:0: arasan: arasan_emmc_openMESS:00:00:02.972535:0: gpioman: gpioman_get_pin_num: attempting to get pin number for SDCARD_CONTROL_POWER before we're readyMESS:00:00:03.080817:0: gpioman: gpioman_get_pin_num: attempting to get pin number for SDCARD_CONTROL_POWER before we're readyMESS:00:00:03.170605:0: gpioman: gpioman_get_pin_num: attempting to get pin number for SDCARD_CONTROL_POWER before we're readyMESS:00:00:03.199422:0: HDMI0:EDID error reading EDID block 0 attempt 0MESS:00:00:03.203925:0: HDMI0:EDID giving up on reading EDID block 0MESS:00:00:03.220686:0: HDMI1:EDID error reading EDID block 0 attempt 0MESS:00:00:03.225193:0: HDMI1:EDID giving up on reading EDID block 0MESS:00:00:03.230409:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:03.338258:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:03.424934:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedgpSS:00:00:03.430217:0: gpioman: gpioman_get_pin_num: pin SMELSSA:SH00_0:_E00NA:0BL3E .4no3t 5de17fi5n:0ed: : ionmaend  gpioman_get_pin_num: pin FLASH_0_ENABLE not definedMESS:00:00:03.445536:0: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not definedMESS:00:00:03.453277:0: gpioman: gpioman_get_pin_num: pin FLASH_0_ENABLE not definedMESS:00:00:03.460727:0: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not definedMESS:00:00:03.540936:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:03.627596:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:03.632867:0: gpioman: gpioman_get_pin_num: pin DISPLAY_SDA not definedMESS:00:00:03.639954:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:04.136736:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:04.142375:0: *** Restart loggingMESS:00:00:04.145086:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.253003:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.339663:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.349859:0: hdmi: HDMI0:EDID error reading EDID block 0 attempt 0MESS:00:00:04.354884:0: hdmi: HDMI0:EDID giving up on reading EDID block 0MESS:00:00:04.365506:0: hdmi: HDMI0:EDID error reading EDID block 0 attempt 0MESS:00:00:04.370535:0: hdmi: HDMI0:EDID giving up on reading EDID block 0MESS:00:00:04.376133:0: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state insteadMESS:00:00:04.389924:0: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0MESS:00:00:04.394953:0: hdmi: HDMI1:EDID giving up on reading EDID block 0MESS:00:00:04.405575:0: hdmi: HDMI1:EDID error reading EDID block 0 attempt 0MESS:00:00:04.410599:0: hdmi: HDMI1:EDID giving up on reading EDID block 0MESS:00:00:04.416197:0: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state insteadMESS:00:00:04.424961:0: HDMI0: hdmi_pixel_encoding: 300000000MESS:00:00:04.430429:0: HDMI1: hdmi_pixel_encoding: 300000000MESS:00:00:04.436252:0: gpioman: gpioman_get_pin_num: pin CAMERA_0_I2C_PORT not definedMESS:00:00:04.447893:0: dtb_file 'bcm2711-rpi-cm4.dtb'MESS:00:00:04.449989:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.557908:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.644551:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.649710:0: dtb_file 'bcm2711-rpi-4-b.dtb'MESS:00:00:04.654634:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.762558:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.849220:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.854379:0: dtb_file 'bcm2711-rpi-cm4-io.dtb'MESS:00:00:04.859564:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:04.967488:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.054137:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.059287:0: Failed to load Device Tree file '?'MESS:00:00:05.064653:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.172573:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.259240:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.264397:0: Failed to open command line file 'cmdline.txt'MESS:00:00:05.270876:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.378637:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.465300:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.470522:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.578446:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.665097:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.670318:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.778243:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.864906:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.870127:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:05.978052:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.064696:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.069917:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.177842:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.264505:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.269726:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.377651:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.464313:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.469534:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.577459:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.664122:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.669343:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.777268:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.863929:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.869149:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:06.977075:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:07.063718:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:07.068939:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:07.176864:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:07.263527:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:07.268751:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:07.376673:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:07.463316:0: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not definedMESS:00:00:07.468480:0: No compatible kernel foundMESS:00:00:07.473002:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:12.280226:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:17.084623:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:21.889028:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:26.693428:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:31.497833:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:36.302231:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:41.106636:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:45.911036:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:50.715441:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:00:55.519838:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:01:00.324243:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not definedMESS:00:01:05.128643:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
Is there any options I missed to enable gpt support ?

Thank you for your advices

Statistics: Posted by turcantn — Wed Jun 18, 2025 2:46 pm



Viewing all articles
Browse latest Browse all 15309

Latest Images

Trending Articles



Latest Images