Thanks,<div><br></div><div>I want to know, if i am using the default environment (the that I am using from compilation)</div><div>barebox> no valid environment found on /dev/env0. Using default environment</div><div><br>

</div><div>Or I am using the one that there is in /dev/env0</div><div><br></div><div>It is in the case someone break something in the NAND flash env, I want to save again the default one.</div><div><br><span style="font-family:'Times New Roman';font-size:medium">--</span><br style="font-family:'Times New Roman';font-size:medium">

<div style="font-family:'Times New Roman';font-size:medium"><a href="http://www.sevensols.com/" target="_blank"><img src="http://www.sevensols.com/logos/logo-118x90.png"></a> <a href="http://www.sevensecurity.es" style="margin-left:10px" target="_blank"><img src="http://www.sevensols.com/logos/logo-7Sec-216x90.png"></a></div>

<br style="font-family:'Times New Roman';font-size:medium"><div style="font-family:'Times New Roman';font-size:medium"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;line-height:15px"><b><span lang="EN-US" style="font-family:'Caecilia LT Std Light',serif;color:rgb(16,138,208)">Benoit RAT LAMY</span></b></span></div>

<div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><span lang="EN-US" style="font-family:'Caecilia LT Std Light',serif;color:rgb(16,138,208)">Engineer (Sw) \ Ingeniero (Sw)</span></p>

<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><span lang="EN-US" style="font-family:'Caecilia LT Std Light',serif;color:rgb(16,138,208)">fix. <b>(+34) 958 285 024</b></span></p>

<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;font-size:13px;border-collapse:collapse"><span style="color:rgb(16,138,208);font-family:'Caecilia LT Std Light',serif">cel. </span><b style="color:rgb(16,138,208);font-family:'Caecilia LT Std Light',serif">(+34) 617 989 123</b></p>

<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><span lang="EN-US" style="font-family:'Caecilia LT Std Light',serif;color:rgb(16,138,208)">e-mail: <a href="mailto:benoit@sevensols.com" target="_blank"><font color="#339999">benoit@sevensols.com</font></a></span></p>

<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><span lang="ES-TRAD" style="font-family:'Caecilia LT Std Light',serif"><span style="text-decoration:none"><font color="#339999"><a href="http://www.sevensols.com/" target="_blank">www.sevensols.com</a> / </font></span></span></b><span lang="ES-TRAD" style="font-family:'Caecilia LT Std Light',serif;color:rgb(16,138,208)"></span><b><span lang="ES-TRAD" style="font-family:'Caecilia LT Std Light',serif"><font color="#339999"><a href="http://www.sevensecurity.es" target="_blank">www.sevensecurity.es</a></font></span></b></p>

<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><span lang="ES-TRAD" style="font-family:'Caecilia LT Std Light',serif;color:rgb(16,138,208)">_________________________________</span></p>

<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><span lang="ES-TRAD" style="font-family:'Caecilia LT Std Light',serif;color:rgb(16,138,208)">C/ Baza, parcela 19 Nave 3  \ Polígono Ind. Juncaril \</span></b></p>

<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><span style="font-family:'Caecilia LT Std Light',serif;color:rgb(16,138,208)">18210 - PELIGROS - GRANADA –SPAIN</span></b></p>

</div><br>
<br><br><div class="gmail_quote">On Fri, May 25, 2012 at 12:51 PM, Eric Bénard <span dir="ltr"><<a href="mailto:eric@eukrea.com" target="_blank">eric@eukrea.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Benoit,<br>
<br>
Le Fri, 25 May 2012 12:08:09 +0200,<br>
Benoit RAT <<a href="mailto:benoit@sevensols.com">benoit@sevensols.com</a>> a écrit :<br>
<div class="im"><br>
> I was wondering if there was a good way to check if I have a correct kernel<br>
> and/or filesystem in my partition before loading them.<br>
> If it is not the case then I will check out for valid images in tftpboot or<br>
> prompt the barebox shell.<br>
><br>
</div>first try the boot command, if the kernel is not correct (ie : bad<br>
checksum), the boot command returns and you can then launch a tftpboot<br>
or give a prompt.<br>
<br>
Check for example :<br>
<a href="http://git.pengutronix.de/?p=barebox.git;a=blob;f=arch/arm/boards/at91sam9m10g45ek/env/bin/menu_boot;h=d0b1396de984e3b00902cfb32598dcf123afc6bf;hb=refs/heads/next" target="_blank">http://git.pengutronix.de/?p=barebox.git;a=blob;f=arch/arm/boards/at91sam9m10g45ek/env/bin/menu_boot;h=d0b1396de984e3b00902cfb32598dcf123afc6bf;hb=refs/heads/next</a><br>


<div class="im"><br>
> And another question is how can i know that I am using the barebox<br>
> environment from nand flash instead of the one from a scripts?<br>
><br>
</div>what do you mean here ?<br>
<span class="HOEnZb"><font color="#888888"><br>
Eric<br>
</font></span></blockquote></div><br></div>