
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
<snip>
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@denx.de =====================================================================