From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1R3Rfq-0007M6-23 for barebox@lists.infradead.org; Tue, 13 Sep 2011 12:01:14 +0000 Message-ID: <4E6F4604.7040501@pengutronix.de> Date: Tue, 13 Sep 2011 14:01:08 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <4E6E0F25.7060403@wellsense-tech.com> <4E6F1B57.7060507@wellsense-tech.com> <4E6F1F11.6070206@pengutronix.de> <4E6F270A.2040902@wellsense-tech.com> In-Reply-To: <4E6F270A.2040902@wellsense-tech.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1650311730==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: bareboxenv usage To: Boaz Ben-David Cc: "barebox@lists.infradead.org" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1650311730== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE7CBBD4EB3D0524228F1F060" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE7CBBD4EB3D0524228F1F060 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 yo= u >> use the .bb devices, which are bad block are, under linux use nandwrit= e >> + nanddump to write or read data from the nand into a file. Then use >> loadenv/saveenv. >> >> cheers, Marc >> >=20 > Hi, >=20 >=20 > Thanks for the reply. >=20 > First question, please tell me if these sequences are correct: basically yes....but > In Linux: >=20 > - Read: >=20 > 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. >=20 > -Write: >=20 > 1.bareboxenv -s from source directory to a file >=20 > 2.nandwrite that file to the mtd device. use padding cheers, Marc --=20 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 | --------------enigE7CBBD4EB3D0524228F1F060 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5vRgQACgkQjTAFq1RaXHNqvgCeKHlciZMG8Z+VoSWPR0ah07WS 31oAn2G5U4OsHd782FszKXDSwoP686LB =hHGC -----END PGP SIGNATURE----- --------------enigE7CBBD4EB3D0524228F1F060-- --===============1650311730== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============1650311730==--