<div dir="ltr">Otavio,<div><br></div><div>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)? Â Â </div><div><br></div><div>Justin D.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 23, 2014 at 4:08 PM, Otavio Salvador <span dir="ltr"><<a href="mailto:otavio@ossystems.com.br" target="_blank">otavio@ossystems.com.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Sep 23, 2014 at 11:59 AM, Justin DeFields <<a href="mailto:justin.d@tekmagic.net">justin.d@tekmagic.net</a>> wrote:<br>
> I'm trying to create a single uboot binary (2014.04) which can be booted<br>
> from sata or sdcard fuse settings.<br>
><br>
> So far, it has been easy to boot linux from either method (by adding the mmc<br>
> environment items to the sata config), except that the uboot environment is<br>
> hardcoded to Sata (FSL_ENV_IS_IN_SATA).  The problem is that the image can<br>
> start from either fuse setting, but the hardcoded environment device (SATA)<br>
> must be present to fully boot.<br>
><br>
> Does anyone know if there is a way to dynamically set where the uboot<br>
> environment is saved/located based on the fuse settings (or possibly fall<br>
> back to a default location if there is a failure)?  Looking at the<br>
> environment source code, it looks to currently be designed to only accept a<br>
> single hard-coded option.<br>
><br>
> Or am I limited to having to build different u-boot binaries for Sata and<br>
> Sdcard?<br>
<br>
</div></div>It can be done in the board file checking the values from the fuses.<br>
This is not standard way of doing it though. The standard is to have<br>
one binary for each method.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Otavio Salvador  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â O.S. Systems<br>
<a href="http://www.ossystems.com.br" target="_blank">http://www.ossystems.com.br</a>  Â  Â  Â  <a href="http://code.ossystems.com.br" target="_blank">http://code.ossystems.com.br</a><br>
Mobile: <a href="tel:%2B55%20%2853%29%209981-7854" value="+555399817854">+55 (53) 9981-7854</a>  Â  Â  Â  Â  Â  Mobile: <a href="tel:%2B1%20%28347%29%20903-9750" value="+13479039750">+1 (347) 903-9750</a><br>
</font></span></blockquote></div><br></div>