From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from slsb306.piensasolutions.com ([217.76.150.251]) by casper.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SXsEm-0005Wb-Gp for barebox@lists.infradead.org; Fri, 25 May 2012 10:59:18 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-02.piensasolutions.com (Postfix) with ESMTP id 84B7D4008F for ; Fri, 25 May 2012 12:59:10 +0200 (CEST) Received: from mail-ey0-f177.google.com (mail-ey0-f177.google.com [209.85.215.177]) by smtp-02.piensasolutions.com (Postfix) with ESMTPSA id 46C7D403CF for ; Fri, 25 May 2012 12:59:10 +0200 (CEST) Received: by eaaf11 with SMTP id f11so238331eaa.36 for ; Fri, 25 May 2012 03:59:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120525125154.1c039173@eb-e6520> References: <20120525125154.1c039173@eb-e6520> From: Benoit RAT Date: Fri, 25 May 2012 12:58:48 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0245221167866025052==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Check if valid kernel and/or FS To: =?ISO-8859-1?Q?Eric_B=E9nard?= Cc: barebox@lists.infradead.org --===============0245221167866025052== Content-Type: multipart/alternative; boundary=90e6ba615486fe004f04c0da411a --90e6ba615486fe004f04c0da411a Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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. -- *Benoit RAT LAMY* Engineer (Sw) \ Ingeniero (Sw) fix. *(+34) 958 285 024* cel. *(+34) 617 989 123* e-mail: benoit@sevensols.com *www.sevensols.com / **www.sevensecurity.es* _________________________________ *C/ Baza, parcela 19 Nave 3 \ Pol=EDgono Ind. Juncaril \* *18210 - PELIGROS - GRANADA =96SPAIN* On Fri, May 25, 2012 at 12:51 PM, Eric B=E9nard wrote: > Hi Benoit, > > Le Fri, 25 May 2012 12:08:09 +0200, > Benoit RAT a =E9crit : > > > 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 tftpboo= t > 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=3Dbarebox.git;a=3Dblob;f=3Darch/arm/boards/a= t91sam9m10g45ek/env/bin/menu_boot;h=3Dd0b1396de984e3b00902cfb32598dcf123afc= 6bf;hb=3Drefs/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 > --90e6ba615486fe004f04c0da411a Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thanks,

I want to know, if i am using the default enviro= nment (the that I am using from compilation)
barebox>=A0no val= id environment found on /dev/env0. Using default environment

Or I am using the one that there is in /dev/env0

<= /div>
It is in the case someone break something in the NAND flash env, = I want to save again the default one.

--
=A0

Benoit RAT LAMY

Engineer (Sw) \ Ingeniero (= Sw)

fix.=A0(+34) 958 285 024<= /span>

c= el.=A0(+34) 617 989 123

e-mail:=A0benoit@sevensol= s.com

www.se= vensols.com=A0/=A0www.sevensecurity.es

______________________________= ___

C/ Baza, parcela 19 Nave 3= =A0 \ Pol=EDgono Ind. Juncaril \

18210 - PELIGROS - GRANADA =96SPAIN




On Fri, May 25, 2012 at 12:51 PM, Eric B= =E9nard <eric@eukrea.com> wrote:
Hi Benoit,

Le Fri, 25 May 2012 12:08:09 +0200,
Benoit RAT <benoit@sevensols.com= > a =E9crit :

> I was wondering if there was a good way to check if I have a correct k= ernel
> and/or filesystem in my partition before loading them.
> If it is not the case then I will check out for valid images in tftpbo= ot 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=3Dbarebox.git;a=3Dblob;f=3Darch/arm/boards/at91sam9m10g45ek/env/bin/= menu_boot;h=3Dd0b1396de984e3b00902cfb32598dcf123afc6bf;hb=3Drefs/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

--90e6ba615486fe004f04c0da411a-- --===============0245221167866025052== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============0245221167866025052==--