Skip to contentSkip to conversation

JFFS2 strange behaveour

DISCUSSION Gerrit Van de Velde 2 participants 3 messages Mar 1, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Gerrit Van de Velde

I get following strange errors during startup:
JFFS: Failed to mount device 1f:02.

Nothing strange there. There's no JFFS file system; JFFS fails to mount. Why did you even build it into your kernel?

JFFS2 works though:

Quoted 2 lines
rootfs                   13312      3920      9392  29% /
/dev/mtdblock2           13312      3920      9392  29% /

That's normal behaviour for recent kernels, whatever the rootfs actually is.

Signature · 1 line
dwmw2
#2 lore raw
Quoted 3 lines

Nothing strange there. There's no JFFS file system; JFFS fails to mount. Why did you even build it into your kernel?

ok !

i rebuilt the kernel with only jffs2 and not both versions in it all is ok now, thx for the quick response ;)

Kind regards,
Gerrit Van de Velde