
Hi Fabio
On Thu, Apr 21, 2022 at 4:17 PM Fabio Estevam festevam@gmail.com wrote:
Hi Marek,
On Wed, Apr 20, 2022 at 7:15 PM Marek Vasut marex@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