From: JamesAng <ang...@gm...> - 2011-08-17 09:46:03
|
JamesAng wrote: > > Hi Ash, > > I found out that the mkfs.jffs2 instruction is wrong. (or I might be the > one.. :confused:) > > It seems that mkfs.jffs2 requires a -r <rootfs> parameter else, it will > use the current directory which cause the ghosting effect. mkfs.jffs2 -r > <rootfs> -e <erase size in KB> -o <output file> > > Also, there is a duplication of instructions in the script. > I read from TI Wiki at > http://processors.wiki.ti.com/index.php/Put_JFFS2_Image_to_Flash#Writing_Flash_from_Linux > http://processors.wiki.ti.com/index.php/Put_JFFS2_Image_to_Flash that > using 'flash_erase -j /dev/mtd4 0 0' will format the NAND for JFFS2. > > Afterwhich is to mount mtdblock4 and untar the tarball directly to the > mount point. > > Looking at both option, I think using the flash_erase might be better and > safer to write the rootfs to NAND. > > I intend to try out the 2nd option. > > For your consideration. > > TIA. > > James. > The 2nd option works out well for me. I modified the script from the site and remove the mkfs.jffs2 instruction and uses flash_erase -j instead. Maybe it is better to update the webpage for this. Cheers~! James. -- View this message in context: http://old.nabble.com/Ash%3A-Write-Images-to-Flash-tp31944743p32278291.html Sent from the Gumstix mailing list archive at Nabble.com. |