JFFS2 complaining: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JFFS2 complaining: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at

9,699 Views
vkama
Contributor I
:smileysurprised:

I need to place my iMX31 Litekit rootfs in the NAND flash and tried to use JFFS2.

I compiled
the kernel BSP R13 with LTIB using the JFFS2 option as filesystem.

LTIB generated a rootfs.jffs2.

I did: flash_eraseall -j /dev/mtd2.

All OK.

then, nandwrite -p /dev/mtd2 rootfs.jffs2.

All OK.

but, when I do: mount -t jffs2 /dev/mtdblock2 /mnt/flash ( or other name )...

a lot of: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0xxxxxxx : 0xyyyy instead

appears ( hundreds ... )

I googled a lot, but, apparently, many people have this problems, but, nobody knows the reason and mainly, nobody knows the solution.

Can someone bring light to this issue?

Thanks

SerKam
WarpTec
0 Kudos
3 Replies

1,776 Views
vkama
Contributor I
:smileyvery-happy:

Hi Fabio Estevam

Good morning.

YESSS!!!

Directly in the bullseye ( tiro certeiro no centro do alvo ).

I forgot to set 16K in the block erase size ( was 64K ).

LTIB compiled the kernel and rootfs.jffs2, I mounted it, and voilá, worked!

Now I am working on to understand how to share de NAND flash between YAFFS of LogicLoader and JFFS2 of Linux kernel ( I am using LogicPD Litekit ). Apparently, I need to modify mx31lite.c module, that defines the NAND flash structure, accordingly to a post on LogicPD's forum. It is a matter of time, only.

Thank you very much for your precious advice.

SerKam
WarpTec
_______________
Live long and prosper
0 Kudos

1,776 Views
fabio_estevam
NXP Employee
NXP Employee
Please check if the erase block option in LTIB matches the one you have in your NAND.
 
Regards,
 
Fabio Estevam
0 Kudos

1,776 Views
fabio_estevam
NXP Employee
NXP Employee
I mean: "Please check if the erase block size"
0 Kudos