From: JamesAng <ang...@gm...> - 2011-08-16 02:50:25
|
Ash Charles wrote: > > Hi James, > > The script jumps to a new directory and then untars: > # cd /media/mtdblock4 > # tar xjf $dir/$rootfs > > What happens if you don't change directories and just untar directly > to this other directory? I.e. > # tar xjf $dir/$rootfs -C /media/mtdblock4 > > -Ash > 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. -- View this message in context: http://old.nabble.com/Ash%3A-Write-Images-to-Flash-tp31944743p32268904.html Sent from the Gumstix mailing list archive at Nabble.com. |