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)

Netweaver 2010-05-14 11:56

Re: [Android] NITDroid V2 Development Topic
 
Hi dj_steve,
I've just send money for a few -or more, depending where you go- cocktails your way.

Thanks for the hard work you're putting in, having choice is great !

Geert

dj_steve 2010-05-15 12:29

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Mullins (Post 658175)
The first page is a bit out of date with regard to the N900 progress that has been made.

The N900 guide there is referring to another guys earlier work.

reason nothing has been updated for n900 is because i have not released any files yet, none of the items i have working at the moment is hwat i believe is user usable yet, yes the os boots and runs etc but nothing useful works (bluetooth/wifi/gsm/sound etc) so basicly all you can do ias brose the os and not use anything - hence mostly useless

shaahin_flamenco 2010-05-16 03:40

Re: [Android] NITDroid V2 Development Topic
 
Hey guys,
I'm a bit of a newb here. I could partition my memory card to those 4 formats described in the instructions, but after that i don't know how to mount/unmount one partition as the root. Can someone plz write a more detailed instruction as how to do that? one last question, am i going to lose my Maemo 5 OS on my phone or i'll be able to run both OSs by rebooting?

tobylee 2010-05-16 04:24

Re: [Android] NITDroid V2 Development Topic
 
Awesome work so far, if I had the knowledge I'd help, If I had the money I'd donate, but I spent all my money on this phone!

I have a few questions though, how much time are you putting in to this project and do you think you'll ever give up before you have a fully working version (or version that has everything you were able to port)

i cant believe you are the only person working on this, surely there must be someone else out there with the knowledge who wants to help

ArnimS 2010-05-16 09:51

Re: [Android] NITDroid V2 Development Topic
 
I don't want to run Google's piece of sh*t kernel.

I want to see android apps, and whatever stupid-*** vm they use, running ON MAEMO. One click install.

This should be worth about 10 million euro to Nokia ...

dj_steve 2010-05-16 10:34

Re: [Android] NITDroid V2 Development Topic
 
arnimS. as i believe you will find has beensaid previous in this thread or one of the others on android the dalvik VM/android apps are so heavily reliant on the kernel modules they use that it would be hard if not near impossible to back engineer them to actually work

twoboxen 2010-05-16 12:48

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by ArnimS (Post 660579)
I don't want to run Google's piece of sh*t kernel.

I want to see android apps, and whatever stupid-*** vm they use, running ON MAEMO. One click install.

This should be worth about 10 million euro to Nokia ...

Quit *****ing and start making it work, then.

dj_steve 2010-05-16 12:57

Re: [Android] NITDroid V2 Development Topic
 
ok quick update here since ive had some progress this morning :)

bluetooth now works (well it can scan for devices etc so seems to work - my speaker system has died so cant test much)

battery reporting works via adb but android still wont see it - working on that as i type

Optln 2010-05-16 14:02

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 659538)
reason nothing has been updated for n900 is because i have not released any files yet, none of the items i have working at the moment is hwat i believe is user usable yet, yes the os boots and runs etc but nothing useful works (bluetooth/wifi/gsm/sound etc) so basicly all you can do ias brose the os and not use anything - hence mostly useless

But some people, (including me) likes to browse the OS :) So, in what phase do you plan to release it?(like "when sound works", or "when gsm works"...).

And is there a danger to damage the battery with Android, as there's a closed source battery management driver in maemo if I remember correctly?

dj_steve 2010-05-16 14:07

Re: [Android] NITDroid V2 Development Topic
 
this seems to be a common misconception about maemo5 + battery monitoring.

the BME in mamemo only controlls charging from what i can tell, its basicly a software control for what the n900s internal hardware battery charger can do (ref: http://wiki.maemo.org/N900_Software_BME - read the part about stopping BME) the charging system will work fine without any intervention from the userspace hardware, because that battery charger chip allows basic safe charging, (and also allows charging from totally dead battery without the os needing to boot)

and release will be when i have some form of network connectivity be it gsm or wifi

nielsvg 2010-05-16 14:51

Re: [Android] NITDroid V2 Development Topic
 
can someone make an app so we can easily install android for testing?

dj_steve 2010-05-16 15:06

Re: [Android] NITDroid V2 Development Topic
 
no such thing as easy yet really, especiallym with the hack ive done to get bt running for the moment

dj_steve 2010-05-16 16:58

Re: [Android] NITDroid V2 Development Topic
 
just for those of you asking i am going to release a rootfs/kernel tonight. (within next few hours) and a install howto.

PLEASE BE AWARE THIS ROOTFS IS BASIC AND ALOT OF THINGS DO NOT WORK - YOU HAVE BEEN WARNED

Flynx 2010-05-16 17:11

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 661050)
just for those of you asking i am going to release a rootfs/kernel tonight. (within next few hours) and a install howto.

PLEASE BE AWARE THIS ROOTFS IS BASIC AND ALOT OF THINGS DO NOT WORK - YOU HAVE BEEN WARNED

Thanks dj_steve, the more people we get up to speed and working on this, the faster we will have something awesome :D

dj_steve 2010-05-16 17:12

Re: [Android] NITDroid V2 Development Topic
 
well im uploading rootfs as i type. so ill be posting details soon

dj_steve 2010-05-16 17:45

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

Flynx 2010-05-16 17:59

Re: [Android] NITDroid V2 Development Topic
 
In work...

dj_steve 2010-05-16 18:02

Re: [Android] NITDroid V2 Development Topic
 
pardon me. ........

titi974 2010-05-16 18:32

Re: [Android] NITDroid V2 Development Topic
 
hmm gonna test but will the kernel work even if i've the leaked pr1.2 ?? (and my oc ??)

dj_steve 2010-05-16 18:36

Re: [Android] NITDroid V2 Development Topic
 
it should as it doesn touch maemo at all

titi974 2010-05-16 18:41

Re: [Android] NITDroid V2 Development Topic
 
yess but kernel speaking ^^
i mean, maemo pr1.2 leaked will still work with that kernel ?

dj_steve 2010-05-16 18:45

Re: [Android] NITDroid V2 Development Topic
 
well ive had it on mine and gone back so i doubt its going to be prob.

plaban 2010-05-16 18:46

Re: [Android] NITDroid V2 Development Topic
 
post some screenshots please

dj_steve 2010-05-16 18:48

Re: [Android] NITDroid V2 Development Topic
 
theirs a video on my youtube showin it. not much changed from that really except bluetooth works

MohammadAG 2010-05-16 18:51

Re: [Android] NITDroid V2 Development Topic
 
Code:

Kernel panic - not syncing: No init found. Try passing init= option to kernel

dj_steve 2010-05-16 18:52

Re: [Android] NITDroid V2 Development Topic
 
hmmz doesnt do that here, is microsd in and back cover on (it wont boot otherwise

also check the files have extracted to root of microsd not into folder

MohammadAG 2010-05-16 18:52

Re: [Android] NITDroid V2 Development Topic
 
Yep, back cover is on (I never removed it to begin with).

Edit: oh, good call, I'll check in a bit.

MohammadAG 2010-05-16 19:03

Re: [Android] NITDroid V2 Development Topic
 
Well... maemo isn't booting up now for some reason.
Could be because of titan's kernel.

titi974 2010-05-16 19:22

Re: [Android] NITDroid V2 Development Topic
 
hmmm question : when i arrive here
fdisk /dev/sdb
o
n
p
1
<press return>

then i see firsl cylinder (1-1018,default 1) :

if i press return nothing's happening !

dj_steve 2010-05-16 19:24

Re: [Android] NITDroid V2 Development Topic
 
just type 1 then press enter then, just pressing enter works for me

dj_steve 2010-05-16 19:24

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by MohammadAG (Post 661247)
Well... maemo isn't booting up now for some reason.
Could be because of titan's kernel.

flash back to maemo lkernel, my kernel its hardcoded to only boot to sd and not touch maemo at the moment *edits howto to mention that*

Heman1310 2010-05-16 19:47

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 661274)
flash back to maemo lkernel, my kernel its hardcoded to only boot to sd and not touch maemo at the moment *edits howto to mention that*

Where do I find the original maemo kernel?? My device Isn't turning on. Its in R&D mode.

dj_steve 2010-05-16 19:49

Re: [Android] NITDroid V2 Development Topic
 
if you have a copy of the original 1.1.1 flash file just run this :

Code:

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

MohammadAG 2010-05-16 19:51

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 661274)
flash back to maemo lkernel, my kernel its hardcoded to only boot to sd and not touch maemo at the moment *edits howto to mention that*

Yes I did that, and it's stuck at the 5 bubbles. Same with titan's kernel.
I'm thinking it's because my rcS-late is edited (to mount the ext3 card).
I'll see where I can get with this.

dj_steve 2010-05-16 19:52

Re: [Android] NITDroid V2 Development Topic
 
thats not my kernel then lol

Heman1310 2010-05-16 19:58

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 661312)
if you have a copy of the original 1.1.1 flash file just run this :

Code:

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

I get this error:USB device found found at bus 002, device address 022.
Error claiming USB interface: Operation not permitted

dj_steve 2010-05-16 19:59

Re: [Android] NITDroid V2 Development Topic
 
what os are you on ? try rmmod cdc_phonet first

MohammadAG 2010-05-16 19:59

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Heman1310 (Post 661324)
I get this error:USB device found found at bus 002, device address 022.
Error claiming USB interface: Operation not permitted

sudo is your friend (and enemy sometimes)

Heman1310 2010-05-16 20:00

Re: [Android] NITDroid V2 Development Topic
 
Ok silly me, just noticed I wasn't running as root :D

Heman1310 2010-05-16 20:06

Re: [Android] NITDroid V2 Development Topic
 
And now I have booted up android on my N900. And this is awesome :D


All times are GMT. The time now is 19:13.

vBulletin® Version 3.8.8