Hi Felix,
you are OT here - your question can be better explained on the MTD ML.
The topic is related to ubifs, not swupdate. Anyway:
On 09/05/2016 16:41, Felix Böhme wrote:
> Hi,
>
> I would like to split my rootfs (ubifs) in 3 parts:
> - a big root part to mount in /
> - a small software part to mount in /firmware (< 1MB)
> - a small config part to mount in /config ( < 30 KB)
This is quite not efficient. Do you want to set up a UBI volume about 30
KB ? The overhead for UBI is much more, and you have to taken into
account. IMHO it does not make sense to have such a small UBIFS.
>
> I tried to create an ubi volume image for swupdate with
> |
I do not understand the connection with swupdate...
> mkfs.ubifs -e 0x1f000-c 2048-m 0x800-x lzo -o config.ubifs
Most of this options are default value, and you do not need to specify.
LZO is the default algorithm is not differently specified. -e must
correspond to the size of a LEB, and you specify a maximum size of
2048 LEB.
> |
> and got an image which is > 1,8 MB for a folder which is smaller then 30KB.
Please read documentation about UBI and UBIFS. Not only, to put staff
into a UBIFS you need a UBI volue and this has always some spare LEBs
(2% ot the size of the *whole* NAND is the default value in kernel) to
back up data when some sectors become bad.
>
> Can someone explain whrere the problem
I do not think there is a problem, check how UBI / UBIFS work.
> is or can suggest me a smarter
> solution if I´m wrong?
No idea what you really want. If this is a NAND device, you need
unfortunately to reserve a bigger value. If your storage is not NAND,
you are doing something wrong - you do not need a filesystem at all for
30Kb of data.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone:
+49-8142-66989-53 Fax:
+49-8142-66989-80 Email:
sba...@denx.de
=====================================================================