[U-Boot] MTD devices emulation driver (gluebi) support

ManuelCurcio at Eaton.com ManuelCurcio at Eaton.com
Tue Apr 11 12:46:14 UTC 2017


I tried to use ubifs. However, I just need of a space storage for three files with a total size of 500 bytes. 
From theses three files, the UBIFS generated a 1.8 MegaBytes file. The ubifs file system mounted took 7 Megabytes just for 500 bytes !
JFFS2 over ubi requires "only" 4 LEB  minimum, so for my 500 bytes, jffs2 requires 4 * 128 kB == 512 kBytes for my nand.



-----------------------------
Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, Immeuble Le Viséo - Bâtiment A Innovallée, 38330, Montbonnot-St.-Martin, France ~ Lieu d'enregistrement au registre du commerce: Grenoble ~ Numéro d'enregistrement: 509 653 176 ~ Capital social souscrit et liberé:€ 16215441 ~ Numéro de TVA: FR47509653176
਍
-----------------------------

-----Original Message-----
From: Heiko Schocher [mailto:hs at denx.de] 
Sent: mardi 11 avril 2017 13:43
To: Curcio, Manuel
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] MTD devices emulation driver (gluebi) support

Hello Manuel,

Am 11.04.2017 um 09:20 schrieb ManuelCurcio at Eaton.com:
> Hello
>
> Thanks for the answer.
> Hi
>
> Thanks for the answer.
> I would like ... but I think I'm going to a raw data storage in a ubi volume instead of a little jffs2 file system :(  (my need it is just to store some bytes of data) ...

Ok ... or you try to use UBIFS ?

bye,
Heiko
>
> Manuel
>
>
>
>
> -----------------------------
> Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, 
> Immeuble Le Viséo - Bâtiment A Innovallée, 38330, 
> Montbonnot-St.-Martin, France ~ Lieu d'enregistrement au registre du 
> commerce: Grenoble ~ Numéro d'enregistrement: 509 653 176 ~ Capital 
> social souscrit et liberé:€ 16215441 ~ Numéro de TVA: FR47509653176 ਍
> -----------------------------
>
> ________________________________________
> De : Heiko Schocher [hs at denx.de]
> Envoyé : vendredi 7 avril 2017 13:02
> À : Curcio, Manuel
> Cc : u-boot at lists.denx.de
> Objet : Re: [U-Boot] MTD devices emulation driver (gluebi) support
>
> Hello Manuel,
>
> Am 06.04.2017 um 10:36 schrieb ManuelCurcio at Eaton.com:
>> Hi,
>>
>> I want to read a jffs2 file system over ubi from uboot.
>>   From ubi.h, I found the CONFIG_MTD_UBI_GLUEBI define to allow this functionality (I think) :
>>
>> /* gluebi.c */
>> #ifdef CONFIG_MTD_UBI_GLUEBI
>> ....
>>
>> However, when I set this define, after compilation, I have errors links about gluebi functions :
>>
>> uboot/common/cmd_ubi.c:293: undefined reference to `ubi_gluebi_updated'
>>
>> And in fact, after search, I didn't find gluebi.c file in uboot.
>>
>> I use the U-Boot 2015.01 version. When I look the last release, I didn't find gluebi.c  too.
>>
>> Some one can tell me more about that ? How is it possible to read jffs2 (or squashfs) from uboot ?
>
> We use the UBI/UBIFS sources from linux, so this part cames from 
> linux. And as fas as I know, nobody has tried to use 
> CONFIG_MTD_UBI_GLUEBI in u-boot yet, so if you want to do this, you 
> have to dig into this part deeper. Patches are welcome ;-)
>
> bye,
> Heiko
>>
>> thanks !
>>
>> Manuel
>>
>>
>>
>> ________________________________
>> Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, Immeuble Le Viséo - Bâtiment A Innovallée, 38330, Montbonnot-St.-Martin, France ~ Lieu d'enregistrement au registre du commerce: Grenoble ~ Numéro d'enregistrement: 509 653 176 ~ Capital social souscrit et liberé:EUR 16215441 ~ Numéro de TVA: FR47509653176?
>>
>> ________________________________
>>
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> https://lists.denx.de/listinfo/u-boot
>>
>
> --
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list