[U-Boot] [PATCH] imx_common: spl: Fix SPL boot from SD card
Fabio Estevam
festevam at gmail.com
Fri Dec 2 20:05:12 CET 2016
On Fri, Dec 2, 2016 at 3:16 PM, Marcin Niestroj
<m.niestroj at grinn-global.com> wrote:
>> If you took the assumption that in "BOOT_DEVICE_MMC1 = Boot from SDHC1
>> port" in 54e4fcfa3c749a78 ("ARM: mx6: add MMC2 boot device detection
>> support in SPL") I suggest we need to revert it.
>>
>
> Indeed it was my assumption. I agree it should be reverted then.
Thanks for confirming.
Stefano, would you like to take Breno's original patch with the
revert? Or would you like me to resend it with an improved commit log
explaining the reason for the breakage?
> So to support booting from two SD/MMC devices one should create
> board_boot_order() function? That way BOOT_CFG2[3:4] can be read there
> to figure out which MMC1 or MMC2 should be configured as the first boot
> device.
If you want to determine the SD/MMC port dynamically it seems like a solution.
Or if you always know the SD/MMC port you will boot from then you can
simply register the associated SDHC port first.
More information about the U-Boot
mailing list