View Single Post
Posts: 208 | Thanked: 17 times | Joined on Jan 2010 @ Belgium
#938
Originally Posted by El_Poochino View Post
Worked like a charm, thanks. Must of been looking at ubuntu (fark knows what I mounted).

To try and give back now. Check for errors and if it's OK copy-paste it to nitdroid.com if it's required. Just mashed up all the guides in this thread. So none of this is mine.

Dual boot Maemo and Android.

You Need:
N900
microSD card (min 1GB)
Nokia microUSB to USB cable
PC with linux distro or liveCD
NITDroid rootfs and kernel (post 1)
Flasher http://wiki.maemo.org/Documentation/...mo_Flasher-3.5

Step one. Set up dual boot. On the N900 (by kingoddball)

1) Add extras devel repositry to your app manager. From maemo wiki.



http://wiki.maemo.org/Extras-devel

2)Find and install bootmenu-n900

http://maemo.org/packages/view/bootmenu-n900/

3)Install nano. Open terminal and type.

Code:
sudo apt-get install nano
and type y when prompted.

4) Setup boot config. In terminal type.
Code:
 "root"
cd .. 
cd ..
cd etc/bootmenu.d

nano android.etc.item
Using nano create the following.

Code:
ITEM_NAME="Android (external SD, partition 2)"
ITEM_ID="android3"
ITEM_DEVICE="${EXT_CARD}p2"
ITEM_MODULES="mbcache jbd ext3 fat vfat"
ITEM_FSTYPE="ext3"
ITEM_FSOPTIONS="noatime"
Confirm it wrote the file (ctrl+o in nano) by typing ls.

Step 2. Setup SD card (by DJsteve) On PC

1) ID microSD card. In terminal use "dmesg". Look at the end of the long message. If using SD reader should show up by itself or if using N900 you should see a note of the N900 and it's main memory and your card. Will be in the form of sd* where * is a letter

2) Format microSD card. Type the following into terminal.
Code:
fdisk /dev/sdb <press return>
o <press return>
n <press return>
p <press return>
1 <press return>
<press return>
+xM <press return> (x is the size of the partition in MB, a formality and not used by android so make it small asy 100)
t <press return>
c <press return>
n <press return>
p <press return>
2 <press return>
<press enter>
<press enter>
w <press return>

sudo mkdosfs /dev/sd*1
sudo mke2fs -j /dev/sd*2 -m0
Again where * is the letter from 1). This can be done in gparted if you wish.

3) Unpack Android. In terminal.

Code:
mount /dev/sd*2 /mnt <press return>
cd /mnt <press return>
sudo tar xjvvpf *type NITDroid .tbz2 location here* <press return>
To find the location of tbz2 file, find it, right click -> properties and it's location will be in one of the tabs. ie if on usb it will be /media/disk/NITDroid.tbz2

Once done, unmount.

Code:
cd <press return>
umount /mnt <press return>
Step 3. Flash Kernel. (By DJSteve). On PC.

1) Insert microSD card into N900 if you need to.

2)Install flasher (if required). Download flasher .deb package. In terminal type.

Code:
dpkg -i *type loaction of .deb package here* <press return>
3)Turn off the N900 if it is on then hold the 'u' key as you insert the usb cable (or reinsert). Nokia logo and USB logo should appear. Leave the keyboard open.

4) On the PC in terminal type.

Code:
flasher-3.5 --enable-rd-mode --set-rd-flags=no-lifeguard-reset,no-ext-wd -f -k *type loaction if zImage kernel downloaded here* -R <press return>
Same as with step two for the location of the kernel. Look at the N900. If everything is working then should see the boot menu, select Android and sit back and wait. Initial boot can take a long time.


Hey,

if i do dmesg i see a lot of info but no memory card. How do you see on your phone what the mem card is with this code dmesg????