mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Jan Lübbe" <jlu@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Re: bareboxenv-target and spi nor flash crc problem
Date: Fri, 11 Oct 2013 16:22:08 +0200	[thread overview]
Message-ID: <1381501328.11504.71.camel@coredoba.hi.pengutronix.de> (raw)
In-Reply-To: <E78BBE677EB9144B8F0A0A29674CD5338F2D4435F4@SRV-VS06.TELEVIC.COM>

On Fri, 2013-10-11 at 14:57 +0200, Vanhauwaert Wouter wrote:
> Hi, I want to use bareboxenv-target on my operating system
> My environment settings are stored on a m25p32 spi nor flash.
> I can load them perfectly by issueing command:
> bareboxenv-target -l /tmp/barebox /dev/mtd1 
> I change something and afterwards I do: bareboxenv-target -s /tmp/barebox /dev/mtd1
> No problems so far
> However
> If I reboot, I get a wrong crc on env superblock and default environment is loaded

You should use flash_erase (from mtd-utils) on the mtd partition before
writing to it.

Regards,
Jan Lübbe
-- 
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

  reply	other threads:[~2013-10-11 14:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-11 12:57 Vanhauwaert Wouter
2013-10-11 14:22 ` Jan Lübbe [this message]
2013-10-11 15:02 Vanhauwaert Wouter

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=1381501328.11504.71.camel@coredoba.hi.pengutronix.de \
    --to=jlu@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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