From mboxrd@z Thu Jan 1 00:00:00 1970 From: DATACOM - Mallmann Date: Wed, 08 Apr 2009 15:03:20 -0300 Subject: [U-Boot] [resolved] UBIFS - Reading superblock error In-Reply-To: <200904011148.49912.sr@denx.de> References: <49D24D94.4020004@datacom.ind.br> <200904011148.49912.sr@denx.de> Message-ID: <49DCE6E8.3020107@datacom.ind.br> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Stefan Roese wrote: > Hi Marcelo, > > On Tuesday 31 March 2009, DATACOM - Mallmann wrote: > >> I'm trying to use UBI and UBIFS over a nand device. I want to create a >> mtd partition in u-boot (with ubi part command), save a ubifs image >> (with mkfs.ubifs), mount and load it with ubifs commands. >> > > The easiest way to write an UBIFS image in U-Boot is to generate an UBI image > with includes the UBIFS volume. This is done after "mkfs.ubifs" using > the "ubinize" command. This creates an UBI image which can be written to > FLASH via the "normal" commands ("cp.b" for NOR, "nand write" for NAND). > > Here a link for some background: > > http://www.linux-mtd.infradead.org/faq/ubifs.html#L_mkfubifs > > > > >> By >> the way, is a volume created in u-boot able to be used in linux kernel >> in read-write mode? >> > > Sure. You can write an UBIFS image in U-Boot and use it read-only here. And > later in Linux you can mount it read-write and write to it. Next time in > U-Boot you will see the changes. > > Best regards, > Stefan > > ===================================================================== > DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de > ===================================================================== > > Hi Stefan, Thanks a lot for the tip. It works fine and pretty fast, like I expected. =D -- Marcelo MALLMANN Dias DATACOM Av.Fran?a,735-Porto Alegre,RS-90230-220 Fone 3358.1332 Fax 3358.0101 Site: www.datacom.ind.br e-mail: mallmann at datacom.ind.br