Mounting NAND flash as the root file system

Ricard Wanderlof ricard.wanderlof at axis.com
Tue Apr 28 10:54:20 EDT 2009


On Tue, 28 Apr 2009, Jatin Sharma wrote:

> Actually, I was mounting the block device but wrote it wrong in the email.
>
> WDS# mount -t jffs2 /dev/mtdblock0 /mnt
> mount: mounting /dev/mtdblock0 on /mnt failed

Ok. Well I don't really have any other ideas, it's just a typical mistake 
that people make (I do it all the time...).

> Since the flash_eraseall and nandwrite tools are working on the NAND
> device, NAND driver is working fine. Would you agree? I don't have the
> nanddump tools on my file system but will include it to make sure NAND
> is getting updating after being written by nandwrite.

What happens if you erase the flash and the mount it directly (without 
writing an image to it). An empty flash is a valid jffs2 file system, so 
if this works, but mounting the partition with an image in it doesn't, 
there could be something wrong with your image.

/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



More information about the linux-mtd mailing list