From: Boaz Ben-David <boaz.bd@wellsense-tech.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: bareboxenv usage
Date: Tue, 13 Sep 2011 14:25:28 +0300 [thread overview]
Message-ID: <4E6F3DA8.40904@wellsense-tech.com> (raw)
In-Reply-To: <4E6F270A.2040902@wellsense-tech.com>
On 09/13/11 12:48, Boaz Ben-David wrote:
> On 09/13/11 12:14, Marc Kleine-Budde wrote:
>> On 09/13/2011 10:59 AM, Boaz Ben-David wrote:
>>> All I am asking is: do I need to use /dev/mtdblock or /dev/mtd when
>>> loading and saving envs
>> neither nor - loadenv& saveenv are not bad block aware. In barebox you
>> use the .bb devices, which are bad block are, under linux use nandwrite
>> + nanddump to write or read data from the nand into a file. Then use
>> loadenv/saveenv.
>>
>> cheers, Marc
>>
> Hi,
>
>
> Thanks for the reply.
>
> First question, please tell me if these sequences are correct:
>
> In Linux:
>
> - Read:
>
> 1.nanddump from the mtd device to a file.
>
> 2.bareboxenv -l the file dumped.
>
> -Write:
>
> 1.bareboxenv -s from source directory to a file
>
> 2.nandwrite that file to the mtd device.
>
>
> Second question is: what would be the same sequences under barebox?
>
>
> Thanks,
>
>
> Boaz.
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
There's something I don't get.
If loadenv/saveenv are not bad-block aware, why are they used in barebox
by default?
When the system boots envfs_load is used to load the environment from
/dev/env0 or whatever.
If /dev/env0 is not bad-block aware device (like the bb devices) this
means this could fail because of
a bad block in the env partition. Am I right?
Thanks,
Boaz.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2011-09-13 11:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-12 13:54 bareboxenv usage Boaz Ben-David
2011-09-13 8:59 ` Boaz Ben-David
2011-09-13 9:14 ` Marc Kleine-Budde
2011-09-13 9:48 ` Boaz Ben-David
2011-09-13 11:25 ` Boaz Ben-David [this message]
2011-09-13 12:00 ` Marc Kleine-Budde
2011-09-13 12:01 ` Marc Kleine-Budde
2011-09-13 12:07 ` Boaz Ben-David
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=4E6F3DA8.40904@wellsense-tech.com \
--to=boaz.bd@wellsense-tech.com \
--cc=barebox@lists.infradead.org \
--cc=mkl@pengutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.