Booting Ramdisk from MTD
xemc
xemcnet at gmail.com
Mon Jan 10 12:19:13 EST 2005
Hi.
> > I am using JFFS2 and MTD on our target for booting
> > the Ramdisk from MTD device ( Intel W18 Flash ).
logs:
> > Kernel command line: root=/dev/mtdblock1 rw mem=64M
> > rootfstype=jffs2 console=ttyS0,115200 ramdisk=8192
Are you using a ramdisk, or using mtdblock1 as the rootfs?
I'm a little unclear on this. It looks like you're using the JFFS2
MTD partition as your rootfs, not using a ramdisk.
> > 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)
Well, this looks totally broken. Did you format the flash correctly?
I would use 'flash_eraseall -j /dev/mtd1' 'nandwrite -j /dev/mtd1
jffs2_rootfs.img', and then try mounting it 'mount -t jffs2
/dev/mtdblock1 /mnt/temp', and make sure that works correctly before
trying to boot off of it.
(Can you load a ramdisk another way to do this?)
On the other hand, all the errors look the same. Once you figure out
what that is, you could have it working.
Mike
More information about the linux-mtd
mailing list