[meta-freescale] Single u-boot.imx binary which can boot from Sata or MMC fuse settings?

Fabio Estevam festevam at gmail.com
Tue Sep 23 13:17:42 PDT 2014


On Tue, Sep 23, 2014 at 11:59 AM, Justin DeFields <justin.d at tekmagic.net> wrote:
> All,
>
> I'm trying to create a single uboot binary (2014.04) which can be booted
> from sata or sdcard fuse settings.
>
> So far, it has been easy to boot linux from either method (by adding the mmc
> environment items to the sata config), except that the uboot environment is
> hardcoded to Sata (FSL_ENV_IS_IN_SATA).  The problem is that the image can
> start from either fuse setting, but the hardcoded environment device (SATA)
> must be present to fully boot.
>
> Does anyone know if there is a way to dynamically set where the uboot
> environment is saved/located based on the fuse settings (or possibly fall
> back to a default location if there is a failure)?  Looking at the
> environment source code, it looks to currently be designed to only accept a
> single hard-coded option.

Yes, this can be done, but you would need to add such support as the
current U-boot does not handle it.


More information about the meta-freescale mailing list