View Single Post
Posts: 678 | Thanked: 197 times | Joined on Jul 2007 @ San Jose CA
#4
Originally Posted by mrcrispin View Post
Assuming that I can get in to the old machine with ssh, and can allocate a scratch (OK to wipe whatever's there) SD card, and have a Windows machine available with Nokia's flasher, can you give me a recipe for the simplest way to make an image of the old one, and flash the new one with that image? I'm busy enough at work that I won't have a change to allocate time to figure it myself out (even with the excellent hints you've offered) for a few months.

Thanks.
Assume you can get to the old machine with ssh.

Try to get wget, and initfs_fasher: see https://wiki.maemo.org/Booting_from_a_flash_card
Then you can make a copy of your old system: (as root)

mount -t jffs2 /dev/mtdblock4 /opt
cd /home/user/bin
./initfs_flasher/mkfs.jffs2 -r /opt -o /media/mmc1/rootfs.jffs2 -e 128 -l -n
umount /opt
./initfs_flasher/sumtool -i /media/mmc1/rootfs.jffs2 -o /media/mmc1/rootfs.faster.jffs2 -e 128KiB -l -n
Then later one on the new machine, you will do the same (get wget and initfs_flasher), better yet make it boot from mmc2 (internal SD) then:
cd /home/user/bin
./initfs_flasher/flash_eraseall -j /dev/mtd4
./initfs_flasher/nandwrite -a -p /dev/mtd4 /media/mmc1/rootfs.faster.jffs2
The file /media/mmc1/rootfs.faster.jffs2 is your copy so you won't lose anything from the old system.
 

The Following 3 Users Say Thank You to nhanquy For This Useful Post: