bareboxenv usage

Marc Kleine-Budde mkl at pengutronix.de
Tue Sep 13 08:01:08 EDT 2011


On 09/13/2011 11:48 AM, Boaz Ben-David wrote:
> On 09/13/11 12:14, Marc Kleine-Budde wrote:
>> On 09/13/2011 10:59 AM, Boaz Ben-David wrote:
>>> All I am asking is: do I need to use /dev/mtdblock or /dev/mtd when
>>> loading and saving envs
>> neither nor - loadenv&  saveenv are not bad block aware. In barebox you
>> use the .bb devices, which are bad block are, under linux use nandwrite
>> + nanddump to write or read data from the nand into a file. Then use
>> loadenv/saveenv.
>>
>> cheers, Marc
>>
> 
> Hi,
> 
> 
> Thanks for the reply.
> 
> First question, please tell me if these sequences are correct:

basically yes....but

> In Linux:
> 
> - Read:
> 
> 1.nanddump from the mtd device to a file.

read the nanddump help text, you need to skip bad blocks

> 2.bareboxenv -l the file dumped.
> 
> -Write:
> 
> 1.bareboxenv -s from source directory to a file
> 
> 2.nandwrite that file to the mtd device.

use padding

cheers, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20110913/a343f3c1/attachment-0001.sig>


More information about the barebox mailing list