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

Compute Module • PCIe switch causing inconsistent boot behaviour

$
0
0
Hi all,

I have a custom baseboard for the CM4 that utilizes a PI7C9X2G304EV PCIe switch to expand its M.2 storage capabilities to two drives for redundancy (running in RAID1).

When the device boots, things seem to be going great, but every so often (around 1/10 boots), it gets stuck and never boots. The activity LED remains on and with BOOT_UART enabled, it seems that the bootloader is waiting on the PCIE to reset (see boot output below).

Code:

  0.52 RPi: BOOTSYS release VERSION:69471177 DATE: 2025/05/08 TIME: 16:21:35  0.53 BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1746717695 serial 3d23d20e boardrev c03141 stc 530786  0.54 PM_RSTS 00001000  0.54 POWER_OFF_ON_HALT: 0 WAIT_FOR_POWER_BUTTON 0 power-on-reset 1  0.55 part 00000000 reset_info 00000000  0.55 uSD voltage 3.3V  0.58 Initialising SDRAM rank 2 total-size: 32 Gbit 3200 (0x15 0x00)  0.58 DDR 3200 1 0 32 152 BL:3  2.19 OTP boardrev c03141 bootrom 48b0 48b0  2.19 Customer key hash 0000000000000000000000000000000000000000000000000000000000000000  2.20 VC-JTAG unlocked  2.48 RPi: BOOTLOADER release VERSION:69471177 DATE: 2025/05/08 TIME: 16:21:35  2.48 BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1746717695 serial 3d23d20e boardrev c03141 stc 2484477  2.19 Boot mode: SD (01) order f2  2.53 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  2.54 SD HOST: 200000000 CTL0: 0x00800f00 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  2.65 EMMC  2.75 SD retry 1 oc 0  2.77 SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276  2.79 OCR c0ff8080 [0]CID: 00150100424a5444345203cac44cf9ca  2.80 SD HOST: 200000000 CTL0: 0x00800f04 BUS: 25000000 Hz actual: 25000000 HZ div: 8 (4) status: 0x1fff0000 delay: 4  2.82 SD HOST: 200000000 CTL0: 0x00800f04 BUS: 50000000 Hz actual: 50000000 HZ div: 4 (2) status: 0x1fff0000 delay: 2  2.82 MBR: 0x00002000,  524288 type: 0x0c  2.83 MBR: 0x00082000,60538880 type: 0x83  2.83 MBR: 0x00000000,       0 type: 0x00  2.83 MBR: 0x00000000,       0 type: 0x00  2.42 Trying partition: 0  2.45 type: 32 lba: 8192 'mkfs.fat' ' bootfs     ' clusters 130554 (4)  2.85 rsc 32 fat-sectors 1020 root dir cluster 2 sectors 0 entries 0  2.85 FAT32 clusters 130554  2.86 [sdcard] autoboot.txt not found  2.86 Select partition rsts 0 C(boot_partition) 0 EEPROM config 0 result 1  2.71 Trying partition: 1  2.73 type: 32 lba: 8192 'mkfs.fat' ' bootfs     ' clusters 130554 (4)  2.87 rsc 32 fat-sectors 1020 root dir cluster 2 sectors 0 entries 0  2.88 FAT32 clusters 130554  2.90 Read config.txt bytes     1175 hnd 0x3d48  2.89 [sdcard] pieeprom.upd not found  2.89 [sdcard] recover4.elf not found  2.90 [sdcard] recovery.elf not found  3.24 Read start4.elf bytes  2251392 hnd 0x167f  3.28 Read fixup4.dat bytes     5399 hnd 0x108  3.30 0x00c03141 0x00000000 0x00001fff  3.33 MEM GPU: 76 ARM: 948 TOTAL: 1024  3.99 Firmware: 82f3750a65fadae9a38077e3c2e217ad158c8d54 Mar 17 2023 10:50:39  3.32 Starting start4.elf @ 0xfec00200 partition 1  3.13 PCI0 reset  3.14 +
Note that triggering a reset, either via a power cycle, or by pulling CM_RUN_PG low tends to solve the problem, except in the unlucky cases where the issue happens twice in a row.

Any ideas what might be causing this?

Statistics: Posted by adriaan-mernok — Mon May 19, 2025 6:31 pm



Viewing all articles
Browse latest Browse all 8621

Trending Articles