Editing User:Agge/Updating the firmware/rev2

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.

Warning: This page is 34 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
<pre> WORK IN PROGRESS INFORMATION MIGHT BE WRONG AND NEED TO BE CONFIRMED</pre>
 
-
 
-
<pre> DO NOT USE</pre>
 
-
 
-
 
This page has seen massive edits to get it in line with N900 details of flashing. N8x0 owners might want to have a look to older versions, like http://wiki.maemo.org/index.php?title=Updating_the_firmware&oldid=17120.
This page has seen massive edits to get it in line with N900 details of flashing. N8x0 owners might want to have a look to older versions, like http://wiki.maemo.org/index.php?title=Updating_the_firmware&oldid=17120.
-
This page grew organically, so structuring is suboptimal. '''READ THE WHOLE PAGE before starting!''' ''' AND [[User:Agge/Updating_the_firmware/rev2/Trubleshooting|Trubleshooting]]'''
+
This page grew organically, so structuring is suboptimal. '''READ THE WHOLE PAGE before starting!'''
'''Video Tutorials:'''
'''Video Tutorials:'''
Line 51: Line 46:
== Updating & Flashing your device ==
== Updating & Flashing your device ==
-
 
+
Install [[Updating_the_firmware/rev2_install_flasher|Flasher]]
  {{ambox
  {{ambox
Line 61: Line 56:
|text=MAKE SURE YOU KNOW YOUR LOCK CODE (default: 12345 OR 0000 OR 00000)
|text=MAKE SURE YOU KNOW YOUR LOCK CODE (default: 12345 OR 0000 OR 00000)
There has been at least one report where a device '''started''' to ask for lock code after reflashing!}}
There has been at least one report where a device '''started''' to ask for lock code after reflashing!}}
-
 
-
Install [[User:Agge/Updating the firmware/rev2/install_flasher|Flasher]]
 
# Download the [[Documentation/Maemo 5 Developer Guide/Development Environment/Maemo Flasher-3.5|Flasher]] for your device model: [http://tablets-dev.nokia.com/maemo-dev-env-downloads.php N900, N810, N800] or [http://tablets-dev.nokia.com/d3.php 770] or [http://skeiron.org/tablets-dev/maemo_dev_env_downloads/ mirror]
# Download the [[Documentation/Maemo 5 Developer Guide/Development Environment/Maemo Flasher-3.5|Flasher]] for your device model: [http://tablets-dev.nokia.com/maemo-dev-env-downloads.php N900, N810, N800] or [http://tablets-dev.nokia.com/d3.php 770] or [http://skeiron.org/tablets-dev/maemo_dev_env_downloads/ mirror]
# Download the latest firmware image for your device model:
# Download the latest firmware image for your device model:
-
<pre> Vanilla = eMMC, Combined = rootfs </pre>
 
#* for [http://tablets-dev.nokia.com/nokia_N900.php N900]
#* for [http://tablets-dev.nokia.com/nokia_N900.php N900]
#* for [http://skeiron.org/tablets-dev/nokia_N900/ N900 (site mirror)]
#* for [http://skeiron.org/tablets-dev/nokia_N900/ N900 (site mirror)]
Line 78: Line 70:
# '''Ensure the battery is fully charged'''. Connect to charger until green light when screen locked! Don't say "I already did it this morning"! ''(this point obviously only applies when your device is not "bricked" or bootlooping.)''
# '''Ensure the battery is fully charged'''. Connect to charger until green light when screen locked! Don't say "I already did it this morning"! ''(this point obviously only applies when your device is not "bricked" or bootlooping.)''
# Unplug the charger and switch off the device.
# Unplug the charger and switch off the device.
-
 
-
=== command line OS independent install instructions ===
 
-
 
-
Flasher in this text refer to the command used in your OS to
 
-
 
-
=====Linux:=====
 
-
 
-
<pre>flasher, flasher-3.5, or /PATH/TO/flasher-3.5, ./flasher-3.5 if you are in the install directory of the flasher.</pre>
 
-
* If you have installed it with a package manager and the program name is just flasher check that it give you: <pre>flasher v2.5.2 (Oct 21 2009)</pre>
 
-
to confirm that it is the 3.5version "Nokia logic :("<br>
 
-
 
-
=====MAC OS X:=====
 
-
 
-
<pre>sudo /usr/bin/flasher-3.5</pre>
 
-
<br>
 
-
=====Windows:=====
 
-
 
-
<pre>flasher-3.5.exe</pre>
 
-
<br>
 
-
======Important windows specific instructions======
 
-
#Ensure the battery is full.
 
-
#Unplug USB cable if present, and switch off the device.
 
-
#On windows install the usb drivers for flasher by: Hold the '''u''' key on the '''device''' keyboard and connect the USB cable at the same time. See the [[Documentation/Maemo 5 Developer Guide/Development Environment/Maemo_Flasher-3.5#Setting_Maemo_device_to_flashing_mode|Flasher documentation]] for more information. (TIP: Hold the u key until Windows has successfully installed the driver.)
 
-
<br>
 
-
 
-
 
-
====''' Installation '''====
 
-
 
-
 
-
#Ensure the battery is full.
 
-
#Unplug USB cable if present, and switch off the device.
 
-
#run the flasher with the image you want to install for example: to flash a new combined(rootfs image).<pre>flasher -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin -f</pre>
 
-
#This should give you a dialoge like this one
 
-
<pre>
 
-
flasher v2.5.2 (Oct 21 2009)
 
-
 
-
Image 'mmc', size 255947 kB
 
-
Version RX-51_2009SE_20.2010.36-2_PR_COMBINED
 
-
Suitable USB device not found, waiting.
 
-
</pre>
 
-
#* '''N900''': While holding the '''u''' key, connect the N900 to your computer via USB. Wait until you see a dim screen on your N900 with a Nokia logo in the middle of your screen with an USB icon in the top right corner. Note: You may not need to hold the U key - it seems to automatically flash if the flasher is ready at boot time.
 
-
#* If the USB logo does not appear, and the device turns off - ensure the battery is charged by connecting to the wall charger for an hour and try again. Bear in mind that neither the wall charger nor the USB cable will charge the N900 battery if the N900 cannot boot the OS.
 
-
#* '''N810 WiMAX, N810, N800 and 770''': Connect your device to your computer via USB.  While holding the Home/Swap button (It's a house on the [[Nokia 770|770]] and [[Nokia N800|N800]], and two overlapping rectangles on the [[Nokia N810|N810]]), power on the device by holding the power button. You should see a Nokia logo in the middle of the screen, and a USB icon in the top right corner.
 
-
#The dim Nokia screen will be displayed for a few seconds followed by progression dots. Text similar to the following will be displayed on the computer:
 
-
<pre>
 
-
USB device found found at bus 002, device address 014.
 
-
Raw data transfer EP found at EP2.
 
-
Image(s) flashed successfully in 4.711 s (9199 kB/s)!
 
-
</pre>
 
-
#The flash will take a minute or so.
 
-
#'''IF''' Flashing the rootfs is al you are planing on doing you are done.
 
-
 
-
 
-
'''IF''' You are completely reflashing the system both the eMMC and rootfs
 
-
#Follow the above instructions but use the VANILLA img first
 
-
#Then '''Completely''' shut down the device by removing the battery (and the usb cable?)
 
-
#Start the flasher with the Rootfs IMAGE
 
-
#
 
-
 
-
 
-
 
-
 
=== Linux PC ===
=== Linux PC ===
-
 
-
Install [[User:Agge/Updating the firmware/rev2/install_flasher|Flasher]]
 
'''see "Some notes:  2." below!'''
'''see "Some notes:  2." below!'''
Line 151: Line 79:
# Unplug the USB cable if present, and switch off the device.  
# Unplug the USB cable if present, and switch off the device.  
-
If you are flashing both the Rootfs(Combined) and eMMC(Vanilla) on a N900 please see the [[#Flashing the eMMC in the N900|Flashing the eMMC in the N900]] 
+
# If you installed the '''.deb''' version, run:<pre>sudo flasher-3.5 -F <firmware-image> -f</pre>If you are using the '''.tar.gz package''', use:<pre>sudo ./flasher-3.5 -F <firmware-image> -f</pre>
-
 
+
-
# If you installed the '''.deb''' version, run:<pre>sudo flasher-3.5 -F <Combined-firmware-image> -f</pre>If you are using the '''.tar.gz package''', use:<pre>sudo ./flasher-3.5 -F <Combined-firmware-image> -f</pre>
+
# It will say:<br /><pre>Suitable USB device not found, waiting</pre>
# It will say:<br /><pre>Suitable USB device not found, waiting</pre>
#* '''N900''': While holding the '''u''' key, connect the N900 to your computer via USB. Wait until you see a dim screen on your N900 with a Nokia logo in the middle of your screen with an USB icon in the top right corner. Note: You may not need to hold the U key - it seems to automatically flash if the flasher is ready at boot time.
#* '''N900''': While holding the '''u''' key, connect the N900 to your computer via USB. Wait until you see a dim screen on your N900 with a Nokia logo in the middle of your screen with an USB icon in the top right corner. Note: You may not need to hold the U key - it seems to automatically flash if the flasher is ready at boot time.
Line 162: Line 88:
'''Some notes''':
'''Some notes''':
-
For errors see [[User:Agge/Updating the firmware/rev2/flasher_errors|Flasher errors]]
+
For errors see [[Updating_the_firmware/rev2_flasher_errors|Flasher errors]]
=== Mac OS X ===
=== Mac OS X ===
-
Install [[User:Agge/Updating the firmware/rev2/install_flasher#MAC OS X|flashing software]]
+
Install [[Updating_the_firmware/rev2_install_flasher#MAC OS X|flashing software]]
There are two methods for flashing the device on OS X, using the GUI, with the 770Flasher application or using the console, much like the Linux flashing method. ''Both methods work fine for both the 770 and the N800/N810.''
There are two methods for flashing the device on OS X, using the GUI, with the 770Flasher application or using the console, much like the Linux flashing method. ''Both methods work fine for both the 770 and the N800/N810.''
Line 294: Line 220:
flasher3.5.exe -F <firmware-image> --flash-only=kernel -f -R
flasher3.5.exe -F <firmware-image> --flash-only=kernel -f -R
</pre>
</pre>
-
 
-
 
=== Flashing the eMMC in the N900 ===
=== Flashing the eMMC in the N900 ===
Line 401: Line 325:
You can show the list of packages that are not going to be ugraded with <code>apt-get update && apt-get upgrade</code>. In that case, you can try using <code>apt-get dist-upgrade</code> command (as root, the app manager has to be shut down) to override. '''This is not supported because you can break future updates. Several users had to reflash after apt-get dist-upgrade!'''.
You can show the list of packages that are not going to be ugraded with <code>apt-get update && apt-get upgrade</code>. In that case, you can try using <code>apt-get dist-upgrade</code> command (as root, the app manager has to be shut down) to override. '''This is not supported because you can break future updates. Several users had to reflash after apt-get dist-upgrade!'''.
-
== [[User:Agge/Updating the firmware/rev2/Trubleshooting|Troubleshooting]] ==
+
== Troubleshooting ==
 +
 
 +
* '''Make sure your battery is (completely) charged!''' Flashing will fail when battery is too low, and battery will not charge if your system does not boot up correctly. You can find yourself trapped in a deadlock, when flashing fails due to battery depleting during flashing! '''If your device does not enter and stay in flashing mode (NOKIA + USB-icon on screen) despite you holding the "U" key while plugging it in to charger/PC, then battery is too low'''. If your device does not boot to a proper system, then you usually have to find a way to [http://europe.nokia.com/find-products/accessories/all-accessories/power/batteries/nokia-battery-bl-5j/compatibility charge battery externally] - a bootlooping or stalled boot will '''not charge''' battery! So better completely charge your battery prior to any attempt to flash the device.
 +
* If you get a "Permission denied" error and have access to a linux box, then <pre>chmod +x flasher-2.0</pre> or <pre>chmod +x flasher-3.0</pre> or actually <pre>chmod +x flasher-3.5 </pre> nowadays to make the flasher tool executable. You may also need root permissions, run command with sudo or su to root. (Tip: If your flash only gets to 19% then produces "Permission denied,"  try the "global" version of the image file instead. The US version has produced this problem.)
 +
* If you need to flash your Nokia 770 with an image from 2005 then use the [http://tablets-dev.nokia.com/d3.php older flasher] called "flasher" with no number in the name
 +
* If you get "Error claiming USB interface: Device or resource busy" error, make sure you run the flasher with sudo. If this does not fix the problem, as root, run <pre>modprobe -r cdc_phonet</pre>
 +
 
 +
* If flashing stops with "Write failed after 1048576 bytes usb_bulk_write: Resource temporarily unavailable", do not disconnect your N900 from usb and try again the flasher command.
 +
* If you cannot establish a connection with N900, or got any other problems during starting or completing the flashing process, do the following steps which describe '''the complete foolproof flashing procedure''' again in terse form: ''(use a Linux machine to flash! Windows isn't really backed up with much support from community, for obvious reasons.)''
 +
*# blacklist cdc_phonet (echo "blacklist cdc_phonet" >/etc/modprobe.d/00-blacklist-cdcphonet.conf)! Run modprobe -r cdc_phonet, if it does NOT throw error, there was a module to remove -> bad.
 +
*#(try to) Turn off the device - if nothing else helps, holding power key for >8s is the ultimate means (except next point 2.) to do this.
 +
*#Remove the battery - even if you were not able to shut device down in 2.
 +
*#Start flasher with above mentioned command to flash (without -R, it's a useless convenience thing). It says "Suitable device not found... waiting"
 +
*#Plug the device to computer with a good USB cable.
 +
*#Insert battery while holding "u" key. You can release the key as soon as screen turns on and shows the USB logo. Flashing shall start automatically. ''(If flasher answers "unable to enumerate USB buses!" as soon as N900 gets battery, just re-issue same flasher cmd immediately - cursor-up helps ;-D). If flasher doesn't detect the device, a Ctrl+C abort and re-issuing of the flasher command may help''
 +
*#Check for correct diagnostic output of flasher, as quoted above. After flashing has finished, remove battery ->(2.) 3.)
 +
*#Repeat same procedure ((1.b modprobe) 2. - 7. INCL remove battery!) for each image to flash (sequence: eMMC first, then rootfs - some mess on rootfs may break eMMC flashing and require sequence rootfs eMMC rootfs again). ''So far this procedure always worked, given your PC side has no problems. Many known problems on PC side - esp "waits forever" / "doesn't find N900" - get fixed with a reboot *immediately prior* to doing the flashing.''
 +
*#After flashing unplug your device from PC prior to first boot. First boot can take several minutes, and screen may turn dark during that. You may try lock-slider switch, but '''do not power down''' device during first boot, until it finally finished - I.E. do not touch power button after flashing, unless you're *sure* device hasn't already started to boot. Usually device will power down when unplugged from PC in flashing mode, you can tell this from white LED fading out, not even any dim backlight, and device not reacting to lockslider and kbd-open. Power it up from battery then, using the power button. ''Only then'' plugging in the wallcharger is a good idea. Make sure device charges and recharge battery while you're at it. After battery got fully charged again, it's probably safe to switch off your N900, as first boot setup should have finished.
 +
 
 +
* After re flashing if the sim is not detected (symbol of the sim card with a red slash across near battery meter) make sure that you have downloaded  the proper [http://tablets-dev.nokia.com/nokia_N900.php Firmware Download] (.bin) file for your region. If you have downloaded another .bin from some other region the sim may not be detected.
 +
 
 +
===Flashed but still getting only "5 white dots going back and forth"===
 +
 +
This can be caused by various problems. Known problems are:
 +
* If boot finds a corrupted FAT32, it may decide to run fsck against it, which may take like hours to complete.
 +
* System is trying to run corrupted ~/.profile file with wrong commands which interrupt complete boot.
 +
 
 +
Solution can be to use rescueOS: http://talk.maemo.org/showthread.php?t=75369 , which can help you to mount rootfs, home (mount /dev/mmcblk0p2 /mnt/free1) and edit files or "do other useful rescue stuff".
 +
 
 +
===USB===
 +
 
 +
It may help to connect directly to the computer USB ports, avoiding the use of a hub - which includes the USB ports on laptop docking stations.  The USB ports in the back of a laptop may also be better than using those in the front.
 +
 
 +
Some distributions do not present the USB device in the way that it expects it.  First, see if it is necessary to "mount" USB:
 +
 
 +
mount -t usbfs usbfs /proc/bus/usb
 +
 
 +
If that does not work, try patching the ''flasher'' code.  This replaces the use of <code>/proc/bus/usb</code> with the newer <code>/dev/bus/usb</code> filesystem:
-
See [[User:Agge/Updating the firmware/rev2/Trubleshooting|Troubleshooting]]
+
perl -pi -e 's-/proc/bus/usb-/dev/bus/usb\000-;' -i.backup $FLASHER
-
== Reference ==
+
Replace <code>$FLASHER</code> with the path to your flasher-2.0 or flasher-3.0 Linux binary.
[[Category:Users]]
[[Category:Users]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: