Skip to contentSkip to conversation

mkfs issue

DISCUSSION Amit Sharma 4 participants 4 messages Jul 30, 2005 – Aug 1, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi ALL

Thanks Thomas for help,I need more support form group

Now for creating file i am using this option but i have some doubt

nkfs.jffs2 -s 2 -e 128 -o jffs2.image

Issue

1. what is the purpose of block size option -e
2. This problem based on my two host PC
if i use option -d /home/jffs2stuff i found my file size is zero on my one Host PC
but on other setup i found file size 13310 always ,what is this problem .
3. If i create file of more than 1.3MB Jffs2 response degraded during ls-la and using of benchmarking.

I am using linux 2.4 kernel .do you think i should upgrade my jffs2 for 2.4 kernel from cvs.

Thanks
AK

#1 lore raw
Quoted 1 line · Amit Sharma

1. what is the purpose of block size option -e

Obviously, the size of the eraseblock of your flash.

Quoted 4 lines

2. This problem based on my two host PC
if i use option -d /home/jffs2stuff i found my file size is zero on my one Host PC
but on other setup i found file size 13310 always ,what is this problem .

No idea ...

Quoted 2 lines

3. If i create file of more than 1.3MB Jffs2 response degraded during ls-la and using of benchmarking.

That's the property of JFFS2. Take a quick glimpse at http://www.linux-
mtd.infradead.org/tech/JFFS3design/node2.html.

Quoted 2 lines

I am using linux 2.4 kernel .do you think i should upgrade my jffs2 for 2.4 kernel from cvs.

If you want some support from the MTD folks, use 2.6 or 2.4.27+ kernels.

Glance at http://www.linux-mtd.infradead.org/source.html#kernelversions

Signature · 3 lines
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
#2 lore raw
In reply to Amit Sharma
Quoted 4 lines · Amit Sharma

3. If i create file of more than 1.3MB Jffs2 response degraded during ls-la and using of benchmarking.

I am using linux 2.4 kernel

The 2.4 kernel is ancient and slow. You should find the code in 2.6 is a _lot_ faster.

Signature · 1 line
dwmw2
#3 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

The 2.4 kernel is ancient and slow. You should find the code in 2.6 is a _lot_ faster.

Maybe the MTD code in some 2.4 kernels is slow. The kernel itself is usually faster than 2.6; even a LOT faster than 2.6. See for example
http://www.denx.de/twiki/bin/view/Know/Linux24vs26

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Commitment, n.:      Commitment can be illustrated by a breakfast
of ham and eggs. The chicken was involved, the pig was committed.