This post has already been read 7582 times!
So with new firmware images coming from Nokia (which is a good thing) you have to start to deal with picking up the pieces after a flash. The built in control panel ‘Backup’ does a questionable job – while it does seem to work, it also seems to have made my 770 totally wonky, and I’ve been better off not using it after re-flashing 51.
So what to do?
One solution is again the ever-maturing Synchronisation and backup using rsync & make by Andrew Flegg at Bleb- be sure and read his solution which is clearly outlined at his site.
Meanwhile, I’ve put together some very simple scripts which can help bootstrap your 770 right after a firmware flash.
I’m assuming that you have a MMC card, and you’ll keep these scripts on the card along with your 3rd party packages- so that they are available right after a flash.
You’ll have to install xterm using the 770 GUI and then run these scripts just one time. One for user and one for root.
As you can see, I keep the public RSA keys from my main desktop computers also on the MMC card, so that I can ssh right in after running these scripts. These scripts are very simple but hopefully they can save you some time after your next flash.
#!/bin/sh echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/lib/install/usr/lib' >> /home/user/.profile echo 'export PATH=$PATH:/var/lib/install/usr/bin:/var/lib/install/usr/sbin' >> /home/user/.profile echo 'set nocompatible' >> /home/user/.vimrc mkdir /home/user/.ssh cat /media/mmc1/keys/id_rsa_mac >> /home/user/.ssh/authorized_keys cat /media/mmc1/keys/id_rsa_XP >> /home/user/.ssh/authorized_keys chmod 400 /home/user/.ssh/authorized_keys chmod 700 /home/user/.ssh
#!/bin/sh echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/lib/install/usr/lib' >> /root/.profile echo 'export PATH=$PATH:/var/lib/install/usr/bin:/var/lib/install/usr/sbin' >> /root/.profile echo 'set nocompatible' >> /root/.vimrc app-installer-tool install /media/mmc1/Installers/load-plugin_0.2.4-1_arm.deb app-installer-tool install /media/mmc1/Installers/dropbear-client_0.46-2_arm.deb app-installer-tool install /media/mmc1/Installers/dropbear-key_0.46-2_arm.deb app-installer-tool install /media/mmc1/Installers/dropbear-server_0.46-2_arm.deb app-installer-tool install /media/mmc1/Installers/vim-tiny_5.6.070-1.1_all.deb app-installer-tool install /media/mmc1/Installers/fbreader-maemo_0.7.1b-1_arm.deb ln -s /var/lib/install/etc/init.d/dropbear-server /etc/rc2.d/S20dropbear-server
Note: this does not address backing up any data… see Andrew’s solution for that. At this point I really don’t keep anything on the 770 that I can’t reload after a flash from my Macintosh. But if you are keeping data on it, make sure to take some action and back it up before you flash.