Gary and Bill, My need is to load a basic Linux kernel on boards to program multiple NOR and NAND flashes with CRAMFS and JFFS2 (perhaps YAFFS) images.
I usually used mtd character accesses to do the job on NOR flashes. But flash_eraseall and flashcp seem to be excellent tools. I'll try them quickly. Many thanks for your help Bye Laurent > -----Message d'origine----- > De : Gary Kenaley [mailto:[EMAIL PROTECTED] > Envoyé : lun. 11 juin 2007 21:00 > À : Bill Gatliff; Laurent Lagrange > Cc : [email protected] > Objet : RE: Linux 2.6.x, MTD drivers and NAND flashes > > > Laurent, > > Can't you just use the flashcp copy command from the > mtd-utils package? > -------------------------------------------------------------- > --------- > flash_eraseall -j /dev/mtd0 > > mkfs.jffs2 -b -n --eraseblock=131072 --pagesize=2048 -p -r > /test_root -v -o test_root.img > > flashcp test_root.img /dev/mtd0 > > > The other way is what Bill mentions: > ------------------------------------ > flash_eraseall -j /dev/mtd0 > mount -t jffs2 /dev/mtdblock0 /tmp/mnt > tar -xzf test_root.tgz -C /tmp/mnt > umount /tmp/mnt > > Gary
<<attachment: winmail.dat>>
_______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded
