Nitdroid easy install on EMMC

(Clean Installing of NITDroid)
m (Reverted edits by 186.232.118.214 (Talk) to last revision by sixwheeledbeast)
(34 intermediate revisions not shown)
Line 1: Line 1:
{{danger}}
{{danger}}
{{ambox|text='''Under heavy construction'''}}
{{ambox|text='''Under heavy construction'''}}
-
Original Talk Maemo thread:
 
-
http://talk.maemo.org/showpost.php?p=887394&postcount=1
+
 
 +
 
 +
[http://wiki.maemo.org/NITDroid_Port#Links NITDroid Port]
Line 19: Line 20:
===Method 1===
===Method 1===
-
NOTE: It is highly recomended that you flash the modded 8GB 20GB eMMC image. Nitdroid won't recognize/use/install anything if you have low memory in mmcblk0p2.
+
NOTE: It is highly [http://wiki.maemo.org/NITDroid_FAQ#My_memory_for_apps_is_getting_low.2C_what_can_I_do.3F recomended that you flash the modded 8GB 20GB eMMC image]. Nitdroid won't recognize/use/install anything if you have low memory in mmcblk0p2.
-
====Clean Installing of NITDroid====
+
NOTE on Note: there are other - probably better - ways to increase your /home partition's size.
-
# Download the archive + the kernel to /MyDocs i.e. root dir. of N900:
+
1. Download the NITDroid Autoinstaller to ./MyDocs i.e. root directory of N900 and install it:
-
#* Image: http://downloads.nitdroid.com/e-yes/
+
-
#* Kernel: http://downloads.nitdroid.com/e-yes/nitdroid-kernel-2.6.28-07_rc4_armel.deb
+
-
# Enable all repositories from App manager ([[Extras-testing]], [[Extras-devel]], [[Extras]] and the default [[User:Jebba/Repositories#Nokia_Official|Nokia repos]])
+
-
----
+
-
<ol>
+
http://talk.maemo.org/attachment.php?attachmentid=22707&d=1316433657
-
<li>
+
-
Install [http://maemo.org/downloads/product/Maemo5/leafpad Leafpad] from the App manager and make sure that you have [[root access]]
+
-
</li>
+
-
<li>
+
-
Close App manager, open [[terminal|X Terminal]] and execute the following commands:
+
-
<pre>
+
-
root
+
-
apt-get update
+
-
apt-get install nitdroid-installer
+
-
y
+
-
y again if it asks again.
+
-
</pre>
+
-
</li>
+
-
<li>
+
-
After the [http://maemo.org/packages/view/nitdroid-installer/ nitdroid-installer] package is installed, close X Terminal, but do '''NOT''' run the installer you have just downloaded.
+
-
</li>
+
-
<li>
+
-
Open X Terminal, and execute the following commands:
+
-
<pre>
+
-
root
+
-
cd /home/user/MyDocs
+
-
bzip2 -d nitdroidarchivename.tar.bz2
+
-
</pre>
+
-
(You can only uncompress the file once. So only do this step once!)
+
-
<li>
+
-
Open X Terminal (or use the same xterm as you used for the previous step), and execute the following commands:
+
-
<pre>
+
-
cd /home
+
-
mkdir /and
+
-
cd /
+
-
mount /home /and
+
-
cd /and
+
-
tar xvf /home/user/MyDocs/nitdroidarchivename.tar
+
-
dpkg -i /home/user/MyDocs/nitdroid-kernel-2.6.28-07_rc4_armel.deb
+
-
</pre>
+
-
</li>
+
-
<li>
+
-
Edit the boot file:
+
-
<pre>leafpad /etc/multiboot.d/11-NITDroid-mmcblk0p2-2.6.28.NIT.06.item</pre>
+
-
(then tap the tab button, .item file will show, hit enter to open it in Leafpad).<BR><BR>Edit <code>ITEM_DEVICE</code> in the file according to this:
+
-
<ul>
+
-
<li>
+
-
If you have an MMC (micro SD card) plugged in your N900, change <code>ITEM_DEVICE</code> to this:
+
-
<pre>
+
-
ITEM_DEVICE=${INT_CARD}p2
+
-
</pre>
+
-
</li>
+
-
<li>
+
-
If you don't have an MMC plugged in your N900, change <code>ITEM_DEVICE</code> to this:
+
-
<pre>
+
-
ITEM_DEVICE=mmcblk0p2
+
-
</pre>
+
-
</li>
+
-
</ul>
+
-
</li>
+
-
<li>
+
-
Once editing is complete click the drop down menu on Leafpad and save then close Leafpad.
+
-
</li>
+
-
<li>
+
-
Close X Terminal, reboot N900 and type ‘2’ for NITDroid.
+
-
<BR><BR>You can now start using Nitdroid</li>
+
-
</ol>
+
-
===Upgrading from Previous Versions of NITDroid===
+
2. Run the NITDroid installer app from your programs list.
-
Note: CLEAN INSTALL IS HIGHLY RECOMMENDED. You have been warned.
+
(If installation fails, try writing "apt-get install bzip2" in XTerminal and  uninstall and install again)
-
# Download the image + the kernel to /MyDocs i.e. root dir. of N900:
+
===Method 2===
-
#* Image: http://downloads.nitdroid.com/e-yes/
+
-
#* Kernel: http://downloads.nitdroid.com/e-yes/nitdroid-kernel-2.6.28-07_rc4_armel.deb
+
-
----
+
-
<ol>
+
-
Open X Terminal, and execute the following commands:
+
-
<pre>
+
-
root
+
-
cd /home/user/MyDocs
+
-
bzip2 -d Nitdroidarchivename.tar.bz2
+
-
cd /
+
-
mount /home /and
+
-
cd /and
+
-
tar xvf /home/user/MyDocs/Nitdroidarchivename.tar
+
-
dpkg -i /home/user/MyDocs/nitdroid-kernel-2.6.28-07_rc4_armel.deb
+
-
</pre>
+
-
</ol>
+
-
 
+
-
 
+
-
'''Reference Installation Videos''':
+
-
<ol>
+
-
Reference installation video:
+
-
http://www.youtube.com/watch?v=Bm6spW5yadk
+
-
</ol>
+
-
<ol>
+
-
Reference installation video (version 2, using N11 "Vostok"):
+
-
http://www.youtube.com/watch?v=uMHxo1ALXNE
+
-
</ol>
+
-
 
+
-
==Method 2==
+
As said before, this requires a brain and a bit of concentration, follow step-by-step, and use some logic.
As said before, this requires a brain and a bit of concentration, follow step-by-step, and use some logic.
Line 133: Line 39:
#* Image: http://downloads.nitdroid.com/e-yes/
#* Image: http://downloads.nitdroid.com/e-yes/
#* Kernel: http://downloads.nitdroid.com/e-yes/nitdroid-kernel-2.6.28-07_rc4_armel.deb
#* Kernel: http://downloads.nitdroid.com/e-yes/nitdroid-kernel-2.6.28-07_rc4_armel.deb
-
#* Fdisk: http://ftp.de.debian.org/debian/pool/main/u/util-linux/util-linux_2.13.1.1-1_armel.deb
+
#* Fdisk: http://ftp.de.debian.org/debian-archive/debian/pool/main/u/util-linux/util-linux_2.13.1.1-1_armel.deb
# Enable all repositories from App manager ([[Extras-testing]], [[Extras-devel]], [[Extras]] and the default [[User:Jebba/Repositories#Nokia_Official|Nokia repos]])
# Enable all repositories from App manager ([[Extras-testing]], [[Extras-devel]], [[Extras]] and the default [[User:Jebba/Repositories#Nokia_Official|Nokia repos]])
----
----
Line 217: Line 123:
</li>
</li>
<li>
<li>
-
After the reboot, return ./MyDocs back and format the new NITDroid partition by executing these:
+
Ignore any errors. After the reboot, return ./MyDocs back and format the new NITDroid partition by executing these:
<pre>
<pre>
root
root
Line 225: Line 131:
0c
0c
w
w
 +
umount /dev/mmcblk0p1
mkfs.vfat -F 32 /dev/mmcblk0p1
mkfs.vfat -F 32 /dev/mmcblk0p1
mke2fs -L NITDroid -j -m0 /dev/mmcblk0p5
mke2fs -L NITDroid -j -m0 /dev/mmcblk0p5
Line 243: Line 150:
reboot
reboot
</pre>
</pre>
-
</ol>
 
-
== Uninstalling NITDroid ==
+
 
-
=== Method 1 ===
+
<li>
-
Open X Terminal and type the following commands:
+
==== Trouble Booting NITDroid ====
-
<ol>
+
 
 +
 
 +
If you cannot boot into NITDroid because of an error like this one:
 +
 
 +
"Root Filesystem mmcblk1p5 missing"
 +
Guru Meditation 0000025...etc
 +
 
 +
 
 +
Try following:
 +
 
 +
Edit /etc/multiboot.d/11-NITDroid-mmcblk0p5-*.item with an editor of your choice (eg. nano).
<pre>
<pre>
-
root
+
apt-get install nano
-
mount /dev/mmcblk0p2 /and -o noatime
+
nano /etc/multiboot.d/11-NITDroid-mmcblk0p5-2.6.28.NIT.07.item  #check filename!
-
nitdroid-uninstaller
+
</pre>
</pre>
-
</ol>
+
 
-
After it completes, using filebox, delete nitdroid's installation folders and files that were copied to home:
+
And change the line ITEM_DEVICE={INT_CARD}p5 to:
-
bin, data, dev, etc (symlink), initrd, lib (symlink), mnt, proc, sbin, sdcard, sys, system, tmp, usr,default.prop, init, init.nokia.rc, init.rc
+
<pre>
 +
ITEM_DEVICE=mmcblk0p5
 +
</pre>
 +
 
 +
reboot with opened keyboard and try to start NITDroid.
 +
</li></ol>
 +
 
 +
== Uninstalling NITDroid ==
 +
=== Method 1 ===
 +
Tap on the NITDroid-Uninstaller on your menu.
=== Method 2 ===
=== Method 2 ===
Line 264: Line 188:
root
root
mount -o noatime,rw /dev/mmcblk0p5
mount -o noatime,rw /dev/mmcblk0p5
-
rm -rf /and/*
+
rm -rf /and/.
</pre>
</pre>
</ol>
</ol>

Revision as of 02:01, 26 May 2014

Image:Ambox_notice.png
Some instructions here may cause serious problems. When unsure, see General precautions
Backing up your data is recommended. In case of trouble you might need to re-flash your device.


Image:Ambox_notice.png
Under heavy construction


NITDroid Port


Contents

Installing NITDroid

This tutorial is specifically designed to install Nitdroid on the internal memory of the N900 (EMMC) and does not apply to installation on an external micro SD card. The main purpose of installing Nitdroid on the internal memory is that in most cases you will see an increased performance.

There are two ways of installing NITDroid:

1. Copy NITDroid's rootfs to /and in /home: Easier - Faster

2. Creating a custom 2GB partition on your eMMC: Cleaner - Requires a brain


Method 1

NOTE: It is highly recomended that you flash the modded 8GB 20GB eMMC image. Nitdroid won't recognize/use/install anything if you have low memory in mmcblk0p2. NOTE on Note: there are other - probably better - ways to increase your /home partition's size.

1. Download the NITDroid Autoinstaller to ./MyDocs i.e. root directory of N900 and install it:

http://talk.maemo.org/attachment.php?attachmentid=22707&d=1316433657

2. Run the NITDroid installer app from your programs list.

(If installation fails, try writing "apt-get install bzip2" in XTerminal and uninstall and install again)

Method 2

As said before, this requires a brain and a bit of concentration, follow step-by-step, and use some logic.

NOTE: This will wipe all of your data, please BACKUP necessary data first.

  1. Download the archive + the kernel + Fdisk to /MyDocs i.e. root dir. of N900:
  2. Enable all repositories from App manager (Extras-testing, Extras-devel, Extras and the default Nokia repos)

  1. Install Fdisk by executing the following commands in Xterminal:
    root
    mkdir -p /home/user/util-linux /home/user/bin
    cp /home/user/MyDocs/util-linux_2.13.1.1-1_armel.deb /home/user/util-linux
    cd /home/user/util-linux
    dpkg-deb -x util-linux_2.13.1.1-1_armel.deb root
    cp root/sbin/fdisk /home/user/bin/
    cd ..
    rm -rf util-linux
    
  2. Unmount designated partition (./MyDocs):
    umount /home/user/MyDocs
    
  3. Launch Fdisk:
    /home/user/bin/fdisk /dev/mmcblk0
    
  4. Print your current partition table:
    p 
    

    This table should show up:

           Device Boot      Start         End      Blocks   Id  System
    /dev/mmcblk0p1               2      884865    28315648    c  W95 FAT32 (LBA)
    /dev/mmcblk0p2          884866      950401     2097152   83  Linux
    /dev/mmcblk0p3          950402      974977      786432   82  Linux swap / Solaris
    
  5. Delete partition 1 (./MyDocs):
    d
    1
    
  6. Create new re-sized primary partition:
    n
    p
    1
    First cylinder: 2
    Last cylinder: 800000
    
  7. Create new extended partition:
    n
    e
    First cylinder: 800001
    Last cylinder: 884865
    n
    First cylinder: 800001
    Last cylinder: 884865
    t
    1
    76
    t
    5
    76
    
  8. Point of no return - writing the table and syncing:
    w
    reboot
    
  9. Ignore any errors. After the reboot, return ./MyDocs back and format the new NITDroid partition by executing these:
    root
    /home/user/bin/fdisk /dev/mmcblk0
    t
    1
    0c
    w
    umount /dev/mmcblk0p1
    mkfs.vfat -F 32 /dev/mmcblk0p1
    mke2fs -L NITDroid -j -m0 /dev/mmcblk0p5
    reboot
    

    If your device still has a flash memory on it, then lift your shoulders up as the hard part is gone!

  10. Install Nitdroid on the new partition:
    apt-get update
    apt-get install nitdroid-installer
    mkdir -p /and
    mount -o noatime,rw /dev/mmcblk0p5 /and
    cd /home/user/MyDocs
    rm -rf /and/*
    bzcat Nitdroidarchivename.tar.bz2 | tar xvC /and
    dpkg -i nitdroid-kernel-2.6.28-07_rc4_armel.deb
    reboot
    


  11. Trouble Booting NITDroid

    If you cannot boot into NITDroid because of an error like this one:

    "Root Filesystem mmcblk1p5 missing" Guru Meditation 0000025...etc


    Try following:

    Edit /etc/multiboot.d/11-NITDroid-mmcblk0p5-*.item with an editor of your choice (eg. nano).

    apt-get install nano
    nano /etc/multiboot.d/11-NITDroid-mmcblk0p5-2.6.28.NIT.07.item  #check filename!
    

    And change the line ITEM_DEVICE={INT_CARD}p5 to:

    ITEM_DEVICE=mmcblk0p5
    

    reboot with opened keyboard and try to start NITDroid.

Uninstalling NITDroid

Method 1

Tap on the NITDroid-Uninstaller on your menu.

Method 2

Open X Terminal and type the following commands:

    root
    mount -o noatime,rw /dev/mmcblk0p5
    rm -rf /and/.
    

Then uninstall multiboot by anyway you prefer.