Check if valid kernel and/or FS
Benoit RAT
benoit at sevensols.com
Fri May 25 06:58:48 EDT 2012
Thanks,
I want to know, if i am using the default environment (the that I am using
from compilation)
barebox> no valid environment found on /dev/env0. Using default environment
Or I am using the one that there is in /dev/env0
It is in the case someone break something in the NAND flash env, I want to
save again the default one.
--
<http://www.sevensols.com/> <http://www.sevensecurity.es>
*Benoit RAT LAMY*
Engineer (Sw) \ Ingeniero (Sw)
fix. *(+34) 958 285 024*
cel. *(+34) 617 989 123*
e-mail: benoit at sevensols.com
*www.sevensols.com / **www.sevensecurity.es*
_________________________________
*C/ Baza, parcela 19 Nave 3 \ Polígono Ind. Juncaril \*
*18210 - PELIGROS - GRANADA –SPAIN*
On Fri, May 25, 2012 at 12:51 PM, Eric Bénard <eric at eukrea.com> wrote:
> Hi Benoit,
>
> Le Fri, 25 May 2012 12:08:09 +0200,
> Benoit RAT <benoit at sevensols.com> a écrit :
>
> > I was wondering if there was a good way to check if I have a correct
> kernel
> > and/or filesystem in my partition before loading them.
> > If it is not the case then I will check out for valid images in tftpboot
> or
> > prompt the barebox shell.
> >
> first try the boot command, if the kernel is not correct (ie : bad
> checksum), the boot command returns and you can then launch a tftpboot
> or give a prompt.
>
> Check for example :
>
> http://git.pengutronix.de/?p=barebox.git;a=blob;f=arch/arm/boards/at91sam9m10g45ek/env/bin/menu_boot;h=d0b1396de984e3b00902cfb32598dcf123afc6bf;hb=refs/heads/next
>
> > And another question is how can i know that I am using the barebox
> > environment from nand flash instead of the one from a scripts?
> >
> what do you mean here ?
>
> Eric
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20120525/69ee6270/attachment.html>
More information about the barebox
mailing list