![]() |
copying main filesystem from one N800 to another
The screen gave out on my N800. Sometimes it won't show anything at all, other times it only shows alternating scan lines, other times the missing scan lines are flashing.:(
Since it's a couple of years old and long out of warranty, I elected to get a new N800 rather than send it in for repair. The problem that I have is how to transfer everything to the new device without laborously reinstalling everything.:confused: I was hoping for some nice tool to flash from one to the other (preferably not involving the screen on the old one) but didn't see anything obvious.:( I've already taken a tarball of the internal filesystem. Will it work to jailbreak the new one, get an ssh server going, kill off just about all processes except the ssh server, then untar? Is there a simpler way? |
Re: copying main filesystem from one N800 to another
Quote:
Also extracting tar to internal flash with jffs2 filesystem will be slow and will not give you optimal result. If you have existing data it is better to extract it to normal filesystem and prepare jffs2 image out of that via mkfs.jffs2 (similar to making ISO image for CD or DVD) and flash such image directly. jffs2 filesystem is log based (i.e. whole filesystem is one big log of changes to previous state) so lot of file removing/creating makes it slower and otherwise suboptimal. It still works of course, it is just not the best way to populate the filesystem. As for bootmenu and other details, there is plenty of threads here, just search for bootmenu, mkfs.jffs2, nandwrite, sumtool or check https://wiki.maemo.org/Booting_from_a_flash_card EDIT: And BTW if you have no use for N800 with unreadable display, just let me know :-) |
Re: copying main filesystem from one N800 to another
I was afraid that it was going to be more complicated that just untarring; and the jffs2 issue concerns me. A further complication is that I'm still using OS 2007 (I have something that depends upon it).
There is also the small matter that stuff that /proc, etc. isn't readily tar-ed; but I assumed that I didn't need to tar those so I just skipped those directories. I tar-ed: bin, etc, home, lib, sbin, sys, tomoe, usr, var; and skipped boot, cdrom, dev, floppy, initrd, media, mnt, opt, proc, root, srv, tmp. I have that on an SD card. 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. |
Re: copying main filesystem from one N800 to another
Quote:
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) 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/binThe file /media/mmc1/rootfs.faster.jffs2 is your copy so you won't lose anything from the old system. |
Re: copying main filesystem from one N800 to another
Yes, exactly. if you still have access to old system, make backup again not via tar but via mkfs.jffs2 directly to card as explained above (trick with mounting /dev/mtdblock4 again to /opt is intentional to get rid of /proc /sys etc)
The restore part is a bit tricky, you can't boot from system you want to erase and reflash so either you copy system to card and boot from it just to do the restore or you can try the emergency usb networking mode of bootmenu to boot only to initfs, ssh in via usb networking and try to restore backup from there. The only catch with using the recovery mode is that flash_eraseall and nandwrite is not installed in initfs so you need special binaries (initfs is uclibc based) and scp them to device to some temporary ram storage (/tmp) and run them from there. Also for windows you need .inf driver file for RNDIS (google for linux rndis inf) |
Re: copying main filesystem from one N800 to another
I think if it was me I would get in there and swap the screens.
|
Re: copying main filesystem from one N800 to another
OK, I got the rest via PM so here it is for others. With linux PC there is another easier way. The restore part can be done with usb flasher.
Quote:
Quote:
First reflash new device with same OS version you had on old device so you get matching bootloader, kernel etc (new device may come with OS2008 and you mentioned you stay with OS2007), and then you can flash just the rootfs.faster.jffs2. It can be done in one flashing session with two flasher commands Code:
flasher -F fiascoimage.bin -f You'll be flashing rootfs twice but that it easier than excluding it from first flashing command. |
All times are GMT. The time now is 10:56. |
vBulletin® Version 3.8.8