Skip to contentSkip to conversation

mkfs.jffs2

DISCUSSION Ashok M Padmanaban 2 participants 2 messages Aug 22, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,
The mkfs.jffs2 has some options, in which -e option specifies the
erase block size, which by default is 64KiB.
While making a jffs2 image of a directory (which has some files) of size 3848192 Bytes.

./mkfs.jffs2 -d directory -o jffs2_img -e 128KiB

With default option for erase block size ( 64KiB), the jffs2 image size
was : 1983612 Bytes. ( 1.89 MB)
With -e 128KiB
, the jffs2 image size was : 7687900 Bytes (7.33 MB)
With -e 256KiB
, the jffs2 image size was : 4289164 Bytes (4.09 MB)

Why is that the jffs2 image size is varying with the erase block size.?
If i have an erase size of 256KiB(on flash), is it necessary that i
should build a jffs2 image with the -e 256KiB option.

regards
ashok

begin:vcard
n:.m.padmanabhan;ashok
tel;work:5281461/5281229 ext 3096
x-mozilla-html:FALSE
org:sasken communication technologies ltd;internt access solutions version:2.1
email;internet:[email protected]
title:software engineer
adr;quoted-printable:;;3008,12 th B cross,=0D=0Aindranagar ;banglore;;;india
x-mozilla-cpt:;0
fn:ashok .m.padmanabhan
end:vcard

#1 lore raw
Quoted 15 lines · Ashok M Padmanaban

Hi,
The mkfs.jffs2 has some options, in which -e option specifies the
erase block size, which by default is 64KiB.
While making a jffs2 image of a directory (which has some files) of size 3848192 Bytes.

./mkfs.jffs2 -d directory -o jffs2_img -e 128KiB

With default option for erase block size ( 64KiB), the jffs2 image size
was : 1983612 Bytes. ( 1.89 MB)
With -e 128KiB
, the jffs2 image size was : 7687900 Bytes (7.33 MB)
With -e 256KiB
, the jffs2 image size was : 4289164 Bytes (4.09 MB)

Quoted 3 lines

Why is that the jffs2 image size is varying with the erase block size.?
If i have an erase size of 256KiB(on flash), is it necessary that i
should build a jffs2 image with the -e 256KiB option.

try -e 0x20000 or -e 0x10000