MTD nand driver help

hinko.kocevar at hinko.kocevar at
Thu Aug 23 06:03:33 EDT 2007

Tushar Kapse wrote:
> Thank you for your nice support..
> here i will explain detail of my problem.
> 1.I have PXA255 SBC board, and ported linux 2.6.12 on it without File System.
>      Linux Image : Resides in NOR Device ( 4Mb)
>      File System:  To be reside in NAND Device (128Mb). Still to be done .
> 2.Now i want to put JFFS2 file system on NAND device.
> 3. First I have created the Linux image with MTD support (also JFFS2
> file system selected) and ported on NOR device. On power ON of SBC
> board, Linux is booted and got error "Kernel panic - not syncing: VFS:
> Unable to mount root fs on unknown-block(31,0)"
> 4. As there is no JFFS2 File System on it we got this error.
> 5. We have downloaded the MTD utilities on the host system (PC).
> Kindly please tell me the procedure to put JFFS2 FS in the NAND device
> for the first time.
> Note that we don't have any filesystem on NAND device.

If NAND device holds your boot partition you can
a) upload the image to the NAND device from your bootloader (if one 
exists on your machine and supports NAND flash) or
b) boot from NFS rootfs for the first time and then use the nandwrite to 
transfer the image to NAND device.


ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at

More information about the linux-mtd mailing list