MTD nand driver help

Tushar Kapse tusharkapse at gmail.com
Thu Aug 23 05:11:28 EDT 2007


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.

Regards,
Tushar

On 8/23/07, Ricard Wanderlof <ricard.wanderlof at axis.com> wrote:
>
> On Thu, 23 Aug 2007, Tushar Kapse wrote:
>
> > Thanx for the reply,
> > But, my problem is as follows,
> >
> > I have the board with PXA255 and want to port the Linux with MTD driver support.
> > I got the steps for creating the JFFS2 file system are :
> > 1. using mkfs.jffs2 create the file system.
> > 2. using eraseall erase the /dev/mtdn device
> > 3. using nandwrite copy the jffs2 image to /dev/mtdn.
> > But, my qustion is for erasing and copping jffs2 image in  /dev/mtdn
> > device do i need to have the file system exist in the nand already.
>
> No, that should not be necessary. Copying the image using nandwrite to an
> erased nand partition /dev/mtdn should be ok.
>
> /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/
>



More information about the linux-mtd mailing list