[Buildroot] [PATCH 1/3 v3] uboot: Add support for U-Boot SPL

Dechesne, Nicolas n-dechesne at ti.com
Sun Mar 18 21:57:52 UTC 2012


On Sun, Mar 18, 2012 at 3:16 PM, Arnout Vandecappelle <arnout at mind.be>wrote:

>  I didn't realize before, but it's only on OMAP that the SPL is called
> MLO.  Its normal name is u-boot-spl.bin.
>
>  I'm not sure how this could be solved.  The simplest way would be
> something like (untested, as usual):
>
> ifeq ($(BR2_TARGET_UBOOT_SPL),y)
> define UBOOT_INSTALL_IMAGES_SPL
>        if [ -e $(@D)/MLO ]; then \
>                cp -dpf $(@D)/MLO $(BINARIES_DIR)/; \
>        else \
>                cp -dpf $(@D)/u-boot-spl.bin  $(BINARIES_DIR)/; \
>        fi
> endef
> endif
>
>
>  The alternative would be to make a separate config entry for MLO and
> other SPLs.  Which does make some kind of sense, I guess.
>

argh.. thx for pointing this out!

i just tried to implement the 2nd option (adding a new CONFIG var), and it
seems to work fine. I am going to send an updated series.

The reason why I think that a variable is better is that the solution is
more scalable, in case others platforms do the same thing... also because i
know that on OMAP5 for SATA boot the 2st bootloader will be called HLO, not
MLO ;-) so this solution is scalable at least for the next gen OMAP5 boards
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120318/05281dd2/attachment-0002.html>


More information about the buildroot mailing list