[hack] help U-Boot find the correct PCIe inbound offset for NVMe on Raspberry Pi 5
Torsten Duwe
duwe at lst.de
Wed Mar 4 23:25:48 CET 2026
On Wed, 4 Mar 2026 20:24:35 +0000
Peter Robinson <pbrobinson at gmail.com> wrote:
> On Wed, 4 Mar 2026 at 19:43, Pedro Falcato <pfalcato at suse.de> wrote:
> >
> > Hi Torsten,
> >
> > On Mon, Mar 02, 2026 at 04:42:56PM +0100, Torsten Duwe wrote:
> > > On Mon, 2 Mar 2026 13:59:40 +0100
> > > Torsten Duwe <duwe at lst.de> wrote:
> > >
> > > > This proposed patch uses the already existent dev_phys_to_bus(),
> > > > which can dig up the correct offset from associated DT nodes and
> > > > subtract it.
> > >
> > > Just to make it clear, that patch is a necessary but not a sufficient
> > > condition to boot the RPi5 from NVMe. The PCIe bus node above
> > > the NVMe is generated dynamically has no DT node with dma-ranges and so
> > > dev_phys_to_bus() still returns zero. In order to test NVMe on the
> > > RPi5 you can either:
> > >
> >
> > Say I wanted to test NVMe booting on the pi5 (which I actually do).
> > I would need:
> > 1) this patch
> > 2) one of the two BUS_ADDR() related diffs
> > 3) the fixes posted in https://lore.kernel.org/u-boot/20251105163553.15F2A227AAC@verein.lst.de/
>
> I believe that series has been replaced with:
> https://lore.kernel.org/u-boot/20260227152046.42DE068B05@verein.lst.de/T/#t
Yes. Or on patchwork: https://patchwork.ozlabs.org/project/uboot/list/?series=493779
> > 4) anything else?
>
> Enable NVME support in the defconfig
NVME commands and NVME_PCI. CONFIG_NVME_PCI requires CONFIG_NVME.
Torsten
More information about the U-Boot
mailing list