[U-Boot] [resolved] UBIFS - Reading superblock error

DATACOM - Mallmann mallmann at datacom.ind.br
Wed Apr 8 20:03:20 CEST 2009


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
>
> <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 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



More information about the U-Boot mailing list