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.69 #1 (Red Hat Linux)) id 1LpLvs-0002lR-O4 for linux-mtd@lists.infradead.org; Thu, 02 Apr 2009 12:22:16 +0000 Subject: Re: Create, Flash and Mount UBIFS Images From: Artem Bityutskiy To: Manuel Sahm In-Reply-To: <49D4BF5A.187F.00BC.1@feig.de> References: <49D4BF5A.187F.00BC.1@feig.de> Content-Type: text/plain; charset="UTF-8" Date: Thu, 02 Apr 2009 15:21:56 +0300 Message-Id: <1238674916.20906.93.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2009-04-02 at 13:36 +0200, Manuel Sahm wrote: > Hello, > > Could anybody explain me how to build an ubi.img that I could flash > inside my system ? > > NAND Flash: Micron 256 MByte > Physical Eraseblock Size = 131072 > Logical Eraseblock Size = 129024 > Min I/O Size = 2048 > SubPage = 512 > > The Partition /dev/mtd6 is 32MByte. > > > I did the following steps: > On my host I created the file through: > > mkfs.ubifs -d /exports/ -m 2048 -e 129024 -o ubifs.img -x "none" -c > 2047 Are you sure -c 2047 is a sane value for a 32MiB volume? -- Best regards, Artem Bityutskiy (Битюцкий Артём)