From: Sascha Hauer <s.hauer@pengutronix.de>
To: Benoit RAT <benoit@sevensols.com>
Cc: barebox@lists.infradead.org
Subject: Re: Problem with loadenv from /dev/env0
Date: Mon, 11 Jun 2012 13:57:19 +0200 [thread overview]
Message-ID: <20120611115719.GO30400@pengutronix.de> (raw)
In-Reply-To: <CAHvDM_feUegqzvhH9oN19ooDvMkcKNrrx6sKP54txFBMD0oJqg@mail.gmail.com>
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=72:0B:AD:C0:FF:EE
> > PS1="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 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-06-11 11:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-11 11:53 Benoit RAT
2012-06-11 11:57 ` Sascha Hauer [this message]
2012-06-11 11:59 ` Benoit RAT
2012-06-11 12:05 ` Benoit RAT
2012-06-11 11:58 ` Alexander Shiyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120611115719.GO30400@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=benoit@sevensols.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox