Magic bitmask 0x1985 not found

McNutt, Scott smcnutt at artesyncp.com
Fri Jul 20 09:47:24 EDT 2001


> From: David Woodhouse
> 
> smcnutt at artesyncp.com said:
> > mount: block device /dev/mtdblock/2 is write-protected, mounting
> > read-only
> 
> Why JFFS2 if it's readonly and the sectors are protected? 
> Surely cramfs  would suffice?

I don't want readonly ... my mistake ... I was
setting MTD_WRITEABLE vs. clearing it (duh!)

> > jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 
> 0x00020000: 0xe002 instead
> 
> What's at offset 0x1fffc in the partition? 0x1985? 

Here's the dump:
01fff0 90 87 2f 34 2e 16 d5 26 bc c0 4e d1 ff ff 19 85
...
03fff0 84 00 03 00 de 72 b0 79 ff ff ff ff 19 85 e0 02
05fff0 ff ff ff ff ff ff ff ff ff ff 19 85 e0 02 00 00

So ... the offsets are jacked.

> What '-e' value was given to mkfs.jffs2? 

I thought I used 131072. But based on the dump, I must have
fat-fingered 131071 :-(. I made a new image with -e 131072
and it looks good.

Thanks for the help!
--Scott




More information about the linux-mtd mailing list