[PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE
Michael Nazzareno Trimarchi
michael at amarulasolutions.com
Thu Apr 21 16:34:12 CEST 2022
Hi Fabio
On Thu, Apr 21, 2022 at 4:17 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> Hi Marek,
>
> On Wed, Apr 20, 2022 at 7:15 PM Marek Vasut <marex at denx.de> wrote:
>
> > Did you actually hit the USB_BOOT case or did you fall into the default:
> > case ?
>
> It does hit the USB_BOOT case.
>
> I also tested forcing to return ENVL_UNKNOWN:
>
> --- a/arch/arm/mach-imx/imx8m/soc.c
> +++ b/arch/arm/mach-imx/imx8m/soc.c
> @@ -1531,6 +1531,7 @@ void do_error(struct pt_regs *pt_regs)
> enum env_location env_get_location(enum env_operation op, int prio)
> {
> enum boot_device dev = get_boot_device();
> + return ENVL_UNKNOWN;
>
> if (prio)
> return ENVL_UNKNOWN;
>
> but still, the boot does not complete.
You need only add USB_ case in MMC and NAND
#ifdef CONFIG_ENV_IS_IN_NAND
/* add */
case USB_BOOT:
case NAND_BOOT:
env_loc = ENVL_NAND;
break;
#endif
#ifdef CONFIG_ENV_IS_IN_MMC
/* add */
case USB_BOOT:
case SD1_BOOT:
case SD2_BOOT:
case SD3_BOOT:
case MMC1_BOOT:
case MMC2_BOOT:
case MMC3_BOOT:
env_loc = ENVL_MMC;
break;
#endif
Michael
--
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael at amarulasolutions.com
__________________________________
Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info at amarulasolutions.com
www.amarulasolutions.com
More information about the U-Boot
mailing list