Re: git: 1dec3639fd0c - main - sysutils/u-boot: Update to 2021.07

From: Emmanuel Vadot <manu_at_bidouilliste.com>
Date: Thu, 19 Aug 2021 19:23:11 UTC
On Sun, 18 Jul 2021 15:48:55 +0200
"Herbert J. Skuhra" <herbert@gojira.at> wrote:

> On Mon, 12 Jul 2021 13:44:43 +0200, "Herbert J. Skuhra" wrote:
> 
> > This happens even with the official builds!
> > 
> > FreeBSD-13.0-STABLE-arm64-aarch64-RPI-20210701-6aee7855180-246143.img.xz
> > ==> OK (U-Boot 2021.04)
> > FreeBSD-13.0-STABLE-arm64-aarch64-RPI-20210708-f6d448caf69-246212.img.xz
> > ==> Not OK. (U-Boot 2021.07)
> > 
> > I am using U-Boot 2021.04 again because I still don't know how to boot
> > from mmc device 2 automatically.
> 
> With the below patch my RPI 3 Model B (0xa02082) boots again:
> 
> --- include/configs/rpi.h.orig  2021-07-18 15:37:55.743031000 +0200
> +++ include/configs/rpi.h       2021-07-18 15:38:51.159286000 +0200
> @@ -173,7 +173,8 @@
>  #if CONFIG_IS_ENABLED(CMD_MMC)
>         #define BOOT_TARGET_MMC(func) \
>                 func(MMC, mmc, 0) \
> -               func(MMC, mmc, 1)
> +               func(MMC, mmc, 1) \
> +               func(MMC, mmc, 2)
>  #else
> 
> 
> (sysutils/u-boot-rpi3 / U-Boot 2021.07)
> 

 Can you submit that upstream ?
 We've tried over the past years to have no local patches for u-boot.
 Also can you try removing the overlays loaded by the firmware (in
config.txt), I think that the mmc overlays might renumber the mmc
device and upstream u-boot might not be happy about this.

 Thanks,

-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@FreeBSD.org>