maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Android] Another Android port: NITdroid (https://talk.maemo.org/showthread.php?t=25410)

Thesandlord 2008-12-21 02:09

Re: Another Android port: NITdroid
 
The backlight turns off, but the screen is still on.

Also, android apps are written in JAVA and interpreted by the emulator. So any Linux, Mac, or Windows environment is equally as good.

Ok, to unable USB disk mode, plug in the USB, then drag the notification pane down (the place with the time, WiFi, etc...), and click the option to unmount the SD card. Not sure how to remount it though!

Bundyo 2008-12-21 07:51

Re: Another Android port: NITdroid
 
I'm with 64bit openSUSE 11.1 and have two scratchbox 1 (diablo and fremantle) and one scratchbox 2 setup... :) You need to install 1 from source and use alien on 2 though :)

Bundyo 2008-12-21 09:58

Re: Another Android port: NITdroid
 
Okay guys, managed to get the MMC driver working - at least to start booting Android... Now I have to get it to stop rebooting after a while. USB works but after i run a logcat it disconnects and refuses to run again. Strange, maybe the bus speed.

fpp 2008-12-21 10:46

Re: Another Android port: NITdroid
 
Wow, sounds like quite the uphill battle ! Thanks for your efforts !

kender 2008-12-21 12:16

Re: Another Android port: NITdroid
 
By the way, I think somebody said it before but, cookies in the browser don't seem to work. ADB doesn't show any error about it, they seem to be enabled in Settings and I also checked the xml file just in case. Everything seems alright

Bundyo 2008-12-21 15:44

Re: Another Android port: NITdroid
 
Boots now. Only the powersaving works after that but it boots. I'll try to tune the keypad and touchscreen now.

EDIT: Touchscreen works but is inverted on both axes and slightly bigger. Android is working quite fast but unusable at this stage. :( I like the onscreen keyboard in Cupcake.

Crap. This USB/adb problem with cupcake is really getting on my nerves. Can't connect with adb to the device and can't progress because of that. Any ideas? Tried the udev rule but it doesn't work :(

chyang 2008-12-21 16:34

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by kender (Post 251425)
By the way, I think somebody said it before but, cookies in the browser don't seem to work. ADB doesn't show any error about it, they seem to be enabled in Settings and I also checked the xml file just in case. Everything seems alright

I have observed google reader complains that cookie is disabled, while the settings showed it's enabled, and tried to disable and then re-enable, neither works.

chyang 2008-12-21 16:45

Re: Another Android port: NITdroid
 
just tried the OTG, it successfully connected to my Sandisk Cruzer U3 :)
Cool. :)

DeeJay_XB 2008-12-21 19:05

Re: Another Android port: NITdroid
 
wlan not working (tested with and without stlc45xx-cal-0.1.2 on sd\partition1) :(

meizirkki 2008-12-21 19:29

Re: Another Android port: NITdroid
 
it doesn't work even if you set essid manually??

Bundyo 2008-12-21 19:35

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by DeeJay_XB (Post 251497)
wlan not working (tested with and without stlc45xx-cal-0.1.2 on sd\partition1) :(

Not working on which device?

DeeJay_XB 2008-12-21 20:54

Re: Another Android port: NITdroid
 
on n800!
not working even if i set ssid manually!!

Thesandlord 2008-12-21 22:07

Re: Another Android port: NITdroid
 
You have to backup your settings from a previous Android install, and push it using ADB to the correct area. It has been said before in the forum. This release brakes the WiFi scanning...

maxkilla 2008-12-22 01:13

Re: Another Android port: NITdroid
 
how do i get a screen shot..and screen shot apps out there?

Bundyo 2008-12-22 01:19

Re: Another Android port: NITdroid
 
Okay guys, too late here so I'm posting my current progress.

http://www.bundyo.org/maemo/nitdroid...id_770.tar.bz2

Kernel and omap-keypad.kl in the archive. Use the last userspace from Solca. The kernel will run, but is still unstable - freezes from time to time, probably due to low memory. I'll see if i can get any swap there. Solca, why do we need phone and voice dialer in the user space? :) The phone is a service and takes memory too.

omap-keypad.kl goes to /system/usr/keylayout if you want to at least unlock the 770 :)

Forgot to say - no wifi yet, since the driver is different.

EDIT: Its quite unstable yet, don't expect miracles... :)

Tu13es 2008-12-22 02:14

Re: Another Android port: NITdroid
 
NITdroid newb here.

Engadget posted about this and it caught my eye. I've dug out my N800 which has been unused for about 8 months.

Is the best way to start by using the instructions at http://guug.org/nit/nitdroid/ ?

jakemaheu 2008-12-22 02:25

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Tu13es (Post 251616)
NITdroid newb here.

Engadget posted about this and it caught my eye. I've dug out my N800 which has been unused for about 8 months.

Is the best way to start by using the instructions at http://guug.org/nit/nitdroid/ ?

Read: http://www.internettablettalk.com/fo...d.php?p=251617

I just put together a guide.

cyrus 2008-12-22 04:22

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 251608)
Okay guys, too late here so I'm posting my current progress.

http://www.bundyo.org/maemo/nitdroid...id_770.tar.bz2

Kernel and omap-keypad.kl in the archive. Use the last userspace from Solca. The kernel will run, but is still unstable - freezes from time to time, probably due to low memory. I'll see if i can get any swap there. Solca, why do we need phone and voice dialer in the user space? :) The phone is a service and takes memory too.

omap-keypad.kl goes to /system/usr/keylayout if you want to at least unlock the 770 :)

Forgot to say - no wifi yet, since the driver is different.

Is your kernel based of off solca's or did you start from scratch?

skyshard 2008-12-22 04:59

Re: Another Android port: NITdroid
 
flashed my n810 to the latest debug kernel and userspace, and put the stlc45xx-cal-0.1.2 on /sdcard

like others have reported, scanning for networks fails, but manually inputting the information works.

adb doesn't work for me ("adb devices" lists nothing), but connecting by usb successfully exports /sdcard

for some reason, the soft keyboard crashes constantly, so i've disabled it

Bundyo 2008-12-22 06:25

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by cyrus (Post 251627)
Is your kernel based of off solca's or did you start from scratch?

Both... :)

I started from a clean linux omap kernel from git with Solca's patches applied on it, but since OMAP1 and 2 don't have much in common you can say that i'm using only the Android related ones :)

The 1GB Kingston RS-MMC wasn't initializing properly and i had to patch the kernel - consulting with the old 2.6.16 support with fanoush's 48MHz patch applied on it. This probably means that the oldest MMC cards won't work, but you can't put Android in 16 or 64MB anyway. At least it will be fast. That left only two problems at the end - wrong voltage and the EXT_CSD couldn't be read, which were hard to find without debugging (i only had the FB console on my 770, didn't want to solder anything :)

The touchscreen was inverted on two axes - i used Solca's formula there slightly modified + the old 2.6.16 ls041y3 touch panel filter (not sure if that was needed, but added it anyway :)).

That was all i think if we don't count the kernel configuration which is a PITA by itself :). I'll post the patches one of these days.

Bundyo 2008-12-22 06:37

Re: Another Android port: NITdroid
 
I can safely say now that the freezing is low-memory based - left my 770 working all night on stand-by and found it working in the morning. I'm using software watchdog (which judging from dmesg is not working :), because the OMAP one restarts the device too often.

You can minimize the restarts by limiting the number of running processes in Android. BTW if your adb disconnects often - probably was killed for memory :) After that you need to reconnect the cable, then kill the adb server and start it anew.

solca 2008-12-22 06:48

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 251649)
I can safely say now that the freezing is low-memory based - left my 770 working all night on stand-by and found it working in the morning. I'm using software watchdog (which judging from dmesg is not working :), because the OMAP one restarts the device too often.

You can minimize the restarts by limiting the number of running processes in Android. BTW if your adb disconnects often - probably was killed for memory :) After that you need to reconnect the cable, then kill the adb server and start it anew.

Do you compile in CONFIG_LOW_MEMORY_KILLER=y kernel option? That will make Android kill uneeded apps when low on memory.

Will try to compile out uneeded software for the next release as you suggested (phone services to start).

Bundyo 2008-12-22 07:09

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by solca (Post 251652)
Do you compile in CONFIG_LOW_MEMORY_KILLER=y kernel option? That will make Android kill uneeded apps when low on memory.

Will try to compile out uneeded software for the next release as you suggested (phone services to start).

Yes, but seems its not enough :(

Yep, Camera is just a stub too... :)

Thesandlord 2008-12-22 07:25

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 251655)
Yep, Camera is just a stub too... :)

Hopefully not forever!

I can't find out why it is not scanning the WiFi.

It just says

CTRL-EVENT-SCAN-RESULTS Ready

over and over...

WiFi works, and it seems to be trying to scan, but nothing is happening. And it auto connects to predefined access points, but can't find new ones.

fpp 2008-12-22 07:43

Re: Another Android port: NITdroid
 
Camera will certainly stay a stub on the 770 :-)

Bundyo, impressive reverse-engineering work !
That almost makes one sympathise with Nokia dropping the platform after OS2006 :-)

Bundyo 2008-12-22 08:11

Re: Another Android port: NITdroid
 
Heh, that's not reverse-engineering :) But thanks anyway :)

pycage 2008-12-22 09:19

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 251649)
I can safely say now that the freezing is low-memory based

This actually surprises me a bit. Isn't the G1 a 64 MB machine just like the 770?

Bundyo 2008-12-22 11:08

Re: Another Android port: NITdroid
 
http://www.gsmarena.com/t_mobile_g1-2533.php

192MB RAM...

mrp 2008-12-22 11:11

Re: Another Android port: NITdroid
 
Bundyo, thanks for the great work so far!

anidel 2008-12-22 13:05

Re: Another Android port: NITdroid
 
Does the Calendar app work for you guys ?

cyrus 2008-12-22 16:23

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 251647)
Both... :)

I started from a clean linux omap kernel from git with Solca's patches applied on it, but since OMAP1 and 2 don't have much in common you can say that i'm using only the Android related ones :)

What is the difference between OMAP1 and OMAP2?

soap 2008-12-22 17:18

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by cyrus (Post 251744)
What is the difference between OMAP1 and OMAP2?

Shorthand for OMAP1710 vs OMAP2420
http://en.wikipedia.org/wiki/Texas_Instruments_OMAP
Note the OMAP2 series used in the N8x0 has a different ARM core than the OMAP1 series used in the N770. ARM11 vs ARM9 in this case which is a bit confusing as ARM11 chips have a 6th generation architecture while this ARM9 has a 5th gen one.

cyrus 2008-12-22 18:37

Re: Another Android port: NITdroid
 
Sound support? Anyone have this working at all. I finally got the SD card issue worked out but when I run the media player it doesn't list anything under the Songs.

jakemaheu 2008-12-22 18:55

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by cyrus (Post 251785)
Sound support? Anyone have this working at all. I finally got the SD card issue worked out but when I run the media player it doesn't list anything under the Songs.

There currently isn't any sound support for any of the tablets. The driver needs to be ported and recompiled into the most recent kernel. We also need to make the DSP work in NITdroid.

EDIT: Someone should contact Fanoush, the best kernel hacker EVAR.

jogorman 2008-12-22 23:30

Re: Another Android port: NITdroid
 
Just an update. I am still having issues with cookies not working. I got a chance to hook up logcat while trying to log into various web services. No output is captured. I also tried to disable then re-enable cookies while attached to logcat, and nothing was reported there either, which I found curious with how verbose this can be.

If there is any debugging that would be useful, please let me know.

Code:

D/InputManagerService(  723): hide the small icon for the input method
I/ActivityManager(  723): Starting activity: Intent { comp={com.android.browser/com.android.browser.BrowserPreferencesPage} }
D/InputManagerService(  723): hide the small icon for the input method
W/InputManagerService(  723): Ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@436d31b8
I/ActivityManager(  723): Displayed activity com.android.browser/.BrowserPreferencesPage: 1127 ms
W/ActivityManager(  723): Duplicate finish request for HistoryRecord{436d1830 {com.android.browser/com.android.browser.BrowserPreferencesPage}}
I/ActivityManager(  723): moveTaskToBack: 4


Chinpokomon 2008-12-23 06:47

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by jakemaheu (Post 251793)
EDIT: Someone should contact Fanoush, the best kernel hacker EVAR.

Heck, if only so I can easily dual boot OS2006 and NITdroid.

Chinpokomon 2008-12-23 06:53

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 251608)
Okay guys, too late here so I'm posting my current progress.

http://www.bundyo.org/maemo/nitdroid...id_770.tar.bz2

Since my 770 has been sitting quitely on the shelf for a few months, I thought this would be a great project to commit it to... just how long does the droid flash before booting into Android? I'd love to report back how things go with this, assuming that something catastrophic has happened and I haven't successfully installed anything, how were you reading the dmesg on startup. Is there a boot parameter you can pass to hide the splash screen?

Thanks in advance and I hope my experimentation results will be useful to you.

Bundyo 2008-12-23 07:01

Re: Another Android port: NITdroid
 
You should have adb while the android is flashing. Open a shell and try a logcat.

Chinpokomon 2008-12-23 07:10

Re: Another Android port: NITdroid
 
Another reboot and it worked... Looks a little like a phone I used to have, (and will soon replace with an ADP1)... But yeah, a bit unstable. Still would like to know how I can help you out here. If this is cupcake, we should be able to get the OSK working.

Chinpokomon 2008-12-23 07:18

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 251933)
You should have adb while the android is flashing. Open a shell and try a logcat.

Ok cool, like working with the emulator or a G1... I'll see if I can find time over the holidays to really dig into this. The work so far really looks like it is paying off. Looks great on this screen!


All times are GMT. The time now is 23:18.

vBulletin® Version 3.8.8