mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Vanhauwaert Wouter <W.Vanhauwaert@TELEVIC.com>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: bareboxenv on userspace - wrong crc on env
Date: Thu, 29 Aug 2013 20:44:22 +0200	[thread overview]
Message-ID: <20130829184422.GB30088@pengutronix.de> (raw)
In-Reply-To: <E78BBE677EB9144B8F0A0A29674CD5338ED41DC8EF@SRV-VS06.TELEVIC.COM>

On Thu, Aug 29, 2013 at 11:24:41AM +0200, Vanhauwaert Wouter wrote:
> Hello all, 
> 
> I'm having issues accessing my barebox environment from within linux....
> 
> My barebox and environment are located on a SPI NOR flash.
> This boots ok, and barebox is able to save its environment to it.
> 
> When I want to load it in userspace through:
> 
> $ bareboxenv -l /mnt /dev/mtd1
> Or 
> $ dd if=/dev/mtd1 /tmp/barebox
> Or 
> $ dd if=/dev/mdtblock1 /tmp/barebox
> 
> Result is:
> Wrong crc on env
> 
> However it's working fine in barebox itself
> 
> What can be wron?

The only idea I have is that /dev/mtd1 might not be the place where
barebox stores it's environment, maybe because of different probe order
in the kernel or different partition layout. Could you send a hexdump of
the first 256 bytes or so of /dev/mtd1?

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

  parent reply	other threads:[~2013-08-29 18:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29  9:24 Vanhauwaert Wouter
2013-08-29 10:44 ` Yi Qingliang
2013-08-29 11:35   ` Vanhauwaert Wouter
2013-08-30  2:29     ` Yi Qingliang
2013-08-29 18:44 ` Sascha Hauer [this message]
2013-10-11 14:08   ` 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=20130829184422.GB30088@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=W.Vanhauwaert@TELEVIC.com \
    --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