Skip to contentSkip to conversation

mkfs.jffs2 not wroking properly

DISCUSSION Skumar 2 participants 2 messages Dec 5, 2002 Memory technology devices (MTD)

lore
Share & tools
lore

Skumar

author
#0 lore raw

Hi ,

[root@embedded_linux del]# ls -la
total 44

drwxrwxr-x    2 skumar   skumar       4096 Dec  5 11:48 .
drwxrwxrwx   25 skumar   skumar       4096 Dec  5 10:45 ..
-rwxr-xr-x    1 root     root        13830 Nov 14 17:56 erase
-rwxr-xr-x    1 root     root        14751 Nov 14 17:56 eraseall
-rw-rw-r--    1 skumar   skumar         13 Nov 14 12:51 test.c

[root@embedded_linux del]# cd ..
[root@embedded_linux skumar]# ./mkfs.jffs2 -r del -o tmp/jffs2.image [root@embedded_linux skumar]# /usr/src/redhat/SOURCES/mtd/util/jffs2reader tmp/jffs2.image

-rw-rw-r-- 1    503      503             13 Nov 14 12:51 /test.c
-rwxr-xr-x 1    0        0             4096 Nov 14 17:56 /eraseall

[root@embedded_linux skumar]#

as seen though the del directory contains 3 files the jffs2.image contains only 2 file & the size of one of the files(eraseall)
is 0

Regards
sharath

#1 lore raw

JFFS2 questions

Hi all,
I am facing with several questions with JFFS2. Could someone give me some responses .....

what is the meaning for Empty Block and Marking dirty, why do I have Empty Block ????
jffs2_scan_empty(): Empty block at 0x0000fffc ends at 0x00010000 (with
0x1985e002)! Marking dirty

The file system I created is very small size (5 MB) and the /dev/mtdblock2 size is around 30 MB

It seems that JFFS2 scans the entire memory space and erase unmarked block
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0100000c:
0xffff instead

Who is supoosed to write the Magic bitmask ???
Why Jffs2 scans the entire memory space ? It is not supposed to end at the last address that we can find in the file system that I created with mkfs.jffs2 ????

Write clean marker to block at 0x016c0000 failed: -5 Newly-erased block contained word 0xffff0198 at offset 0x01000004

What is a clean marker ???

Thanks in advance,

Chantara Thlang
Interphase Corporation
855 Avenue Roger Salengro
92370 Chaville
Tel.: (+33) (0)1.41.15.44.32
Fax.:(+33) (0)1.41.15.12.13