JFFS2 strange behaveour

Gerrit Van de Velde gvd at denayer.wenk.be
Mon Mar 1 10:48:38 EST 2004


Hello,

I've made a JFFS2 image from my root filesystem to use in an embedded
platform (Motorola MPC5200). Everything works, i can mount it when burnt
into flash but when I switch from root filesystem on NFS to the image
which resides in FLASH, I get following strange errors during startup:

jffs_scan_flash(): Did not find even a single chunk of free space. This
is BAD!
jffs_scan_falsh():Free size accounting screwed
jfffs_scan_flash():free_chunk_size1 == 0xd00000, free_chunk_size2 ==
0x0, fmc->free_size == 0x0
JFFS: Failed to mount device 1f:02.
VFS: Mounted root (jffs2 filesystem).

So JFFS states: mount failed,
VFS states: mount successful...

after that i get the login prompt and only after one minute i'm able to
login (don't know why)

after logged in i can retrieve the following information:

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                   13312      3920      9392  29% /
/dev/mtdblock2           13312      3920      9392  29% /

# dmesg
<snip>Kernel command line: root=/dev/mtdblock2 rw
ip=192.168.0.3:192.168.0.150:192.168.0.1:255.255.255.0:icecube::off
init=init
<snip>

# cat /etc/fstab
none /proc proc defaults

Does anyone know why df states two mounts on the /
and why the jffs errors occur during startup ?

Kind regards,
Gerrit Van de Velde








More information about the linux-mtd mailing list