View Single Post
Posts: 473 | Thanked: 141 times | Joined on Jan 2009 @ Virginia, USA
#1
I figured I would post a short after-action report of my experiences of having to reflash and rebuild my N900 from the ground up. I wanted to put this out here for a newbie that might get an N900, or, more likely, an old-timer who hasn't flashed and rebuilt from bare metal in a couple of years. This will hopefully be up to date for June, 2013. If anyone sees anything I missed/misspoke, please feel free to correct in-thread. I may consolidate and put this in a wiki page after it has been vetted by the community.

I. Background
My N900, after 3 years, finally gave up the ghost. I noticed that open mediaplayer was no longer seeing ogg-vorbis audio files, so a good percentage of my media was unplayable. Initially, I thought it might be due to a problem with the tracker, so I rebuilt the database, to no avail. When this had no effect, I thought it may be an issue with the ogg-support package. I decided to reinstall ogg-support, so at the command line, I did

Code:
apt-get install --reinstall ogg-support
Which nuked the N900. The upper left status bar was a pink box and all of the text was black boxes. Many directories in /opt (/home/opt) gave errors when listing them, "Stale NFS file handle"...

II Flashing
I decided since it had been so long, and since, while looking through talk.m.o, that several of the apps I was running (speedpatch, battery patch, etc) were no longer recommended. So I decided to "nuke and pave", flashing both the eMMC and the OS. Luckily, I had backups from before the device melted down.

Piece of advice #1 Set up a backup scheme for your device.

I am a Linux guy, and run primarily Debian. I have a number of boxes and VMs at home, one of which being a backuppc box. I have been backing up my N900 for years. Unfortunately, I was only capturing /root, /media/mmc1, and /home/user/MyDocs. My recommendation would be to capture those, plus /home/user, as well as the rootfs and optfs. Set up something (backupmenu!!!) which will capture the rootfs and optfs partitions. Another option would be to let cron grab them.

But I digress.

Flashing gave me problems, primarily because, I found out later, the OS flash (RX-51_2009SE_20.2010.36-2.002_PR_COMBINED_002_ARM.bin) was not executing. So I would reboot after a "successful" flash, only to have either "Icon missing" messages on the initial screen, or it would go straight to the main screen, which had the pink status bar and blocks instead of characters. Copernicus suggested pulling the battery between flashing the eMMC and the rootfs, as suggested on the Updating the Firmware page. This worked perfectly, and as it turned out, the rootfs was not actually being flashed in my earlier attempts.

III Post-flash configuration
So here I sit with a shiny, new(ish) N900, with the brand spanking factor (re)shine. Now what to do? In talking with some of you on the forums, speedpatch and batterypatch (both of which I was running) are frowned upon, as are, by some, overclocking, which was frowned upon. That said, the suggestions I got for "infrastructure" or performance apps were:
  • CSSU/Thumb2
  • Kernel Power
  • Swappolube
  • FlopSwap
  • BackupMenu
  • Busybox Enhanced
  • Flash 12 fake

This lead to a slight stumble. I installed pretty much in that order, only to find out that CSSU/Thumb2 requires it's own kernel, 2.6.28.10-cssu3, so installing Kernel Power (50 or 52) will cause your N900 to reboot. Repeatedly. Doing innocuous things.

There may be another way to get the cssu kernel to boot after such a faux pas, but since the N900 does not have the grub I am used to from the Intel world, I just did the following:

Code:
apt-get install --reinstall kernel-cssu kernel-cssu-flasher kernel-cssu-modules
This seemed to either a) overwrite the kernel, or b) re-order the kernels. (This is where you all should feel free to comment if you know... ) I also don't know the interactions between kernel power and the cssu3 kernel.

I also haven't installed busybox enhanced. I'm not sure whether or not I need this as I would prefer the gnu tools...I've already got gnu-tar installed, and being a Linux guy, I am thinking about coreutils-gnu, grep-gnu, sed-gnu, and any others I can find (awk? findutils? diffutils?). I don't want to break core functionality, but would prefer the GNU suite.

I also have a number of apps that I am considering playing with like truecrypt, and a few others, but not nearly the number of installed apps as I had installed before...Many of which I never looked at. My app catalog consists of
  • Nokia Applications
  • Nokia System Software Updates (which can probably be disabled?)
  • Ovi (which can probably be disabled?)
  • maemo.org extras
  • community SSU (Testing)
  • community SSU (Testing-thumb)
  • Maemo extras-testing
  • Maemo extras-devel (disabled)

I will probably re-enable extras-devel, at some point, but so far, I am very happy with my N900, it feels like a new device...Though, for the record, I still can't see oggs in mediaplayer, which makes me think it may be something in, perhaps cssu or something else? I'm just getting everything the way I like it, and reinstalling ogg-support seems like a Bad Idea for the moment.

Thanks to everyone who gave advice, opinions, and was generally there for me, answering dumb questions and the like.

I hope this rambling soliloquy may help someone along the way.

--vr
 

The Following 7 Users Say Thank You to VulcanRidr For This Useful Post: