From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from out3.bezeqint.net ([192.115.188.209]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1R3PcQ-00060b-49 for barebox@lists.infradead.org; Tue, 13 Sep 2011 09:49:31 +0000 Message-ID: <4E6F270A.2040902@wellsense-tech.com> Date: Tue, 13 Sep 2011 12:48:58 +0300 From: Boaz Ben-David MIME-Version: 1.0 References: <4E6E0F25.7060403@wellsense-tech.com> <4E6F1B57.7060507@wellsense-tech.com> <4E6F1F11.6070206@pengutronix.de> In-Reply-To: <4E6F1F11.6070206@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: bareboxenv usage To: Marc Kleine-Budde Cc: "barebox@lists.infradead.org" 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: In Linux: - Read: 1.nanddump from the mtd device to a file. 2.bareboxenv -l the file dumped. -Write: 1.bareboxenv -s from source directory to a file 2.nandwrite that file to the mtd device. Second question is: what would be the same sequences under barebox? Thanks, Boaz. _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox