maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Android] NITDroid V2 Development Topic (https://talk.maemo.org/showthread.php?t=49811)

Reffyyyy 2010-06-12 00:35

Re: [Android] NITDroid V2 Development Topic
 
Works perfectly for me.

kingoddball 2010-06-12 01:08

Re: [Android] NITDroid V2 Development Topic
 
Hi Guys,
I am attempting to install android (newest RootFS).
I am at the part in page 30 where I need to change the BT module number to my own, but it does not seem to be in the newest rootfs load_modules.sh file.. Should I just ignore and move on?

juandp77 2010-06-12 01:26

Re: [Android] NITDroid V2 Development Topic
 
move on dude

kingoddball 2010-06-12 01:37

Re: [Android] NITDroid V2 Development Topic
 
Thanks..

I have a large issue... When I flash my kernel (most current from only a couple of pages back) my phone is stuck on the NOKIA (RD logo) screen. Can not power off, boot or do anything. I CAN flash back to standard (which I have).

Is there any issue that I'm unaware of? I'm SOO close!
I used the same flash command (DJ) Steve gave when he linked to the newest kernel.

I just tried with Steves older kernel (pg 30) and it froze again... What could be wrong with my n900?

Reffyyyy 2010-06-12 01:41

Re: [Android] NITDroid V2 Development Topic
 
On DJ_Steve's newest kernel/rootfs, I have continuous loop on the "android" screen.

Any ideas?

kingoddball 2010-06-12 02:02

Re: [Android] NITDroid V2 Development Topic
 
I have titans kernel installed, but I can't uninstall it because I had to flahs back to standard due to the crashing/freezing kernel.. Could that be why it failed with any of DJ's kernels?

Edit: I can't find remove titans kernel from my device.
Using the deinstal icon fails, using xterm fails....

juandp77 2010-06-12 02:54

Re: [Android] NITDroid V2 Development Topic
 
if you can't boot the phone I recomend that take off the battery then conect the usb to the cpu and the phone , on the n900 press the "u" in keyboard and then put the battery. finally run this comand

flasher-3.5 --disable-rd-mode -f -F RX-51_2009SE_3.2010.02-8_PR_COMBINED_MR0_ARM.bin --flash-only=kernel -R

this will return your phone to normality, from here you can try again

El_Poochino 2010-06-12 02:56

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by hackfanatic (Post 710974)
have you installed bootmenu-n900 from extras-devel and set it up using the given instructions on nitdroid.com

Thanks, that was half the issue. Where and what file do I need to add for the bootmenu to see the android install on the sd card (only gives me internal flash).

Many thanks.

kingoddball 2010-06-12 02:56

Re: [Android] NITDroid V2 Development Topic
 
I have reflashed the phone. I will try again from fresh start.
I knew how to reflash standard kernel. It was just failing with every kernel DJ/eyes released.

juandp77 2010-06-12 03:01

Re: [Android] NITDroid V2 Development Topic
 
maybe you should try the e-yes kernel and roofts, i'm using those and works fine for me

kingoddball 2010-06-12 03:34

Re: [Android] NITDroid V2 Development Topic
 
Dual boot?
I have managed to get it to boot.. Would only boot with kernel 0.0.1.
Oddly enough using 0.0.1, it would only boot android after I REflash the kernel over again.
But it's now dual booting with 0.0.3.

Just need to find a way to turn R&D mode OFF and ON in Maemo! :D

YOU GUY'S A FREAKING AWESOME!!
Do we have an instruction for Android? Like what keys do what?
I had nothing on my desktop for ages.. I pressed a few keys and all these progs popped up.

El_Poochino 2010-06-12 05:41

Re: [Android] NITDroid V2 Development Topic
 
found /./etc/ but didn't find /bootmenu.d/ so created it and the file as per nitdroid.com and still no love. What am I missing for dual boot?

kingoddball 2010-06-12 05:49

Re: [Android] NITDroid V2 Development Topic
 
You're missing the program "Bootmenu".

Hit HAM (package manager) and search for "boot" and you will find a boot menu (in extra's Devel).
bootmenu.d is a location that bootmenu makes.

Bootmenu



Edit: DJ Steve! THIS IS GREAT! I have finally got it running after around 20 kernel flashes and an entire N900 PR1.2 reflash :o
IT IS GREAT!!!!

You have mentioned a few pages back that you are looking for requests:
I have 2:

Overclocking in the kernel for Maemo.

Dualboot without RD mode.
Only asking for the RD mode part because having it running all day is killing my battery, but I would like to boot into Android throughout the day... because it's great (well.. Maemo is better!!).

El_Poochino 2010-06-12 06:18

Re: [Android] NITDroid V2 Development Topic
 
installed bootmenu-n900 through package manager and terminal reinstall, I get the boot menu at startup but can only boot from internal flash and cannot find bootmenu.d for the life of me (except for the folder I made). It's something simple I just can't put my finger on it.

kingoddball 2010-06-12 06:54

Re: [Android] NITDroid V2 Development Topic
 
I can help with this.

first of all.
Open xterm and type: "sudo apt-get install nano" (or vim. I like nano)

Then
Code:

"root"
cd ..
cd ..
cd etc/bootmenu.d

nano android.etc.item

Once in nano type:

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"


Once done (use correct caps and symbols) press (touch screen button) CTRL + X. Press Y. Press Enter.
Done.
Just to varify type "ls".
You will see "android.ext.item"
You can reboot and you will see "Android blah blah blah".
If you have followed all instructions and are in RD mode.. Android should boot (took me over 4 hours today!) I had kernel and OS issues.

nielsvg 2010-06-12 07:03

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 711361)
try dmesg in xterm and check that the n900 mem card is sdb

i did this to find my mem card but i dont find any sdb in this and dont know how the mem card could be named then

El_Poochino 2010-06-12 07:59

Re: [Android] NITDroid V2 Development Topic
 
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.

Quote:

In the Application Manager:

1. Navigate to the application menu (tap the title bar)
2. Select ‘Application catalogs’
3. Select ‘New’
4. Enter a catalog name of ‘Maemo extras-devel’
5. Enter a web address of http://repository.maemo.org/extras-devel
6. Enter a distribution of ‘fremantle’
7. Enter components of ‘free non-free’
8. Select ‘Save’
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.

nielsvg 2010-06-12 08:36

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by El_Poochino (Post 711691)
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????

El_Poochino 2010-06-12 08:43

Re: [Android] NITDroid V2 Development Topic
 
Using PC linux with the n900 connected via mass storage typing dmesg on the pc will produce alot of crap. Down the bottom their should be some messages about device sizes. You should be able to id the sd* which corresponds to you microSD. If your N900 is connected you should see it in this area.

Another way is type sudo gparted and go through the drop box on the top right and find your microSD card (using the capacity) and the drop box should have the sd* of the device. I did this on ubuntu 9.04

Dany-69 2010-06-12 08:47

Re: [Android] NITDroid V2 Development Topic
 
Mmmmm.... but does this command flash the original kernel of maemo on the root ?? o.O

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

MohammadAG 2010-06-12 08:53

Re: [Android] NITDroid V2 Development Topic
 
Wow, a lot of progress since I last came here.
Great work dj_steve!
I'm eager to try this, do you mind sharing the kernel patches, I'm using custom modules so I doubt the zImage is enough, plus I need to apply some other patches to it.

Thanks in advance :)

E: @ Dany-69, the kernel is on its own partition, type cat /proc/mtd to find out which one. I'd suggest not playing with any of the /dev/mtd* partitions (manually / without using flasher), you may screw up your device, permanently.
Anyways, kernel flashing is safe.

nielsvg 2010-06-12 09:22

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by El_Poochino (Post 711724)
Using PC linux with the n900 connected via mass storage typing dmesg on the pc will produce alot of crap. Down the bottom their should be some messages about device sizes. You should be able to id the sd* which corresponds to you microSD. If your N900 is connected you should see it in this area.

Another way is type sudo gparted and go through the drop box on the top right and find your microSD card (using the capacity) and the drop box should have the sd* of the device. I did this on ubuntu 9.04

i have to use the command dmesg on the pc? i did it on my n900 in x terminal?

bonkel 2010-06-12 12:13

Re: [Android] NITDroid V2 Development Topic
 
hmm i cant't install apps or use the camera..
"sd card removed"..
is it my fault or is it a generel problem

dj_steve 2010-06-12 12:30

Re: [Android] NITDroid V2 Development Topic
 
general problem for cam (it doesnt work correctly yet) and sd card will workign in new rootfs

bonkel 2010-06-12 12:37

Re: [Android] NITDroid V2 Development Topic
 
hmm you mean a newer rootfs then this:
NITDroid-0.0.3-Eclair-WiFi.tbz2??

if not, i must format my microSD again

dj_steve 2010-06-12 12:49

Re: [Android] NITDroid V2 Development Topic
 
their will be a newer one than that up later :)

dj_steve 2010-06-12 14:35

Re: [Android] NITDroid V2 Development Topic
 
ok new rootfs is up and linked on first post and page 84. replace current memory content with this

lifenexus 2010-06-12 15:09

Re: [Android] NITDroid V2 Development Topic
 
steve, will disabling rd mode work? whats rd mode required for? has it something to do with the watchdog service?

dj_steve 2010-06-12 15:11

Re: [Android] NITDroid V2 Development Topic
 
disabling r and d will not work - the watchdogs are indeed the reason for it being needed :( if we can find out what watchdogs need pettign we may be able to get by without r&d mode

lifenexus 2010-06-12 15:14

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 712060)
disabling r and d will not work - the watchdogs are indeed the reason for it being needed :( if we can find out what watchdogs need pettign we may be able to get by without r&d mode

thx for the reply.i remember reading once that there is a way to turn off watch dog completely and then disable r n d mode. do you know any thing about this?

dj_steve 2010-06-12 15:16

Re: [Android] NITDroid V2 Development Topic
 
ive not heard of it no. wejust need someone who has an idea of the n900 watchdogs to work out what watchdog is responsible mainly for autoreboot of device when it thinks its dead(ie the watchdog has not been petted in x seconds) so we can pet it on a timer

M00NB34M 2010-06-12 15:38

Re: [Android] NITDroid V2 Development Topic
 
You've made my freakin day!!! Gonna go home (After a good 7hours of revision ;) ) and test this one out :D I was impressed with the 1.6 of this! Cant imagine what 2.1 will be like!! Thanks! seriously you're a legend! And yeah rd mode made me laugh when i first got it and was like...okay? Keyboard looks pretty...but my battery dont think so :P Hehe!!

Quick question though, you got the phone working? I think there was a communication failure with between the phone and the sim, as it wouldnt even detect it :/ Just curious, cos iv already flashed this phone 3 times this week, seeing whether ill have to flash it for the 4th time haha!!

Thanks dj_steve, your efforts are highly appreciated, and ill shove a little donation in there to keep you up and running!!

ToJa92 2010-06-12 15:42

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by MohammadAG (Post 711734)
Wow, a lot of progress since I last came here.
Great work dj_steve!
I'm eager to try this, do you mind sharing the kernel patches, I'm using custom modules so I doubt the zImage is enough, plus I need to apply some other patches to it.

Thanks in advance :)

E: @ Dany-69, the kernel is on its own partition, type cat /proc/mtd to find out which one. I'd suggest not playing with any of the /dev/mtd* partitions (manually / without using flasher), you may screw up your device, permanently.
Anyways, kernel flashing is safe.

Looks like there's some kernel patches at NITDroids site, look here: https://sites.google.com/site/nitdroid/n900-port

No idea if they're up-to-date, or even what you're searching for though.

rahulg247 2010-06-12 19:42

Re: [Android] NITDroid V2 Development Topic
 
I was wondering if appstore works with this new version? Just waiting for installable applications then will attempt a dual-boot.

The progress made really is amazing btw. I have been following this thread and am really excited can't thank DJ Steve and e-yes enough for dedicating their spare time to this project.

nielsvg 2010-06-12 20:10

Re: [Android] NITDroid V2 Development Topic
 
hello dj_steve


when i do fdisk /dev/sda because mine is sda it says it cannot open it. i have my n900 connect in vmware with dsl

dj_steve 2010-06-12 20:46

Re: [Android] NITDroid V2 Development Topic
 
Their is app markets in the new rootfs but not official market as i have said previously it has issues currently

nielsvg 2010-06-12 20:48

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 712466)
Their is app markets in the new rootfs but not official market as i have said previously it has issues currently


hello dj_steve


when i do fdisk /dev/sda because mine is sda it says it cannot open it. i have my n900 connect in vmware with dsl

MohammadAG 2010-06-12 21:16

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by ToJa92 (Post 712075)
Looks like there's some kernel patches at NITDroids site, look here: https://sites.google.com/site/nitdroid/n900-port

No idea if they're up-to-date, or even what you're searching for though.

Nope, 5th of March, that's like... pre.PR1.2 :p

@ dj_steve, so can you share the patches?

nielsvg 2010-06-12 21:37

Re: [Android] NITDroid V2 Development Topic
 
who can help me???

everytime i do the command fdisk /dev/sda it says: unable to open sda

and when i do dmesg it says:

sda: write protect is off but it doesnt work???

dj_steve 2010-06-12 21:53

Re: [Android] NITDroid V2 Development Topic
 
ask e-yes as to patchs the kernel is his not mine


All times are GMT. The time now is 08:50.

vBulletin® Version 3.8.8