Failed to mount jffs2 on mtd device

Artem Bityutskiy dedekind at infradead.org
Mon Feb 5 03:45:22 EST 2007


On Mon, 2007-02-05 at 11:10 +0800, axel lin wrote:
> Uncompressing Linux.........................................................................................................
> done, booting the kernel.
> Linux version 2.6.14-intc1 (axel at kdc.example.com) (gcc version 3.4.3)

Quite old kernel...

> Relocation table recognized, totally 57 block relocated
> Block 0x1 relocate to Block 0x:3ff
> Block 0x2 relocate to Block 0x:3fe

Hmm, interesting, what is this relocation table? You relocate bad
blocks?

> jffs2_check_nand_cleanmarker(): Cleanmarker node not detected in block
> at 00000000
> OOB at 00000000 was ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> e3 6b a8 ad 4f 0f fd 21 3f 2a 9d 0a dc 89 e5 88 9d 06 0d a3 70 c3 28
> 0c

Something unknown in OOB instead of a clean marker - JFFS2 yells but it
is harmless. How do you flash your image on the device?

> JFFS2: Erase block at 0x00fe0000 is not formatted. It will be erased
> VFS: Mounted root (jffs2 filesystem).

So you mounted it, everything is OK.
> nand_erase: Device is write protected!!!
> Erase at 0x008c0000 failed immediately: errno -5

This is your problem. Realize why your device is read-only. I guess this
relocation stuff is something simple and RO.

You seems to have standard flash but use some strange drivers which make
it RO. I am not sure, just guess. If so, use standard drivers and be
happy!

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)





More information about the linux-mtd mailing list