ROCK 3B: NVMe not detected with 6.1 kernel (rk2410), works with 5.10 — regression

ROCK 3B: NVMe not detected with 6.1 kernel (rk2410), works with 5.10 — regression

Hi,

On two ROCK 3B boards (v1.51 and [rev]), an NVMe SSD in the M.2 M-key slot is never detected with the current Radxa Debian 12 image, but works with the older 5.10 image on the same hardware.

Hardware: Transcend TS128GMTE110S (2280, PCIe 3.0 x4), works in a PC. Radxa 25W PoE+ HAT.

Fails: Debian 12 image (RSDK build 2026-04-08), kernels 6.1.84-13-rk2410-nocsf and 6.1.84-17-rk2410-nocsf, U-Boot 2017.09-73:

rk-pcie 3c0800000.pcie: PCIe Link Fail, LTSSM is 0x3, hw_retries=1
rk-pcie 3c0800000.pcie: failed to initialize host

Works, same board, same SSD, same U-Boot (from eMMC), booting the b18 image (rock-3b_debian_bullseye_xfce_b18) from microSD with kernel 5.10.160-18-rk356x:

snps pcie3phy FW update! size 8192
rk-pcie 3c0800000.pcie: PCIe Link up, LTSSM is 0x230011
nvme nvme0: allocated 64 MiB host memory buffer.

The link comes up at 8.0 GT/s x2.

Device tree: I compared the full live device trees (dtc -I fs /proc/device-tree). The pcie@fe280000, phy@fe8c0000, pcie30x2m1-pins and PCIe regulators are identical, except:

  • vpcie3v3-supply: pcie30_3v3 (GPIO0_D4) in 5.10, vcc3v3_sys2 in 6.1;

  • the config reg space, due to the driver version.

Tried on 6.1, all without effect:

  • overlay restoring vpcie3v3-supply = <&pcie30_3v3> on pcie3x2;

  • overlay setting PERST# (GPIO2_D6) to GPIO function as in the mainline dts;

  • max-link-speed = <2> with num-lanes = <1>;

  • cold boots;

  • USB-C power instead of PoE.

So it looks like a regression in the 6.1 PCIe or PCIe3 PHY driver for RK3568. Is this known? Is there a fix or a kernel version where NVMe works on ROCK 3B?

Thanks!

Update — solved: the cause is the eMMC U-Boot, not the kernel.

The b18 microSD boots its own U-Boot (latest-2023.07.02-6), not the U-Boot on the eMMC. Booting the eMMC system (kernel 6.1.84-17-rk2410-nocsf) from that 2023.07 U-Boot, the NVMe is detected. Every kernel fails when started by the Radxa eMMC U-Boot 2017.09-73 (u-boot-rk2601).

Fix: write the 2023.07 U-Boot from the b18 image (/usr/lib/u-boot/rock-3b/: idbloader.img at sector 64, u-boot.itb at sector 16384 of a 16 MB image) to the empty SPI flash (flashcp to /dev/mtd0). The SoC reads SPI first, the eMMC is untouched, and NVMe now works with the stock 6.1 kernel.

Note: the current u-boot-latest package (2025.10) no longer includes the ROCK 3B.

Glad someone brought up ROCK 3B: NVMe not detected with 6.1 kernel (rk2410), works with 5.10. I spent a couple of evenings comparing different approaches to rock and nvme before settling on a solid routine for rock.

For anyone interested, this is the one I have been using: changelog-docs.pages.dev/r/forum_radxa_com