From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from slsa667.piensasolutions.com ([217.76.150.252]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Se3Hp-00013H-Md for barebox@lists.infradead.org; Mon, 11 Jun 2012 11:59:58 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-02.piensasolutions.com (Postfix) with ESMTP id 91D252A0AC9 for ; Mon, 11 Jun 2012 13:59:55 +0200 (CEST) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by smtp-02.piensasolutions.com (Postfix) with ESMTPSA id 5ADBE2A0AF1 for ; Mon, 11 Jun 2012 13:59:55 +0200 (CEST) Received: by eekd17 with SMTP id d17so2148429eek.36 for ; Mon, 11 Jun 2012 04:59:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120611115719.GO30400@pengutronix.de> References: <20120611115719.GO30400@pengutronix.de> From: Benoit RAT Date: Mon, 11 Jun 2012 13:59:34 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============4987932949797573535==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Problem with loadenv from /dev/env0 To: Sascha Hauer Cc: barebox@lists.infradead.org --===============4987932949797573535== Content-Type: multipart/alternative; boundary=90e6ba61528c942c9904c23116cc --90e6ba61528c942c9904c23116cc Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Sorry I forgot, It is based on pm9g45 board -- *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 Mon, Jun 11, 2012 at 1:57 PM, Sascha Hauer wrote= : > On Mon, Jun 11, 2012 at 01:53:13PM +0200, Benoit RAT wrote: > > Hello, > > > > I want to recover some parameters from my NAND flash by using saveenv a= nd > > loadenv but It does not work: > > > > First I have used a big env0 partition to be sure bad blocks don't both= er > > me. > > > > devfs_add_partition("nand0", 0x00000, 0xF0000, PARTITION_FIXED, > "env_raw"); > > > dev_add_bb_dev("env_raw", "env0"); > > > > > > Then I try to edit,save & load /env/config > > > > wrs-02:0B:AD:C0:FF:EE# edit /env/config > > > > Then I change the eth0.addr > > > > eth0.ethaddr=3D72:0B:AD:C0:FF:EE > > > PS1=3D"wrs-$eth0.ethaddr# " > > > > > > Ctrl+D > > > > wrs-02:0B:AD:C0:FF:EE# . /env/config > > wrs-72:0B:AD:C0:FF:EE# saveenv > > saving environment > > wrs-72:0B:AD:C0:FF:EE# loadenv > > loading environment from /dev/env0 > > err -74 > > err -74 > > wrong crc on env > > What hardware was this again? > > Sascha > > -- > Pengutronix e.K. | = | > Industrial Linux Solutions | http://www.pengutronix.de/ = | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 = | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 = | > --90e6ba61528c942c9904c23116cc Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Sorry I forgot,=A0

It is based on pm9g45 board=A0

--
=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 Mon, Jun 11, 2012 at 1:57 PM, Sascha = Hauer <s.hauer@pengutronix.de> wrote:
On Mon, Jun 11, 2012 at 01:53:13PM +0200, Benoit RAT wrot= e:
> Hello,
>
> I want to recover some parameters from my NAND flash by using saveenv = and
> loadenv but It does not work:
>
> First I have used a big env0 partition to be sure bad blocks don't= bother
> me.
>
> =A0devfs_add_partition("nand0", 0x00000, 0xF0000, PARTITION_= FIXED, "env_raw");
> > dev_add_bb_dev("env_raw", "env0");
>
>
> Then I try to edit,save & load /env/config
>
> wrs-02:0B:AD:C0:FF:EE# edit /env/config
>
> Then I change the eth0.addr
>
> eth0.ethaddr=3D72:0B:AD:C0:FF:EE
> > PS1=3D"wrs-$eth0.ethaddr# "
>
>
> Ctrl+D
>
> wrs-02:0B:AD:C0:FF:EE# . /env/config
> wrs-72:0B:AD:C0:FF:EE# saveenv
> saving environment
> wrs-72:0B:AD:C0:FF:EE# loadenv
> loading environment from /dev/env0
> err -74
> err -74
> wrong crc on env

What hardware was this again?

Sascha

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | http://www.pengutronix.de/ = =A0|
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 =A0 =A0|
Amtsgericht Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 | Fax: =A0 +49-5121-206917-555= 5 |

--90e6ba61528c942c9904c23116cc-- --===============4987932949797573535== 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 --===============4987932949797573535==--