U-Boot 2023.10 does not boot from uSD on RPi4
Ivan Ivanov
ivan.ivanov at suse.com
Thu Oct 19 16:28:56 CEST 2023
On Thu, 2023-10-19 at 08:00 -0600, Simon Glass wrote:
> > >
> > > [2] https://patchwork.ozlabs.org/project/uboot/patch/20230923205017.1754340-1-sjg@chromium.org/
> > >
> > > > >
> > > > > [1] https://lists.denx.de/pipermail/u-boot/2023-October/533158.html
> > > > >
> > > > > > 'git bisect' points to:
> > > > > > **********
> > > > > > commit c771e5b8c2a186fb072b6c6f571d4a3cc86efba9
> > > > > > Author: Simon Glass <sjg at chromium.org>
> > > > > > Date: Thu Jul 27 15:54:28 2023 -0600
> > > > > >
> > > > > > arm: rpi: Switch to standard boot
> > > > > >
> > > > > > Drop use of the distro scripts and use standard boot instead.
> > > > > >
> > > > > > We don't need to specify the mmc devices individually, since they are
> > > > > > used in order from 0 to 2, and standard boot uses that order anyway.
> > > > > >
> > > > > > Signed-off-by: Simon Glass <sjg at chromium.org>
> > > > > > **********
> > > > > >
> > > > > > The following patch fixes the boot from uSD on RPi4 (not tested on RPi3 nor RPi
> > > > > Zero 2 W):
> > > > > > **********
> > > > > > diff --git a/board/raspberrypi/rpi/rpi.env
> > > > > > b/board/raspberrypi/rpi/rpi.env index 30228285ed..02210b97b5 100644
> > > > > > --- a/board/raspberrypi/rpi/rpi.env
> > > > > > +++ b/board/raspberrypi/rpi/rpi.env
> > > > > > @@ -74,4 +74,4 @@ pxefile_addr_r=0x02500000
> > > > > > fdt_addr_r=0x02600000
> > > > > > ramdisk_addr_r=0x02700000
> > > > > >
> > > > > > -boot_targets=mmc usb pxe dhcp
> > > > > > +boot_targets=mmc0 mmc1 mmc2 usb pxe dhcp
> > > > > > **********
> > > > > >
> > > > > > So, the comment from Simon " We don't need to specify the mmc devices
> > > > > individually, since they are used in order from 0 to 2, and standard boot uses that
> > > > > order anyway" seems wrong for the RPi4 case.
> > > > > >
> >
> > I am afraid we still have a boot issue. This time device can not boot from USB.
> > Device boot order was changed to USB first then uSD. uSD card is removed.
> >
> > Please see [1] attachment #870321 for boot log details.
> >
> > I have not invested time to debug this, still.
>
> Thanks for the info. Is this using 'boot_targets=mmc usb pxe dhcp'?
>
Yes. "boot_targets=mmc usb pxe dhcp". Full environment added to the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1216036
More information about the U-Boot
mailing list