# Pironman 5 + WD\_BLACK SN770: booting Raspberry Pi OS from NVMe with U-Boot and PCIe Gen 1

**URL:** <https://forum.sunfounder.com/t/pironman-5-wd-black-sn770-booting-raspberry-pi-os-from-nvme-with-u-boot-and-pcie-gen-1/5148>\
**Category:** General\
**Created:** [December 5, 2026, 8:40pm UTC](https://forum.sunfounder.com/t/pironman-5-wd-black-sn770-booting-raspberry-pi-os-from-nvme-with-u-boot-and-pcie-gen-1/5148 "2026-12-05T20:40:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![valentin](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@valentin](https://forum.sunfounder.com/u/valentin)\
**Post date:** [December 5, 2026, 8:40pm UTC](https://forum.sunfounder.com/t/pironman-5-wd-black-sn770-booting-raspberry-pi-os-from-nvme-with-u-boot-and-pcie-gen-1/5148/1 "2026-12-05T20:40:24Z")

</div>

I got Raspberry Pi OS to boot with its root filesystem on the internal  
WD\_BLACK SN770 1 TB in my Pironman 5, using the original PCIe ribbon cable.

The microSD starts U-Boot. U-Boot then loads the Linux kernel and initramfs  
from the NVMe, and Linux mounts the NVMe as its root filesystem. The microSD  
stays inserted for this setup.

### Hardware and software

- Raspberry Pi 5 + SunFounder Pironman 5
- WD\_BLACK SN770 1 TB, PCI ID 15b7:5017
- U-Boot main commit: 3257d2b37be49c8570b31c0f56adfef15671f76b
- Raspberry Pi OS 64-bit, kernel: 6.18.65+rpt-rpi-2712

### What worked

1. Build U-Boot from the commit above with `rpi_arm64_defconfig`.
2. Put the U-Boot binary on the microSD boot partition. In its `config.txt`,  
point `kernel=` to that binary (eg at the end of this texte my .bin call u-boot-main-pi5.bin) and set `dtparam=pciex1` and  
`dtparam=pciex1_gen=1`.
3. Use the `CONFIG_PREBOOT` below to scan the NVMe, load `kernel_2712.img`  
and `initramfs_2712` from its FAT partition, and start Linux with `booti`.

Verified after boot:

- `/` → `/dev/nvme0n1p2`
- `/boot/firmware` → `/dev/nvme0n1p1`

On my setup, PCIe Gen 2 was unstable. An earlier U-Boot v2026.10-based  
build could see the SSD on PCIe, but the NVMe scan timed out on the  
administrative Set Features command.

### Tested CONFIG\_PREBOOT

CONFIG\_PREBOOT=“pci enum; nvme scan; if part uuid nvme 0:2 nvme\_root && fatload nvme 0:1 ${kernel\_addr\_r} kernel\_2712.img; then setenv kernel\_comp\_addr\_r 0x18000000; setenv kernel\_comp\_size ${filesize}; if fatload nvme 0:1 ${ramdisk\_addr\_r} initramfs\_2712; then setenv initrd\_size ${filesize}; setenv bootargs root=PARTUUID=${nvme\_root} rootfstype=ext4 rootwait rw console=tty1; booti ${kernel\_addr\_r} ${ramdisk\_addr\_r}:${initrd\_size} ${fdt\_addr}; fi; fi”

### compilation U-BOOT sequence

cd ~/u-boot-main-pi5  
make rpi\_arm64\_defconfig

sed -i -E ‘/^(CONFIG\_(BOOTDELAY|USE\_PREBOOT|PREBOOT|HUSH\_PARSER|FAT\_WRITE)=|# CONFIG\_(USE\_PREBOOT|HUSH\_PARSER|FAT\_WRITE) is not set$)/d’ .config

cat \>\> .config \<\<‘EOF’  
CONFIG\_BOOTDELAY=-1  
CONFIG\_USE\_PREBOOT=y  
CONFIG\_HUSH\_PARSER=y  
CONFIG\_FAT\_WRITE=y  
CONFIG\_PREBOOT=“pci enum; nvme scan; if part uuid nvme 0:2 nvme\_root && fatload nvme 0:1 ${kernel\_addr\_r} kernel\_2712.img; then setenv kernel\_comp\_addr\_r 0x18000000; setenv kernel\_comp\_size ${filesize}; if fatload nvme 0:1 ${ramdisk\_addr\_r} initramfs\_2712; then setenv initrd\_size ${filesize}; setenv bootargs root=PARTUUID=${nvme\_root} rootfstype=ext4 rootwait rw console=tty1; booti ${kernel\_addr\_r} ${ramdisk\_addr\_r}:${initrd\_size} ${fdt\_addr}; fi; fi”  
EOF

make olddefconfig &&  
grep -x ‘CONFIG\_NVME\_PCI=y’ .config &&  
make -j2 &&  
cp u-boot.bin u-boot-main-pi5.bin

_use the u-boot-main-pi5.bin as kernel parameter_
