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

Otavio Salvador otavio at ossystems.com.br
Tue Sep 23 13:08:20 PDT 2014


On Tue, Sep 23, 2014 at 11:59 AM, Justin DeFields <justin.d at tekmagic.net> wrote:
> 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.
>
> Or am I limited to having to build different u-boot binaries for Sata and
> Sdcard?

It can be done in the board file checking the values from the fuses.
This is not standard way of doing it though. The standard is to have
one binary for each method.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list