Hi: Override the env_fat_get_dev_part function in the board file, you can load env from sdcard or emmc without modifying any configuration of u-boot, it is very useful for building wic firmware by yocto.
it has been done under env/ext4.c At 2022-01-27 23:05:57, "Simon Glass" <[email protected]> wrote: >Hi, > >On Thu, 30 Dec 2021 at 07:50, hyyxohk <[email protected]> wrote: >> >> For platform which can boot on different device, this allows >> to override interface, device and partition from board code. >> >> Signed-off-by: hyyxohk <[email protected]> >> --- >> env/fat.c | 30 +++++++++++++++++------------- >> include/env_internal.h | 20 ++++++++++++++++++++ >> 2 files changed, 37 insertions(+), 13 deletions(-) >> > >What is this feature used for? > >Regards, >Simon >[..]

