MTD nand driver help

Tushar Kapse tusharkapse at gmail.com
Thu Aug 23 07:39:15 EDT 2007


thanx for your valuable suggestion..
Here are the steps followed to create JFFS2 and dumped into the NAND
using Boot Loader utility for NAND:
1) On the Host(x86) we have created a directory "Target" and copied
the minumum required file system into that directory.
2)Then we have created a jffs2 image using the following command:
"#./mkfs.jffs2 --pad=0xa00000 --eraseblock=0x20000 --pagesize=2048 -l
-n --root=Target --output Target.jffs2"
         Note: Here we want to create 10Mb image.
3)Then we have copied Target.jffs2 into NAND device using Boot Loader
NAND utility which reside in the NOR.
   Note:
    1)We have copied Target.jffs2 from 0th Block, 0th Page onwards...
    2)We dont have any partitions on NAND device. NAND formated using
utility of Bootloader.

If we have missed any steps kindly tell  us,
waiting for your reply
Best regards
tushar

Once we have followed above steps,and when i Boot the Linux we found
the error as follows:
"Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(31,0)"



On 8/23/07, hinko.kocevar at cetrtapot.si <hinko.kocevar at cetrtapot.si> wrote:
> 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.
>
> HTH,
> Hinko
>
> --
> ČETRTA POT, d.o.o., Kranj
> Planina 3
> 4000 Kranj
> Slovenia, Europe
> Tel. +386 (0) 4 280 66 03
> E-mail: hinko.kocevar at cetrtapot.si
> Http: www.cetrtapot.si
>
>


More information about the linux-mtd mailing list