U-Boot 2023.10 does not boot from uSD on RPi4

Simon Glass sjg at chromium.org
Thu Oct 19 16:00:11 CEST 2023


Hi Ivan,

On Thu, 19 Oct 2023 at 02:59, Ivan Ivanov <ivan.ivanov at suse.com> wrote:
>
>
> Hi,
>
> Sorry I can't find mail thread regarding patch itself, so using this one:
>
> On Fri, 2023-10-13 at 10:08 +0000, Guillaume Gardet wrote:
> >
> >
> >
> > Hi,
> >
> > Indeed, your patch [2] fixes my boot problem.
> >
>
> <snip>
>
> >
> >
> > [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'?

We can revert the patch, perhaps, but I'd like to understand why it is failing.

Regards,
Simon


More information about the U-Boot mailing list