Hi Peng, > If boot from USB, this means env_loc will be override here. > > NXP boards always use RAM env when booting from USB. In that case, this seems like an ARCH configuration and the ARCH should imply the necessary kconfig. Currently, every i.MX9 board needs to enable CONFIG_ENV_IS_NOWHERE or the boot hangs when booting from USB.
> If your boards has different settings, I think we may need to > introduce board_env_get_location. Or add some device tree > properties to specify the env settings. > > Thanks, > Peng Best Regards, João Paulo Gonçalves