mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* saveenv & erase with bad blocks present
@ 2015-02-03 16:38 Boulais, Marc-Andre
  2015-02-03 19:52 ` Uwe Kleine-König
  2015-02-03 20:11 ` Sascha Hauer
  0 siblings, 2 replies; 11+ messages in thread
From: Boulais, Marc-Andre @ 2015-02-03 16:38 UTC (permalink / raw)
  To: barebox

Hi,
I have flashed Barebox-2015.02.0 on my omap4 setup (using the Barebox update command) and I am now trying to modify the environment from the Barebox prompt. I have modified the env/config file and I would like to save my changes to NAND. 

For this task, I call the "saveenv" command and I get this result:

barebox@Phytec phyCORE-OMAP4460:/ saveenv
saving environment
saveenv: No space left on device

The "devinfo" command indicates to me that the /dev/nand0.bareboxenv partition is 128 Kb. 
Just to be sure, I erase it and get the following error:

barebox@Phytec phyCORE-OMAP4460:/ erase /dev/nand0.bareboxenv.bb
nand: nand_erase_nand: attempt to erase a bad block at page 0x00000140
erase: I/O error

So I guess I am a bit confused here. 
1) Is "saveenv" the right command to save my changes to the environment ?
2) How can I erase a NAND partition that has bad blocks ?
3) Can bad blocks be marked by software or are they all marked by the manufacturer ?

Many thanks,


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

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

end of thread, other threads:[~2015-02-10  9:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-03 16:38 saveenv & erase with bad blocks present Boulais, Marc-Andre
2015-02-03 19:52 ` Uwe Kleine-König
2015-02-03 20:11 ` Sascha Hauer
2015-02-03 20:44   ` Boulais, Marc-Andre
2015-02-05 10:16     ` Sascha Hauer
2015-02-05 19:09       ` Boulais, Marc-Andre
2015-02-05 21:23         ` Sascha Hauer
2015-02-06 17:03           ` Boulais, Marc-Andre
2015-02-09  7:18             ` Sascha Hauer
2015-02-09 13:37               ` Boulais, Marc-Andre
2015-02-10  9:20                 ` Sascha Hauer

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