From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from slsb306.piensasolutions.com ([217.76.150.251]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Se3WQ-0001zq-24 for barebox@lists.infradead.org; Mon, 11 Jun 2012 12:15:03 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-02.piensasolutions.com (Postfix) with ESMTP id A4CE9402EA for ; Mon, 11 Jun 2012 14:05:21 +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 67FFC402C0 for ; Mon, 11 Jun 2012 14:05:21 +0200 (CEST) Received: by eaaf11 with SMTP id f11so2136181eaa.36 for ; Mon, 11 Jun 2012 05:05:20 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20120611115719.GO30400@pengutronix.de> From: Benoit RAT Date: Mon, 11 Jun 2012 14:05:00 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============9041554633552928648==" 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 --===============9041554633552928648== Content-Type: multipart/alternative; boundary=bcaec517a720fb0b5704c2312936 --bcaec517a720fb0b5704c2312936 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable @alexander: wrs-02:0B:AD:C0:FF:EE# saveenv saving environment Skipping bad block at 0x00000000 Skipping bad block at 0x00020000 Skipping bad block at 0x00040000 Skipping bad block at 0x00060000 Skipping bad block at 0x00080000 Skipping bad block at 0x000a0000 Skipping bad block at 0x000c0000 then I reboot read: No error running /env/bin/init... not found -- *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:59 PM, Benoit RAT wrote: > 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 wro= te: > >> 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 >> and >> > loadenv but It does not work: >> > >> > First I have used a big env0 partition to be sure bad blocks don't >> bother >> > 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= | >> > > --bcaec517a720fb0b5704c2312936 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable @alexander:=A0

wrs-02:0B:AD:C0:FF:EE# saveenv=A0
saving environment
Skipping bad block at 0x00000000
=
Skipping bad block at 0x00020000
Skipping bad block at 0x000= 40000
Skipping bad block at 0x00060000
Skipping bad block at 0x000= 80000
Skipping bad block at 0x000a0000
Skipping bad blo= ck at 0x000c0000

then I reboot

read: No error =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 =A0 =A0 =A0 =A0= =A0 =A0
running /env/bin/init... =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 =A0
not found =A0 =A0 =A0 =A0 =A0 =A0 =A0 =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:59 PM, Benoit = RAT <benoit@sevensols.com> wrote:
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

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 wrote:
> 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-5555 |


--bcaec517a720fb0b5704c2312936-- --===============9041554633552928648== 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 --===============9041554633552928648==--