[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JFFS erase error





Hi!

Maybe this error is fixed, but it is still in the Etrax linux
file named: "elinux-20001027" from Axis.
It uses linux 2.0.38 and fs/jffs has versions:

 * $Id: inode.c,v 1.86 2000/08/23 00:31:24 finn
 * $Id: intrep.c,v 1.109 2000/08/02 20:11:52 finn
 * $Id: jffs_fm.c,v 1.46 2000/07/24 09:30:12 finn
 * $Id: jffs_proc.c,v 1.6 2000/08/23 00:23:31 finn 


I do this:

#cp linux.bin.gz a.gz
#ls -l
-rw-r--r--  1 root     root       209050  Jan 01 00:01 a.gz
drwxr-xr-x  1 root     root            0  Jan 03 2001  bin
drwxr-xr-x  1 root     root            0  Dec 27 2000  etc
drwxr-xr-x  1 root     root            0  Jan 03 2001  jonas
-rw-r--r--  1 root     root       209050  Mar 07 2001  linux.bin.gz
-rw-r--r--  1 root     root       525128  Mar 07 2001  romimage.gz
# rm a.gz

I get this from "rm a.gz":

jffs_erasable_size: flash_erasable_size() returned something less than
zero (-1).
jffs_erasable_size: offset = 0x00000060

repeated about 20-30 times and them:

flash: write operation past end of device (address: 0x80200000, size:
60)
JFFS: jffs_write_dummy_node: flash_safe_write failed!
jffs_erasable_size: flash_erasable_size() returned something less than
zero (-1).
jffs_erasable_size: offset = 0x00000060

And then the prompt returns.

When I do an "ls" the file "a.gz" is gone. But
strangely when I do a "cp linux.bin.gz b.gz" is
says: "No space left on device", which is false.
I use about 800kb in a flash partition of 1.9 mb.
And eve if the "a.gz" would be left on the partition
I would still have about 900kb left and I only need
about 200kb.

See:

At startup it says:
Checking flash partitions:
  /dev/flash0 at 0x80000000, size 0x10000
 Found valid partition table at 0x8001000A-0x80010056.
  /dev/flash1 at 0x80010000, size 0x10000
  /dev/flash2 at 0x80020000, size 0x1e0000

Which is correct. /dev/flash2 is the flash partition created with
mkfs.jffs v1.14
(Extrax users: Notice, I've made an own bootloader that loads the kernel
and 
 romfs from compressed files in the jffs.)

Any ideas of what is wrong?


Jonas

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com