Re: transfer jffs2 rootFS to Nand flash

Saravanan Chanemouganandam
2007-08-30T15:59:28Z

Hi all,

I got my problem fix up by gurus. The work around solution to transfer jffs2
rootfs on the cm-x270 nand ( /dev/mtdblock1 ) is to have the following
kernel configuration setup.

CONFIG_ARMCORE_FLASH is not set
CONFIG_ARMCORE_NAND is not set
CONFIG_MTD_NAND_CM_X270 is set

The "compulab Nand flash" block driver CONFIG_ARMCORE_NAND initializes
(erases) nand contents on each reboot that causes the jffs2 rootfs mounting
failure.

Unconfig CONFIG_ARMCORE_NAND fixs the problem and the jffs2 rootfs on the
cm-x270 nand mounted succesfully.

IP-Config: Complete:
device=eth0, addr=192.168.6.203, mask=255.255.255.0, gw=192.168.6.1,
host=cm-x270, domain=, nis-domain=(none),
bootserver=192.168.6.1, rootserver=192.168.6.1, rootpath=
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 120K

Regards,
Sara

Le Jeudi 30 Août 2007 17:09, vous avez écrit :
> On Thu, 30 Aug 2007, Saravanan Chanemouganandam wrote:
> > I have unconfigured the compulab NAND flash block driver which
> > reinitialise (erases on reboot) each and everytime of reboot that
> > conflicts with MTD nand driver.
>
> That would definitely explain the symptoms you were seeing (no jffs2 nodes
> found when mounting the rootfs).
>
> > This fixed my problem and I can be able to successfully mount the jffs2
> > rootfs.
> >
> > IP-Config: Complete:
> > device=eth0, addr=192.168.6.202, mask=255.255.255.0, gw=192.168.6.1,
> > host=cm-x270, domain=, nis-domain=(none),
> > bootserver=192.168.6.1, rootserver=192.168.6.1, rootpath=
> > VFS: Mounted root (jffs2 filesystem).
> > Freeing init memory: 120K
> > INIT: version 2.86 booting
> >
> > Thanks a lot for your comments and your valuable time.
>
> Great!
>
> /Ricard
> --
> Ricard Wolf Wanderlöf ricardw(at)axis.com
> Axis Communications AB, Lund, Sweden www.axis.com
> Phone +46 46 272 2016 Fax +46 46 13 61 30
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/