U-Boot 2023.10 does not boot from uSD on RPi4

Ivan Ivanov ivan.ivanov at suse.com
Thu Oct 19 10:58:55 CEST 2023


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.

Regards,
Ivan

[1] https://bugzilla.suse.com/show_bug.cgi?id=1216036



More information about the U-Boot mailing list