Skip to content

Instantly share code, notes, and snippets.

@Danrancan
Forked from glennzw/flasher_n900.sh
Last active January 6, 2023 08:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danrancan/08b9c33f6e1bf9a37ca129777eb68d63 to your computer and use it in GitHub Desktop.
Save Danrancan/08b9c33f6e1bf9a37ca129777eb68d63 to your computer and use it in GitHub Desktop.
Automated flashing of nokia n900 to latest (nokia) maemo5 for debian
#!/bin/bash
#glenn@sensepost.com
# This script will flash your N900. It assumes you want to use the MAEMO 5 GLOBAL RELEASE.
# Based on trying to understand http://wiki.maemo.org/Updating_the_tablet_firmware#N900
set -e
echo "[[ Glenn's Maemo Flasher: glenn@sensepost.com / @glennzw for comments ]]"
type flasher-3.5 >/dev/null 2>&1 || { echo >&2 "I require flasher but it's not installed. Install from http://www.fladnag.net/downloads/telephone/n900/tools/
Once you have done that, you must enable i386 package in your debian based distro by entering the following command in a seperate termianl window ....
sudo dpkg --add-architecture i386" ;exit 1; }
if [ ! -f RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin ]; then
echo "[+] Downloading the global release version of RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin..."
wget http://web.archive.org/web/20131117073524/http://skeiron.org/tablets-dev/nokia_N900/RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin
fi
if [ ! -f RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin ]; then
echo "[+] Downloading RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin..."
wget http://web.archive.org/web/20131117073524/http://skeiron.org/tablets-dev/nokia_N900/RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin
fi
echo "[-] Let's Flash your phone. Make sure phone is unplugged and off."
echo "[+] Press a key to continue, wait 10 seconds, and then plug phone in whilst holding the 'u' key."
read foo
flasher-3.5 -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin -f -R
echo "[+] Remove and replace phone battery"
echo "[+] Press a key to continue, wait 10 seconds, and then plug phone in, whilst holding the 'u' key."
read foo
flasher-3.5 -F RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin -f
echo "[+] Remove and replace phone battery"
echo "[+] Press a key to continue, wait 10 seconds, and then plug phone in, whilst holding the 'u' key."
read foo
flasher-3.5 -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin -f -R
echo "[+] Done. Boot phone normally."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment