N900-install
From NITDroid
Warning: Outdated, Please use the automatic installation procedure
The whole installation can be done on the N900 it self, I suggest to read the instructions carefully then open up the browser on your N900 and browse to this page and copy paste commands from each box into the terminal. If you do not copy paste you might do a type o that can ruin your system.
Contents |
Step 1: Partitioning
To be able to install the "sudo gainroot" command you need to install a package called rootsh from the application manager first!
1. Open up the xTerm and become root with this command:
sudo gainroot
2. First un mount the microsd card
umount /dev/mmcblk1p1
3. For this step you need to know the capacity of your memory card. The Android partition can only be 2GB, so you need to create a FAT partition that is so large there will only be 2GB left. The number must be in MB, example some recommended sizes are 1, 100, 2100, 6100, 14100, 30100. If its 8GB you can choose a number like 6100MB, if its 4GB you can choose a number like 2100MB. If your memory card is 2GB or below, you can choose 1MB as a number If you do not do this correctly you will not be able to use Android Market!
sfdisk -uM /dev/mmcblk1 << EOF
,<YOUR NUMBER IN MB>,C
,,L
,,
,,
EOF
4. Unmount microsd again as maemo sometimes tried to mount
umount /dev/mmcblk1p1
5. The actual formating!
mkdosfs /dev/mmcblk1p1
mke2fs -L NITDroid -j -m0 /dev/mmcblk1p2
Step 2: Installation
Before you begin you need to add the extras devel repository like this: http://wiki.maemo.org/Extras-devel#How_to_activate_Extras-devel then install some packages using this command:
apt-get -y install wget bzip2 rootsh nano kexec-tools
1. Download and install Multiboot
wget http://downloads.nitdroid.com/multiboot-extras_0.1_armel.deb
wget http://downloads.nitdroid.com/multiboot_0.2.5_armel.deb
dpkg -i multiboot*.deb
Now you need to add a menu entry for Nitdroid in multiboot
cd /etc/multiboot.d
cat > NITdroid-2.6.28.NIT.05.item << EOF
ITEM_NAME="NITdroid on MMCp2 - 2.6.28.NIT.05"
ITEM_KERNEL=2.6.28.NIT.05
ITEM_MODULES=ext3 fat vfat
ITEM_DEVICE=\${EXT_CARD}p2
ITEM_FSTYPE=ext3
ITEM_FSOPTIONS=rw,noatime,errors=remount-ro,commit=3
EOF
If you are using nano/leafpad/etc to create the menu item omit the backslash from ITEM_DEVICE, ie. it becomes ITEM_DEVICE=${EXT_CARD}p2!
2. Download and install nitdroid
mkdir -p /and
mount -o noatime,rw /dev/mmcblk1p2 /and
cd /home/user/MyDocs
wget http://downloads.nitdroid.com/nitinstaller/Packages/NITDroid-N900-the-flying-world.tbz2
rm -rf /and/*
bzcat NITDroid-N900-the-flying-world.tbz2 | tar xvC /and
3. Installing the nitdroid kernel
wget http://downloads.nitdroid.com/nitdroid-kernel-2.6.28-05_final1_armel.deb
dpkg -i nitdroid*deb
4. Getting Bluetooth to work
Thanks to ramoncio for your easy to use perl command
btid=`sysinfo-tool -g /certs/npc/esn/bt_id`
perl -pi -e "s/0cddef0a0e6d/$btid/g" /and/system/bin/load_modules.sh
5. unmount the /and partition:
cd /
umount /and
Tips & tricks
Feel free to add to this section.
Install .apk-files automatically
Copy the apk to /system/app and android will install it on next boot (maybe need to change the owner with "chown 1000:1000 xyz.apk")
Remove/Change Boot-Animation
Remove/Change the file /system/media/bootanimation.zip
Updating an existing android
There is no guaranteed way to updated an existing android,
you should reformat the ext3-partition and extract the new tar-archive.
WARNING: Format will delete all existing files! And be sure to format the right partition!
Using NITdroid
At the moment the proximity sensor (a barely visible round object on the left side of the touch screen) works as the Android menu button, the lock/unlock button on the right side of the phone works as a back button and the camera key functions as the home button.

