Active Topics

 


Reply
Thread Tools
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#1
In a few hours, my new N900 is going to arrive via UPS.
This topic is a log of what I will do/have done to it, for two purposes: One, if I screw things up, I will be able to work back through this and restore things to how I had them before. Two, this will allow you, the curious N900 owner to copy any bits that I got right.
Note that I am running a Linux(x64, KUbuntu 9.10 & Mint 8 KDE) system, so my commands will be Linux based.

Items with a * before them have -NOT- been completed yet. YMMV.
Instructions will be in [b]Bold[/i], comments/results in normal text.

Here goes:

1. Unbox N900, make sure everything is there
Found N900, charger, USB cable, spare stylus, and getting started guide(which I haven't opened).
2. Pull back case off N900, remove battery, make sure there is -no- sim. If there is, remove it.
No sim found, battery dead. Charged battery for a few minutes.
3. Boot up N900. Check what firmware version, and if there are any files left by previous owner. If any files left, back them up.
Firmware version is "10.2010.19-1.002". I didn't see any files left behind(Though I saw 1.5GB of 'cities' data). Backed up settings, copied everything to my laptop.
4. Download PR1.2 on PC along with flasher
Powered N900 down, pulled out battery. Entered IMEI number(with one digit changed) into Here.
Downloaded RX-51_2009SE_10.2010.19-1.002_PR_COMBINED_002_ARM.bin.
Downloaded maemo_flasher-3.5_2.5.2.2.tar.gz.
5. Flash PR1.2
Unzipped the flasher via Dolphin.
Entered the flasher DIR, pressed F4 to bring up a terminal window.
Ran "sudo chmod +x ./flasher-3.5"
Ran "./flasher-3.5 -F ../RX-51_2009SE_10.2010.19-1.002_PR_COMBINED_002_ARM.bin -f"(image in parent directory).
Got "Suitable USB device not found, waiting." message in terminal.
Held 'U' key on N900, plugged USB cable in. Got USB icon, released U key.
Got "Error claiming USB interface: Operation not permitted" in terminal.
Checked that modules 'cdc_phonet' and 'phonet' were not loaded(these modules caused this error with my N770).
Ran "sudo ./flasher-3.5 -F ../RX-51_2009SE_10.2010.19-1.002_PR_COMBINED_002_ARM.bin -f" with N900 still plugged in and in flasher mode.
Device flashed properly.
Unplugged USB cable and rebooted.
6. Install software: vim, rootsh, mplayer.
Added Maemo Extras repository.
Added Extras-devel repository.
Note: be careful to put 'fremantle', not 'freemantle' as I did the first time.
Installed rootsh.
Ran xterm, typed 'sudo gainroot'.
Ran 'apt-get install vim mplayer'
7. Rename /usr/bin/cherry to /usr/bin/cherry_old, make shell script:
Code:
#/bin/sh
return 0
Save as /usr/bin/cherry.

Ran 'cd /usr/bin'
Ran 'mv cherry cherry_old'
Ran 'vim cherry'
Pressed 'I' to get into insert mode, typed '#/bin/sh*enter*return 0'. Typed '*escape*' to get out of insert mode, then ':wq' to save and quit. Exited xterm.
7. Mess around with the device, test it out and check stability.
Haven't had a crash yet, device seems responsive. But, I'm mostly skipping this step.
8. Install nbench from Here.
Doiwnloaded the three files via my laptop.
Copied them to N900 via usb to N900/nbench
Opened xterm on N900, cd'd to /home/user/MyDocs.
Ran 'mv ./nbench /home/user/' Got several 'error' type messages about owner not being able to be preserved(vfat issues?), but the files moved.
Ran 'cd /home/user/nbench'
Ran 'chmod +x ./nbench', then './nbench' to start.
9. Figure out a way to backup the n900. Test multiple methods, figure out which works.
I've messed with tar and excluding the dirs I don't want. It seems that the busybox version of tar only takes one 'exclude' variable. I installed 'tar-gnu', and then tried running the same command with 'gtar' instead. It seems to work. Currently I'm running this command as root:
Code:
gtar cvpzf /media/mmc1/backup.tar.gz / --exclude="/dev" --exclude="/home/user/MyDocs" --exclude="/media" --exclude="/mnt" --exclude="/proc" --exclude="/sys" --exclude="/tmp" --exclude="/syspart"
First time I ran it, I got a 'write error' after a couple minutes - probably caused by trying to write to the mmc when it was in USB mass storage mode, though the SD card wasn't mounted on the PC. Switched to charging mode, trying again.
This time it worked fine. No errors whatsoever.
I backed up a second copy of my archive(~250MB) to my PC, and flashed the 1.2 firmware to my N900. Now to see if I can't restore it properly.
I opened Xterm, and ran "tar xzvf /media/mmc1/backup.tar" from the root directory. Errored out - no permissions.
I then opened the App manager, checked for updates(Note: On wifi here), installed 'rootsh'.
Ran 'sudo gainroot', then 'tar xzvf /media/mmc1/backup.tar'.
Hm, it doesn't like the '/syspart' files. I'll remove them from the archive, try again.
Trying one section at a time using "gtar xvzf /media/mmc1/backup.tar --wildcards bin/*".
Everything worked fine until I got to 'usr'. The phone evidently crashed and when I saw it it was in flash mode. It wouldn't reboot fully after that - had to reflash it again.
Tried again. Does -not- like writing to 'usr'.
So, for backup, the tar method works fine. For restore, not so much.
----
New method:
Open app manager, install 'gainroot', 'wget', 'coreutils-gnu'
Open xterm. type 'sudo gainroot'
type 7 commands:
Code:
wget http://www.daimi.au.dk/~cvm/bootmenu_1.6_armel.deb
dpkg -i bootmenu_1.6_armel.deb
install_bootmenu
cd /
wget *attached bootmenu.txt url here*
rm bootmenu.sh
mv bootmenu.txt bootmenu.sh
Bootmenu works, but only allows internal flash or a "recovery boot" with network only access - no terminal!
Yes, it may be possible to backup over the network, but this isn't a solution.
Hm. If we can boot Debian off of a floppy and get a command prompt(on a pc), we ought to be able to load a tiny debian/otherOS image onto the SD card or eMMC, then boot into that and fix things. All we need is a command prompt.
Props to anyone who can recommend such a solution!
-----
Of cource. The one solution that should never work... seems to.
I went back to basics and tried a "dd if=/mnt/mtd5 of=/media/mmc1/backup.img bs=4K", let it back up, then copied it to PC, flashed the device back to defaults(to make sure it works), then used flasher to load that image.
Upon doing so:
Code:
robbiethe1st@rb-dt:/Data/Projects/N900/maemo_flasher-3.5_2.5.2.2$ sudo ./flasher-3.5 -r ./backup.img -fflasher v2.5.2 (Oct 21 2009)

USB device found found at bus 002, device address 064.
Found device RX-51, hardware revision 2101
NOLO version 1.4.14
Version of 'sw-release': RX-51_2009SE_10.2010.19-1.002_PR_002
Sending and flashing rootfs image (257280 kB)...
100% (257280 of 257280 kB, avg. 16000 kB/s)
Finishing flashing... Sending request 0x52 failed!

Bootloader error log follows:
  ERROR: Invalid argument for 'cmt'
  ERROR: Error processing request, stalling
  ERROR: EP0 STALL sent
  ERROR: Error reading spare of block 1847, page 0
  ERROR: Out of space: image size 263454720, partition blocks 2010, bad blocks 1
  ERROR: Error processing request, stalling
  ERROR: EP0 STALL sent
  ERROR: Premature end of control transfer
Not so sure thats good, but not only did it still boot afterwards, it actually had all the programs I had installed, and everything worked!
------
Ok, lets try a new, possibly the best method yet, using a custom bootloader app. Thanks to 'hawaii' for this:
I'm gonna try using the process outlined Here, then improve the rescuemenu shell script to have a "backup" option.

First, using my N900, I opened xterm, got root, then ran 'apt-get install bootmenu-n900' (make sure that 'extras-devel' is enabled, or install the package manually).
.......

----
*10. Run nbench for 30mins, using a script if needed to keep it running. If the device stays running during this, proceed with OCing. If not... test again, and if it fails, see about returning to Nokia.
*11. Install D-THEME black.
*12. After testing and playing around with it, proceed to OCing using resources from [url=http://wiki.maemo.org/Overclocking]Here[/ur] and the Maemo Talk forums.

The plan here is to OC it, figure out the maximum stable frequency with one of Titan's kernels, then see about manually adjusting voltages down on each frequency until it crashes(during nbench tests), then bring it up one notch. I figure the values I arrive at will be close to Titan's levels, but they may not be exactly the same, what with tolerances and all.

--In progress--
Attached Files
File Type: txt bootmenu.txt (8.8 KB, 198 views)

Last edited by RobbieThe1st; 2010-07-10 at 11:47.
 

The Following User Says Thank You to RobbieThe1st For This Useful Post:
cfh11's Avatar
Posts: 1,062 | Thanked: 961 times | Joined on May 2010 @ Boston, MA
#2
Cool story bro!
__________________
Want to browse streamlined versions of websites automatically when in 2g? Vote for this brainstorm.

Sick of your cell signal not reconnecting after coming out of a bad signal area? Vote for this bug.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#3
*10. Install D-THEME black.
Try "reflect", it makes N900 looking even more professional.

You may want to change the background to something else though, as the default sucks.
 
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#4
Eh, I took a look at it - Decent, but I still like D-theme black better.
However, as I haven't actually -used- either theme, I may change my mind.

Background - Yea, I intend to use my own on any theme I pick.
 
Posts: 208 | Thanked: 220 times | Joined on Apr 2010
#5
Nice!

Originally Posted by RobbieThe1st View Post
Entered IMEI number(with one digit changed) into Here.
Umm sorry I didnt get it, why change one digit?

Held 'U' key on N900, pressed power button. Got USB icon, released U key.
I am pretty sure power key press is not required.Simply inserting the USB cable with 'U' held down does the trick as per here

Added Maemo Extras repository.
In case you missed it, PR1.2 automatically adds the maemo extras repository, its called maemo.org
If you meant to type extras-testing, oh well alright
 
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#6
Originally Posted by techie View Post
Nice!

Umm sorry I didnt get it, why change one digit?
Consider me paranoid, but I don't like entering unique ID numbers unless I absolutely have to. If any site-logs are kept, my download-logs will be under a -different- N900 ID, for what its worth.

Originally Posted by techie View Post
I am pretty sure power key press is not required.Simply inserting the USB cable with 'U' held down does the trick as per here

In case you missed it, PR1.2 automatically adds the maemo extras repository, its called maemo.org
If you meant to type extras-testing, oh well alright
Do realize that this is a log of what I did - not always the best way of doing things.
I actually found out the first just now when I flashed it for a second time(post currently being edited with new info). I think in the first case, I left the USB cable in when I shut it off(or something?) and had to press the power button to bring it up.
The second I missed until I was messing with the repositories, trying to get extras-devel to work.
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:55.