RE: bareboxenv-target and spi nor flash crc problem
> -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
Re: bareboxenv-target and spi nor flash crc problem
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- | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
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... ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox