I'm working on an embedded system with 64MB of Flash on it. I currently have the kernel, u-boot, and the device tree stored at the end of Flash and am trying to build a rootfs image to put at the beginning of Flash.
I am using JFFS2 and without any padding my image size is 5MB. I am trying to allocate extra space, and since I have plenty, I would like to pad it up to 32MB.
The image was originally built by ltib and so I copied the command that ltib was doing and made my own script to do it. The command I am executing is the following:
mkfs.jffs2 -n -p -D $DEVICETABLE -U -b -e 256 -d $ROOTFS -o /tftpboot/rootfs.jffs2
According to the man page for mkfs.jffs2:
Options that take SIZE arguments can be specified as either decimal (e.g., 65536), octal (0200000), or hexidecimal (0x1000).
Pad output to SIZE bytes with 0xFF. If SIZE is not specified, the output is padded to the end of the final erase block.
I have tried everything I can think of to pad this to 32MB. I have done "-p 28311552", "-p 0x1B00000", etc. But not only does it not pad to 32MB. The file size never goes above the original 5MB.