Q: jffs2 "Erase at 0x???????? failed immediately: errno -5"

H Hartley Sweeten hartleys at visionengravers.com
Mon Jun 27 21:14:52 EDT 2011


Hello all,

I have tried everything I can think of but my system still occasionally
spits out error messages like:

Erase at 0x01cc0000 failed immediately: errno -5

What do these messages actually mean?  Everything appears to be
working fine but the errors worry me a bit.

For the record, my filesystem is on a NOR device partitioned as follows:

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 "RedBoot"
mtd1: 00020000 00020000 "unallocated"
mtd2: 0001f000 00020000 "FIS directory"
mtd3: 00001000 00020000 "RedBoot config"
mtd4: 00200000 00020000 "kernel"
mtd5: 00c00000 00020000 "root"
mtd6: 03180000 00020000 "user"

And mounted like this:

# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
mdev on /dev type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
/dev/mtdblock6 on /user type jffs2 (rw,relatime)

If I understand the error messages correctly, they all appear to be happening
in the /dev/mtdblock6 partition.  I do a:

# flash_erase -j /dev/mtd6 0 0

On this partition before using it.

Any ideas will be appreciated.

Thanks,
Hartley



More information about the linux-mtd mailing list