Erase flash image and replace
From WikiWiki
== Repairing/Replace the YAFFs image. ==
The Yaffs filesystem is the filesystem used for the onboard flash on the TS-7250 and TS-7260.
You have to erase the filesystem completely (either with rm -rf or eraseall /dev/mtd/1) and extract your new image onto the mounted filesystem. This way, YAFFS will auto-discover the bad sectors as you are extracting and work-around them.
- Boot to an NFS root filesystem. If you are using kernel ts8 use this as your nfs root filesystem %%% ftp://oz.embeddedx86.com/images/debian256/debian256-5-6-2005.tar.gz %%% if you are using kernel ts9 use this as your nfs root filesystem %%% ftp://oz.embeddedx86.com/images/debian256/debian256-10-27-2005.tar %%% Refer to the TS-ARM developers manual(http://www.embeddedarm.com/Manuals/TSARML.PDF) for information on how to boot to an NFS root filesystem.
- Erase the second partition of your onboard flash(use the char device not the block device). %%%
eraseall /dev/mtd/1
- Mount the second partition of your onboard flash and extract the new filesystem. %%%
mount /dev/mtdblock/1 /mnt%%%tar xzvf /path/to/7250rootfs.tar.gz -C /mnt
- Unmount the second partition of your onboard flash and reboot. %%%
umount /mnt
shutdown -r now
