[PATCH] arm: rpi: set boot_targets with correct macro expansion

Simon Glass sjg at chromium.org
Sat Sep 23 20:42:36 CEST 2023


Hi Date,

On Sat, 23 Sept 2023 at 12:34, Date Huang <tjjh89017 at hotmail.com> wrote:
>
> rpi uboot will only try to load mmcnr at 7e300000.bootdev
> which is wlan interface if boot_targets only has `mmc`
> Change it to `mmc0 mmc1 mmc2 usb0 pxe dhcp`
>
> Signed-off-by: Date Huang <tjjh89017 at hotmail.com>
> ---
>  board/raspberrypi/rpi/rpi.env | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env
> index 30228285ed..08a3648838 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 usb0 pxe dhcp

Yes, this is a 'feature' of standard boot, which I hope to fix.

The order you specify should be the same as the default one, so does
it work for you if you just remove the boot_targets variable?

Regards,
Simon


More information about the U-Boot mailing list