The current U-Boot SPL image loader infrastructure is very powerful, able to initialize and load from a variety of boot media however it is strongly geared towards loading specific types of images in a very specific way. To address the need being able to use this infrastructure to load arbitr...
intcount){...if(!CONFIG_IS_ENABLED(SILENT_CONSOLE)){if(loader)printf("Trying to boot from %s\n",spl_loader_name(loader));...if(loader&&!spl_load_image(spl_image,loader)){spl_image->boot_device=bootdev;return0;}...}