From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.230] helo=mgw-mx03.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1Jvr9k-0007SH-CK for linux-mtd@lists.infradead.org; Tue, 13 May 2008 09:50:48 +0000 Subject: Re: ubifs image file confusion! From: Artem Bityutskiy To: Nancy In-Reply-To: References: <1210243730.3645.66.camel@sauron> Content-Type: text/plain; charset=utf-8 Date: Tue, 13 May 2008 12:48:45 +0300 Message-Id: <1210672125.5708.9.camel@sauron> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Cc: linux-mtd Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2008-05-10 at 15:31 +0800, Nancy wrote: > I think UBIFS will reserved some logic block number for interal use. > To keep a simple logic to build tool like ubiupdatevol > ubifs.img(generated by mkfs.ubifs) should contains those reserved > unused LEBs and fill them with data 0xFF. > In our situation: > After Nand flash is burned, product test begin. During those > test, all volumes are READONLY. Then final check goes to Volume > content CRC check. I need a > volume read tool to read the whole volume content and generate CRC. > Then have a comparition with the original volume image CRC. This tool > is quite similar to ubidumpvol. dd if=3D/dev/mtd5 of=3Dfile or dd if=3D/dev/ubi0_0 of=3Dfile > VFAT give me a hint, the file system reserved space are all > 0x00. Like you allocate a space: reserved=3Dmalloc( 3LEBsize ); Though > you do not use it now, but you can init it memset(reserved, 0x00, > 3LEBsize); And if like that, the file system reserved space will > become mapped. > Would you mind do this? Sorry, I still do not understand what is this all about. I do not understand the problem. --=20 Best regards, Artem Bityutskiy (=D0=91=D0=B8=D1=82=D1=8E=D1=86=D0=BA=D0=B8=D0=B9 =D0=90= =D1=80=D1=82=D1=91=D0=BC)