Mounting JFFS2 compressed Ramdisk on MTD partition
Niraj Maheshwari
niraj.maheshwari at gmail.com
Wed Jan 12 03:09:12 EST 2005
Hi.
I am using JFFS2 and MTD on our target for booting
the Ramdisk from MTD device ( Intel W18 Flash )
Kernel command line: root=/dev/mtdblock1 rw mem=64M
rootfstype=jffs2 console=ttyS0,115200 ramdisk=8192
I have compressed the RAMDISK to have JFFS2 Ramdisk image and
loaded in to the Flash on the specified memory location. I have also
created a MTD partition ( /dev/mtdblock1) which is pointing to flash
memory location where the JFFS2 compressed ramdisk image is there.
My idea is to load JFFS2 RAMdisk from flash ( specified in the KERNEL
config line ) because i have a very limited memory in Flash.
Here is the logs for the same. I am getting this
error eveytime when Linux Kernel tries to mount the JFFS2
compressed Ramdisk from the Flash Device.
logs:
INIT: Eep. Unknown node type 0080 at 00186f34 was
marked REF_UNCHECKED
Node header CRC failed at 00186f34. But it must have
been OK earlier.
Node was: { 0080, 2080, 00800080, 00800080 }
Node totlen on flash (0x00800080) != totlen from node
ref (0x000001b4)
and it keeps on repearing the same way.
I am formatting the flash completely. I have verified that all
the flash sectors have been erased correctly. By the way i am using
NOR Flash ( Intel W18 Flash).
Important thing to note that :
I am able to load the RAMdisk in /mnt/temp directory by issuing :
mount -t jffs2 /dev/mtdblock1 /mnt/temp.
But if i ask kernel to pick up the RAMdisk from /dev/mtdblock1 in the
kernel config line then it gives me lot of errors as mentioned above.
Do you have any idea ?
Thanks and regards
Niraj
More information about the linux-mtd
mailing list