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)

dj_steve 2010-05-30 10:02

Re: [Android] NITDroid V2 Development Topic
 
cheers flynx and yes thats correct currently theirs no form of conectivity available

theonlymac 2010-05-30 23:38

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Flynx (Post 689351)
I think we're still waiting for either wifi or cellular to work in nitdroid before we see detailed instructions ;)

right now there is no wifi and no cell, and no dual boot. so it isn't very useful and you would have to go through the process of un-installing nitdroid to get back to maemo.

Really? I thought the whole point of installing it onto a memory card, is that then you dont have to un-install it, you can just remove the memory card. So is this not true?
Oh, wait the instructions on the first page are for N8x0.. So does this not work on the N900 at all?! I swear i saw a video somewhere with the N900 running android..

dj_steve 2010-05-30 23:43

Re: [Android] NITDroid V2 Development Topic
 
page 30 your looking for :) but at min it requires flashing a different kernel to boot android due to the way androids systems link to special kernel modules. i have not made a multi boot kernel that works as yet so flashing back and forth is needed but as said not a lot in android works as yet as it is still early development stages (and i am working mostly alone and in my spare time)

jscribble 2010-05-31 05:19

Re: [Android] NITDroid V2 Development Topic
 
I am looking forward to testing on my n810. Let me know if I can do anything helpful on that front.

As a side note, I appreciate everything you are doing, and cannot express how happy I am to hear that someone is pushing the nx0 to future validity again. I almost lost hope! You can count on a paypal donation from me, and I also need to dig through my old am2 systems and see If I have some spare parts for your compiling rig. I might have some ddr2 and maybe a proc (although I think it's a 1.6 single core)

Thank you very, very much.

PradaBrada 2010-06-01 02:25

Re: [Android] NITDroid V2 Development Topic
 
Thanks for all the hard work guys, you rock, looking forward to seeing full Android on N900

nesrazz 2010-06-01 11:46

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 661119)
ok as promised root fs and kernel are up and below is a howto install for n900 users only.

the kernel i have provided here is hard coded to boot direct from device b202 (aka the external microsd) it will not boot maemo in any way at this time

this kernel is patched with titans patchs and is overclock enabled if anyone feels adventourous enough to copy the required filess of their maemo partition to the microsd to try this let me know

requirements
  1. knowledge of how to flash your device
  2. my android rootfs: http://files2.nitdroid.com/nitdroid-....0.1-demo.tbz2
  3. my kernel image: http://files2.nitdroid.com/zimage-nitdroid-0.0.1
  4. 1 microsd card (i'd say min of 1gb, this how-to will show the layout for my 8gb)
  5. some idea how to edit files and run commands via a terminal
  6. linux based pc/vm
  7. (optional but recommended) some sort of ssh server installed in maemo5

how-to:
1. Grab the required files from above.
2. Login to your n900 as root (either xterminal or over ssh (ssh is easier) ) and run the command below:
Code:

sysinfo-tool -g /certs/npc/esn/bt_id
keep a note of the value it returns as you need it further on in this howto
3. Mount your microsd via either n900s usb storage or direct via a card reader (probably faster to do latter) then find out the device node assigned to it on you linux system (dmesg will give you easily enough) then run the following (/dev/sdb is the node the microsd shows as on my system):
Code:

fdisk /dev/sdb
o
n
p
1
<press return>
+2g
t
c
n
p
2
<press enter>
<press enter>
w
q

this should correctly partition your microsd for the next stage
4. Now create filesystems,
Code:

mkdosfs /dev/sdb1
mke2fs -j /dev/sdb2 -m0

5. Once those have ran mount the ext3 partition
Code:

mount /dev/sdb2 /mnt
6. Now navigate to that folder and extract the rootfs (i hope you saved it somewhere you can remember :) )
Code:

cd /mnt
tar xjvvpf ../nitdroid-n900-0.0.1-demo.tbz2

7. Wait patiently for the extract to complete (it takes some time)
8. Once the extraction has completed navigate to the system/bin folder and open the load_modules.sh file in your favourite editor (i use nano)
Code:

cd /mnt/system/bin
nano load_modules.sh

9. Scroll down the file and find the line that starts
echo 0cddef0a0e6d and replace the 0cddef0a0e6d with the text you wrote down in step 2 - this is to enable the bluetooth module to work. Once that is done save and close the file then you can unmount the microsd
Code:

umount /mnt
10. Insert the microsd into your n900 and then power down the device (disconnect charger etc before hand.)
11. Boot your n900 into 'flash' mode (hold u on keyboard as you connect usb cable)
12. Run the following command to flash the kernel to your device
Code:

flasher-3.5 --set-rd-flags=no-ext-wd,no-lifeguard-reset --enable-rd-mode -f -k zimage-nitdroid-0.0.1 -r
adjust the zimage part to give the path to where you saved the file

the device should reboot and begin to start android.

The back cover must be in place or the system will crash


super /

mfsamuel 2010-06-01 18:30

Re: [Android] NITDroid V2 Development Topic
 
does this mean we may have sounds on the n810?

airjaff 2010-06-01 18:49

Re: [Android] NITDroid V2 Development Topic
 
this is promising. how soon will a easy install version of this come out? im a bit scared of doin this! is it posible to have a step by step walk through on youtube or something?it will be another year untill i can get an android fone. want one now! wud b great on n900!

michalurban 2010-06-01 21:17

Re: [Android] NITDroid V2 Development Topic
 
How to return to booting maemo? Using

flasher-3.5 -F pr12image -k -R

???

Flynx 2010-06-01 21:29

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by michalurban (Post 694721)
How to return to booting maemo? Using

flasher-3.5 -F pr12image -k -R

???

Linux is case-sensitive.

Try flasher-3.5 -f -k pr12image -r

Or check the flasher help.

cb22 2010-06-01 21:29

Re: [Android] NITDroid V2 Development Topic
 
There's a way to get the device to just boot a custom kernel once off, as opposed to flashing it. Look under the recommended MeeGo instructions for the N900 and it will give the flasher command there.

M00NB34M 2010-06-01 21:38

Re: [Android] NITDroid V2 Development Topic
 
Hey

You know how you mention on the first page that you got rid of Google apps, does that include Google goggles? Cos having that would be pretty darn awesome, although me having programmed before i know that asking for something like Google goggles may be a VERY tall order! But yeah was just curious :)

Keep up the good work man! Seriously appreciated!

dj_steve 2010-06-01 22:22

Re: [Android] NITDroid V2 Development Topic
 
yep googles would be out to but then since camera doesnt work yet its not exactly useful LOL

michalurban 2010-06-01 22:24

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Flynx (Post 694738)
Linux is case-sensitive.

Try flasher-3.5 -f -k pr12image -r

Or check the flasher help.

Yep, I know its case-sensitive and the switches F and R are allright, I was just curious, how to return to maemo.

So, just reflashing the kernel from pr1.2 gets the job done? I havent installed droid yet ...

dj_steve 2010-06-01 22:26

Re: [Android] NITDroid V2 Development Topic
 
im my case i run the command
Code:

flasher-3.5 --disable-rd-mode -F RX-51.bin --flash-only=kernel -f -R
then once im into maemo i reflash titans kernel by reinstalling the package through apt

mrdally204 2010-06-01 22:35

Re: [Android] NITDroid V2 Development Topic
 
hey steve, hows the 8x0 dev going? what are u currently looking into, and is there any hope for the 2.1 on it or the lack of 3d acceleration putting it in the trash ?

Flynx 2010-06-01 23:44

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by michalurban (Post 694852)

So, just reflashing the kernel from pr1.2 gets the job done? I havent installed droid yet ...

Yes, once you unpack the droid fs onto the sd card you just flash kernels to switch between the two.

mrdally204 2010-06-02 07:07

Re: [Android] NITDroid V2 Development Topic
 
Hey Steve,
Here is a little more motivation to get android working along with the front facing camera :) I received this email from pbxes.com letting me know that SIPDroid now supports video calls :) How sweet technology is!
http://youtube.com/watch?v=PlLZHCHlSY4

e-yes 2010-06-02 14:39

Re: [Android] NITDroid V2 Development Topic
 
Dualboot kernel for Android and Maemo PR 1.2 is... almost stable.

http://newsycat.com/android/n900/zImage
http://newsycat.com/android/n900/tsc2005.ko (put to Android rootfs /system/lib/modules)

Copy all kernel modules (except tsc2005) from maemo to android rootfs.

And run as usual (see notes @ nitdroid.com).

I'll upload new stable rootfs later (tonight or tommorow morning, little busy right now).

http://newsycat.com/android/n900/n900_kernel.patch.gz (modified and cleaned up patch from nitdroid. Don't care about some rejects, it related only to BT/hci).
___

What does I meant by "almost stable"?
You need to remove back cover of n900 to boot Maemo (to disable external SD actually). Some BME troubles happens, and I eventually found this workaround.

Second problem is internal DNS resolver. It doesn't work.
just add external nameserver to /etc/resolv.conf
(i.e 8.8.8.8)

Questions/suggestions? can reach me @ #nitdroid irc channel.

dj_steve 2010-06-02 14:40

Re: [Android] NITDroid V2 Development Topic
 
*plans to check that kernel out :)

michalurban 2010-06-02 20:30

Re: [Android] NITDroid V2 Development Topic
 
to e-yes:

1) "Copy all kernel modules (except tsc2005) from maemo to android rootfs."

You mean from N900 /lib/modules/* to microSD android /system/lib/modules/?

2) http://newsycat.com/android/n900/n900_kernel.patch.gz Where to put this one pls?

3) Am I supposed to use your zImage to flash my device instead of that zimage-something-demo from the guide?

Thanks :)


EDIT: I followed the copied all that stuff from guide to where its supposed to be ... copied the modules, used this new kernel file to flash via the command written in the guide ... and I ended up with "maemo enter pin screen" - but there were squares instead of digits ...

DaSilva 2010-06-02 21:12

Re: [Android] NITDroid V2 Development Topic
 
Does it support WiFi or phone connection?

dj_steve 2010-06-02 21:15

Re: [Android] NITDroid V2 Development Topic
 
michalurban bootmenu is also required along with appropriate item file for android or you get that screen you descrie, and as yet no connectivity it is being worked on

michalurban 2010-06-02 21:41

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 696609)
michalurban bootmenu is also required along with appropriate item file for android or you get that screen you descrie, and as yet no connectivity it is being worked on

Hm, Ive got bootmenu installed (I was trying MER) ...and with droid, I got NO option to choose boot partition from - thats the situation after trying to use the modded kernel allowing "dualboot" - now, I just tried your guide alone and its not booting at all - only the screen with RD icon and nothing more ...

dj_steve 2010-06-02 21:45

Re: [Android] NITDroid V2 Development Topic
 
yea you did leave usb connected when trying my kernel ? ive not tested e-yes kernel yet so cant really help out - ill get him to comeei n here tho :)

michalurban 2010-06-02 21:50

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 696680)
yea you did leave usb connected when trying my kernel ? ive not tested e-yes kernel yet so cant really help out - ill get him to comeei n here tho :)

Nope, I didnt - I remove USB always right after the flasher is finished ... and nothing then, except for Nokia logo and RD logo ...

And e-yes kernel boots up into that squared stuff ... Weird.

dj_steve 2010-06-02 21:51

Re: [Android] NITDroid V2 Development Topic
 
theirs the problem, rd mode (or my kernel not sure which) wont seem to boot without usb connected try connecting it and restarting n900 (pull> reconnect batt and replace cover at same time - challenging but doable

michalurban 2010-06-02 21:53

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 696703)
theirs the problem, rd mode (or my kernel not sure which) wont seem to boot without usb connected try connecting it and restarting n900 (pull> reconnect batt and replace cover at same time - challenging but doable

I go try ... will say what happened :)

EDIT: Now booting up, thanks man! Looking forward to seeing droid on n900! Great job! :)

DaSilva 2010-06-02 22:43

Re: [Android] NITDroid V2 Development Topic
 
btw: Is e-yes now a new member of your great NITDroid project dj_steve and does that mean more progress in less time?
Would be nice :)

6sicSIX 2010-06-03 10:55

Re: [Android] NITDroid V2 Development Topic
 
Hello, I've tried the guide on page 30 of this thread and I cant get fdisk to work :( I ran dmesg, looked for a drive the same size as my MicroSD (16GB) is was node sdd. I ran fdisk /dev/sdd and It justa said could not find /dev/sdd ... I am booting Ubuntiu 10.04 from usb iso using a hacked u3 drive, could this be the problem? Can I set up the MicroSD using Gparted? Any help would be greatly apreciated..

dj_steve 2010-06-03 11:02

Re: [Android] NITDroid V2 Development Topic
 
Yep e-yes is indeed helping where he can

michalurban 2010-06-03 11:24

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by 6sicSIX (Post 697432)
Hello, I've tried the guide on page 30 of this thread and I cant get fdisk to work :( I ran dmesg, looked for a drive the same size as my MicroSD (16GB) is was node sdd. I ran fdisk /dev/sdd and It justa said could not find /dev/sdd ... I am booting Ubuntiu 10.04 from usb iso using a hacked u3 drive, could this be the problem? Can I set up the MicroSD using Gparted? Any help would be greatly apreciated..

I believe you can. Or install and use CFDISK, its in QOLE's repository.

6sicSIX 2010-06-03 11:40

Re: [Android] NITDroid V2 Development Topic
 
Cool thanks, How should it be partitioned? Just a big ext3 partition?

e-yes 2010-06-03 11:53

Re: [Android] NITDroid V2 Development Topic
 
My primary target now is create stable kernel for both Android and Maemo. I'm trying to create minimalistic Android patchset for applying to kernel-omap1 or kernel-power. quilt is very useful in that task.
Current progress:
user@maemo-sdk:~/kernel.power$ quilt files
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/pmem.c
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/alarm.c
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/android/Kconfig
drivers/staging/android/Makefile
drivers/staging/android/binder.c
drivers/staging/android/binder.h
drivers/staging/android/logger.c
drivers/staging/android/logger.h
drivers/staging/android/lowmemorykiller.c
drivers/staging/android/ram_console.c
drivers/staging/android/timed_gpio.c
drivers/staging/android/timed_gpio.h
drivers/staging/android/timed_output.c
drivers/staging/android/timed_output.h
include/linux/android_aid.h
include/linux/android_alarm.h
include/linux/android_pmem.h
include/linux/ashmem.h
init/Kconfig
mm/Makefile
mm/ashmem.c

I plan to test new kernel patch and upload it and rootfs (which I promised upload today. sorry:)) as it will be done.

wifi, sound etc. has to be solved. once primary target will be achieved.

michalurban 2010-06-03 13:26

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by 6sicSIX (Post 697509)
Cool thanks, How should it be partitioned? Just a big ext3 partition?

It depends on the size of your card. Probably best is to make first partition windows and the second linux with at least 1gb free ... in case of my 4gb microsdhc, I divedi it into halfs :)

michalurban 2010-06-03 15:30

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by e-yes (Post 697529)
My primary target now is create stable kernel for both Android and Maemo. I'm trying to create minimalistic Android patchset for applying to kernel-omap1 or kernel-power. quilt is very useful in that task.
Current progress:
user@maemo-sdk:~/kernel.power$ quilt files
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/pmem.c
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/alarm.c
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/android/Kconfig
drivers/staging/android/Makefile
drivers/staging/android/binder.c
drivers/staging/android/binder.h
drivers/staging/android/logger.c
drivers/staging/android/logger.h
drivers/staging/android/lowmemorykiller.c
drivers/staging/android/ram_console.c
drivers/staging/android/timed_gpio.c
drivers/staging/android/timed_gpio.h
drivers/staging/android/timed_output.c
drivers/staging/android/timed_output.h
include/linux/android_aid.h
include/linux/android_alarm.h
include/linux/android_pmem.h
include/linux/ashmem.h
init/Kconfig
mm/Makefile
mm/ashmem.c

I plan to test new kernel patch and upload it and rootfs (which I promised upload today. sorry:)) as it will be done.

wifi, sound etc. has to be solved. once primary target will be achieved.


Hey man, Im impatient as a little brat just before xmas! :D

6sicSIX 2010-06-03 15:41

Re: [Android] NITDroid V2 Development Topic
 
Okay, thanks a lot :) then can I just extract the modified rootfs into it?

michalurban 2010-06-03 15:43

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by 6sicSIX (Post 697898)
Okay, thanks a lot :) then can I just extract the modified rootfs into it?

Yep. BTW Just follow the guide ... :)

airjaff 2010-06-04 09:29

Re: [Android] NITDroid V2 Development Topic
 
hello...is there a youtube tutorial for getting *android on n900?

dj_steve 2010-06-04 09:39

Re: [Android] NITDroid V2 Development Topic
 
no because its not productuin ready yet


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

vBulletin® Version 3.8.8