maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Android] Android source is out now! (https://talk.maemo.org/showthread.php?t=24458)

Johnx 2008-10-21 16:09

[Android] Android source is out now!
 
The Android source is out now. Looks pretty darn complete.

Hit the link for more info:
http://source.android.com/

/me goes back to digging through release notes.

perverztata 2008-10-21 17:08

Re: Android source is out now!
 
now we only need to find a way to compile dalvik in maemo sdk.
dunno how compatible the Android.mk with Makefile

Johnx 2008-10-21 17:16

Re: Android source is out now!
 
@perverztata: Not quite that simple. Android uses a whole different libc, and expects certain kernel features to be available as well. Also it uses the framebuffer directly instead of going through X like maemo does. This isn't just a quick "recompile & package" job. There will be some real porting necessary.

-John

perverztata 2008-10-21 17:30

Re: Android source is out now!
 
that's sad! I've already started the make job :)
> LANG=en_US make -f Android.mk
dx/Android.mk:16: /base_rules.mk: No such file or directory
dx/Android.mk:33: /base_rules.mk: No such file or directory
dx/Android.mk:50: /base_rules.mk: No such file or directory
dx/Android.mk:65: /src/Android.mk: No such file or directory
find: `*/src/main/java': No such file or directory
find: `*/src/test/java': No such file or directory
libcore/Android.mk:98: *** No native code defined for libcore. Stop.

cyrus 2008-10-21 18:47

Re: Android source is out now!
 
Anyone played around with this yet? I am trying to setup my environment (following the instructions on the google site). However I am stuck pretty early.

I run:

repo init -u git://android.kernel.org/platform/manifest.git

At which point I get

Code:

Traceback (most recent call last):
  File "/home/cyrus/development/mydroid/.repo/repo/main.py", line 198, in <module>
    _Main(sys.argv[1:])
  File "/home/cyrus/development/mydroid/.repo/repo/main.py", line 184, in _Main
    repo._Run(argv)
  File "/home/cyrus/development/mydroid/.repo/repo/main.py", line 94, in _Run
    cmd.Execute(copts, cargs)
  File "/home/cyrus/development/mydroid/.repo/repo/subcmds/init.py", line 189, in Execute
    self._ConfigureUser()
  File "/home/cyrus/development/mydroid/.repo/repo/subcmds/init.py", line 143, in _ConfigureUser
    self._PromptKey('Your Name', 'user.name', mp.UserName)
  File "/home/cyrus/development/mydroid/.repo/repo/project.py", line 202, in UserName
    self._LoadUserIdentity()
  File "/home/cyrus/development/mydroid/.repo/repo/project.py", line 215, in _LoadUserIdentity
    u = self.bare_git.var('GIT_COMMITTER_IDENT')
  File "/home/cyrus/development/mydroid/.repo/repo/project.py", line 1024, in runner
    p.stderr))
error.GitError: manifests var:
*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident  <cyrus@cyrus.(none)> not allowed

So I run the git config --global cyrus.drive@gmail.com "cyrus.drive@gmail.com".

Then I try to re-run the

repo init -u git://android.kernel.org/platform/manifest.git

But it complains that .repo already exists. If I delete .repo and re-run yet again I am gack to the fatal: empty ident error.

Thanks

Twyst 2008-10-21 20:03

Re: Android source is out now!
 
Does this mean we'll finally have a bootable android OS?

fpp 2008-10-21 20:39

Re: Android source is out now!
 
I hope so, if only to bring out my good old Zaurus C760 out of retirement at last :-)

perverztata 2008-10-21 20:44

Re: Android source is out now!
 
I hope I'll get the new android apps on my n800 with maemo. Dalvik MUST BE PORTED! :)
who is interested in starting a new port? (although I'm not really familiar with framebuffer and stuff...)

memson 2008-10-22 21:13

Re: Android source is out now!
 
Quote:

Originally Posted by cyrus (Post 235437)
So I run the git config --global cyrus.drive@gmail.com "cyrus.drive@gmail.com".

no..

git config --global user.email "cyrus.drive@gmail.com"
git config --global user.name "Cyrus Drive"

cyrus 2008-10-23 01:49

Re: Android source is out now!
 
Quote:

Originally Posted by memson (Post 235825)
no..

git config --global user.email "cyrus.drive@gmail.com"
git config --global user.name "Cyrus Drive"

Thanks. I figured that out. Geez I am stupid.

cyrus 2008-10-26 19:47

Re: Android source is out now!
 
Anyone working on porting this to the N810? Maybe we want to get a working group together?

gerbick 2008-10-26 20:25

Re: Android source is out now!
 
I'd love this for my N810... and my 770.

But I don't know halfway enough... I can spell Android. That count?

meizirkki 2008-10-26 20:28

Re: Android source is out now!
 
I might be optimistic here (yes, i am one of those who thinks everything is possible for you guys:) )

Can android be run without chroot, like boot to it? I dont know much about android...

cyrus 2008-10-26 23:04

Re: Android source is out now!
 
Quote:

Originally Posted by meizirkki (Post 236809)
I might be optimistic here (yes, i am one of those who thinks everything is possible for you guys:) )

Can android be run without chroot, like boot to it? I dont know much about android...

Yes it can.

Since the source code is out now, this is how I understand it.

First, we need to port over the Android specific kernel patches to the N810 kernel. I don't think there is an automated way to do this, just a manual process.

Then we have to port over the system utils, bootloader, etc. And flash it onto the N810.

b-man 2008-10-27 00:53

Re: Android source is out now!
 
Don't forget the android-runtime ~ That's a fairly important component that allows android to run on/use the hardware it's running on without a host os such as maemo. ;)

UPDATE: There could be problems porting certain components such as OpenGL | ES, since we don't have acsess to 3d drivers :(

johnquix 2008-10-27 02:20

Re: Android source is out now!
 
I am dieing for this to happen I would love to do it to my N800 and maybe my 770

Thesandlord 2008-10-27 03:09

Re: Android source is out now!
 
Instead of porting ALL of android, maybe a WINE like thing that would allow it to run on top of Maemo? That would bee cool

b-man 2008-10-27 23:31

Re: Android source is out now!
 
You could try porting the sdk, but that might be unrealistic, since it was created to run on only x86 arcitectures.

cyrus 2008-10-28 16:53

Re: Android source is out now!
 
Quote:

Originally Posted by b-man (Post 236849)
Don't forget the android-runtime ~ That's a fairly important component that allows android to run on/use the hardware it's running on without a host os such as maemo. ;)

UPDATE: There could be problems porting certain components such as OpenGL | ES, since we don't have acsess to 3d drivers :(

Are you saying that we don't have access to the 3d drivers cause they are closed sourced by Nokia, or that the video card in the n810 doesn't support OpenGL?

meizirkki 2008-10-28 17:27

Re: Android source is out now!
 
There is one thing, that i always do.
I am trying out things even if i know that they will not work :D , yesterday, i tried to start android 0.9 :)

I made image file, exrated android 0.9 rootfs into it, installed the old android .deb . and tried to run, and guess what? It DID N0T work. Surprise! :D At least i had fun. init says "Segmentation Fault"

b-man 2008-10-29 00:27

Re: Android source is out now!
 
Quote:

Originally Posted by cyrus (Post 237343)
Are you saying that we don't have access to the 3d drivers cause they are closed sourced by Nokia, or that the video card in the n810 doesn't support OpenGL?

Possibly.... both, the problem is not closed-sorce drivers, it's the lack of drivers. the current tablets use the OMAP2 prosesor, and unfortunately, there are no "safe" GPU drivers available for us to use. And that reason is mainly because even though Nokia may have drivers available, theas drivers are verry unstable and therefore Nokia feels that the drivers shuld remain closed.

However, acording to Nokia, when the new maemo 5 SDK (OS2009) release comes out thay will be implimenting 3D excelleration, witch is possibly going to be powered by OpenGL 2.0. However, unfortunately we might not be able to use this feature because Nokia's "next gen" tablet will be using a OMAP3 and unfortunately current N8xx devices will be no longer supported by Nokia because of this. :(


More information about Maemo 5 can be found here.

meizirkki 2008-10-29 13:35

Re: Android source is out now!
 
Is the opengl really needed. since zaurus can run it? Or does the zaurus have video card that supports opengl?

b-man 2008-10-30 02:24

Re: Android source is out now!
 
I believe, if i am correct, that the zaurus does support opengl. (i don't have a lot of background knowledge about the zaurus)

Although, i've ben doing a little more research with android and i've found that opengl support is not really needed. It is mostly there for high-end android games and special desktop effects. So this might still be a possiblity, however, we will still need to reverce-enginner the ccurrent android kernel if this is to be possible. Since the current sdk functions quite differently from our current android install.

Johnx 2008-10-30 05:27

Re: Android source is out now!
 
The Zaurus does not have hardware accelerated OpenGL.

cyrus 2008-10-30 15:49

Re: Android source is out now!
 
Quote:

Originally Posted by b-man (Post 237776)
I believe, if i am correct, that the zaurus does support opengl. (i don't have a lot of background knowledge about the zaurus)

Although, i've ben doing a little more research with android and i've found that opengl support is not really needed. It is mostly there for high-end android games and special desktop effects. So this might still be a possiblity, however, we will still need to reverce-enginner the ccurrent android kernel if this is to be possible. Since the current sdk functions quite differently from our current android install.

This is what I am trying to work on now. Here is my procedure, maybe someone can correct me if my thinking is incorrect.

First, Android is running off a 2.6.25 kernel. Diablo, as far as I know runs on 2.6.21.

So here are my steps

1) download the diablo kernel source
2) download a stock 2.6.21 kernel
3) apply the OMAP patches to the stock 2.6.21 kernel (available from here: http://www.muru.com/linux/omap/)
4) diff this kernel with the diablo kernel source in order to pick up any additional changes done by Nokia
5) download a stock 2.6.25 kernel and apply the OMAP patches
6) port the patch obtained from step 4 over to the stock 2.6.25 + OMAP patches kernel

Once that is complete we should have a 2.6.25 kernel that can run on the N810.

Now the Android part:

1) diff the stock 2.6.25 kernel with the Android kernel to get the Android changes
2) apply this patch to the kernel obtained above

After that we should have everything we need for the kernel right? Then we just have to work on the harder stuff, like the bootloader, system tools, etc.

perverztata 2008-10-30 20:34

Re: Android source is out now!
 
the only thing we have to port (i think) is dalvik. dalvik is the java vm of the android environment. who need the android ui? we only need the great apps which will be released to android to run on maemo.

so as I mentioned before: Port dalvik we must! :)

b-man 2008-10-30 21:59

Re: Android source is out now!
 
I don't think that would even be practice because Maemo and Android are built on totally different frameworks. Since Android uses the framebuffer, Maemo could not support eny Android applications because Maemo uses the X window system and X server and doesn't support framebuffer.
Basicly, even if we could get this vm running, we would still have magor problems with synking the app's ui to maemo's ui since maemo doesn't support framebuffer... Unless there is some kind of special interpreter that we could use that converts framebuffer ui instructions into X server instructions.

johnkzin 2008-10-30 23:24

Re: Android source is out now!
 
Quote:

Originally Posted by b-man (Post 238031)
I don't think that would even be practice because Maemo and Android are built on totally different frameworks. Since Android uses the framebuffer, Maemo could not support eny Android applications because Maemo uses the X window system and X server and doesn't support framebuffer.
in simpler words, it would be allmost impossible to achieve.

Presumably, porting dalvik would include creating "a version of Dalvik that draws in an X pane instead of directly to the framebuffer" (which would actually be a useful thing for other platforms, as well).

Once you've ported dalvik, you've got all of the Android apps. That's all you really need, isn't it?

b-man 2008-10-30 23:54

Re: Android source is out now!
 
I just updated my post to include that idia right before you posted! LOL

qole 2008-11-01 02:49

Re: Android source is out now!
 
Theoretically, you could get dalvik to write to the framebuffer on the n8x0 too. lcuk does it with his nifty liqbase app, and his code is all open source, so the porter could use his code to do it.

qole 2008-11-01 02:56

Re: Android source is out now!
 
Quote:

Originally Posted by cyrus (Post 237928)
...
4) diff this kernel with the diablo kernel source in order to pick up any additional changes done by Nokia
5) download a stock 2.6.25 kernel and apply the OMAP patches
6) port the patch obtained from step 4 over to the stock 2.6.25 + OMAP patches kernel

Once that is complete we should have a 2.6.25 kernel that can run on the N810.

Now the Android part:

1) diff the stock 2.6.25 kernel with the Android kernel to get the Android changes
2) apply this patch to the kernel obtained above

After that we should have everything we need for the kernel right?

I would be very interested in the 2.6.25 kernel with Nokia patches.

But I'd be surprised if your task was as easy as you think it is; for example, what do you do if the same code has been modified by both Nokia and Google? Whose code do you take?

jzencovich 2008-11-01 03:09

Re: Android source is out now!
 
I'd be interested in collaborating, perhaps starting a project.

I've been going through the patches, lots of work.... but I'm sure it's doable.

johnkzin 2008-11-01 03:45

Re: Android source is out now!
 
Quote:

Originally Posted by qole (Post 238347)
Theoretically, you could get dalvik to write to the framebuffer on the n8x0 too.

In theory, yes. But, in my opinion, it'd be much more valuable to port it to display on X, than to have it write directly to yet another specific piece of hardware.

Displaying to X would probably be valuable to all X windows compatible platforms (other linuxes and unixes, even Macs, which have an X add-on ... and maybe even Windows, if there's X add-ons for that).

Benson 2008-11-01 04:05

Re: Android source is out now!
 
Quote:

Originally Posted by johnkzin (Post 238364)
In theory, yes. But, in my opinion, it'd be much more valuable to port it to display on X, than to have it write directly to yet another specific piece of hardware.

Displaying to X would probably be valuable to all X windows compatible platforms (other linuxes and unixes, even Macs, which have an X add-on ... and maybe even Windows, if there's X add-ons for that).

I agree with you that X11 is the better target, but I'd point out that lcuk's work does not use standalone framebuffer access, but XV; such a port to XV would be more broadly applicable than N8x0 only.

And yes, both my NT boxes are running X servers. Cygwin's the only thing that makes sitting in front of NT all day bearable.

cyrus 2008-11-01 04:56

Re: Android source is out now!
 
Quote:

Originally Posted by qole (Post 238351)
I would be very interested in the 2.6.25 kernel with Nokia patches.

But I'd be surprised if your task was as easy as you think it is; for example, what do you do if the same code has been modified by both Nokia and Google? Whose code do you take?

I never said it was easy. I was just outlining what steps I thought needed to be done.

qole 2008-11-01 06:50

Re: Android source is out now!
 
I'm so very much out of my depth here; but I'm looking forward to seeing what the True Coders here can do... Like I said, I'd be very interested in the half-way point, the new kernel with the Nokia patches applied. I can see all sorts of reasons why that might be very very valuable, not least of which is that, if I were Nokia, and I were developing a new OS for a new, powerful platform I was building, I'd probably start with a newer kernel. And it seems to me that having that newer kernel also running on older Nokia devices might be a step in the right direction to backporting some, if not all, of the new OS (especially important, low level stuff) to the older devices...

meizirkki 2008-11-30 13:08

Re: Android source is out now!
 
Is there a kernel already for the new android? :)


All times are GMT. The time now is 00:39.

vBulletin® Version 3.8.8