mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* RE: bareboxenv-target and spi nor flash crc problem
@ 2013-10-11 15:02 Vanhauwaert Wouter
  0 siblings, 0 replies; 3+ messages in thread
From: Vanhauwaert Wouter @ 2013-10-11 15:02 UTC (permalink / raw)
  To: barebox

> -----Original Message-----
> From: Vanhauwaert Wouter
> Sent: vrijdag 11 oktober 2013 14:58
> To: barebox@lists.infradead.org
> Subject: bareboxenv-target and spi nor flash crc problem
> 
> 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 My barebox is latest v2013.10.0 and my kernel is 2.6.35.3
> (freescale git maintain version) As a sidenote, I also still have problems with
> nand flash written with barebox, which is corrupt in linux and vica versa...

I think I figured it out. I need to erase the spi nor flash first. I assumed the bareboxenv-target application did that for me...
Am I correct?

Grtz,
Wouter

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bareboxenv-target and spi nor flash crc problem
  2013-10-11 12:57 Vanhauwaert Wouter
@ 2013-10-11 14:22 ` Jan Lübbe
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Lübbe @ 2013-10-11 14:22 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bareboxenv-target and spi nor flash crc problem
@ 2013-10-11 12:57 Vanhauwaert Wouter
  2013-10-11 14:22 ` Jan Lübbe
  0 siblings, 1 reply; 3+ messages in thread
From: Vanhauwaert Wouter @ 2013-10-11 12:57 UTC (permalink / raw)
  To: barebox

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
My barebox is latest v2013.10.0 and my kernel is 2.6.35.3 (freescale git maintain version)
As a sidenote, I also still have problems with nand flash written with barebox, which is corrupt in linux and vica versa...

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-11 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-11 15:02 bareboxenv-target and spi nor flash crc problem Vanhauwaert Wouter
  -- strict thread matches above, loose matches on Subject: below --
2013-10-11 12:57 Vanhauwaert Wouter
2013-10-11 14:22 ` Jan Lübbe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox