[question:] how to download JFFS2 image to NAND flash

superlidu at vip.sina.com superlidu at vip.sina.com
Thu Dec 1 23:00:24 EST 2005

Now I am building my ARM board, and use the Samsung\'s nand flash as the main 

storage(bootloader,os kernel, Ramdisk and QT embedded). The kernel is 2.6.14. I partition the 

nand flash two main part, one for bootloader, os kernel and Ramdisk, Another for the QT 

embedded(this part should be used as JFFS2 part),so I want

to download the above four images as follow:

  1, use my PC downloader tool download the bootloader ,os kernel and ramdisk image to the 

nand flash( I have a workable PC downloader tool and bootloader can download, the bootloader is 

my own without MTD and file system functions);

  2, make a JFFS2 image including QT on the host;

  3, after download the bootloader, os kernel. boot the kernel. After start the kernel, it should 

download the JFFS2 image to my JFFS2 part of my NAND flash.

  4, mount the ramdisk as the root fs, then mount the JFFS2 fs.

  Now I have a question in the step 3 and 4, how can I download the JFFS2 image to the nand 

flash? use the MTD write and read function? If like that, after I mount the JFFS2 part, if kernel

can know the QT files in the partition?

   when I use the MTD write function, Should I judge the bad block, if the block is bad, what 

should I do? just use next good block?

   Any advice is appreciated.


More information about the linux-mtd mailing list