Hi all.
I use LTIB to build a jffs2 filesystem for a Linux iMX31 project with 32MB of flash available.
Launching ltib leaving at the default value (DEPLOYMENT_PADDING_KB = 0) the option "Allocate extra space (Kbytes)", my original rootfs is successfully compressed in a rootfs.jffs2 file, reducing the size from about 40MB to about 15MB.
But doing that, I cannot create a new file because the filesystem does not have any free space left.
If I use the above mentioned option adding, for example, 1000KB in order to obtain a 15+1MB filesystem, I obtain a rootfs.jffs2 file of about 41MB!
In fact, reading in the ltib/bin/Ltibutils.pm file, if I set a value different from 0, the --pad=X option is added to the mkfs.jffs2 command, where X is $fs_size + DEPLOYMENT_PADDING_KB, so it creates a file of that dimension and apparently with no compression.
So, how can I add extra free space to my filesystem without losing compression?
Many thanks in advance!
M.
解決済! 解決策の投稿を見る。
The approach I use is to specify the size of the rootfs (taking in consideration the extra space needed) into Redboot:
Regards,
Fabio Estevam
The approach I use is to specify the size of the rootfs (taking in consideration the extra space needed) into Redboot:
Regards,
Fabio Estevam
Thank you for your reply!
So I can have a rootfs.jffs2 file of 15 MB, put it in a 30MB partition and have 15MB of free space?
It would be wonderful! I'll try.
Bye
M.