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

Justin DeFields justin.d at tekmagic.net
Tue Sep 23 13:32:25 PDT 2014


Otavio,

Thanks for the input!  Do you know what I would need to do in the board
file after reading the fuse setup (or is there an example in another board
which already does this)?

Justin D.

On Tue, Sep 23, 2014 at 4:08 PM, Otavio Salvador <otavio at ossystems.com.br>
wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20140923/a2e68931/attachment.html>


More information about the meta-freescale mailing list