Reply
Thread Tools
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#11
Note:

This (http://whiteboard.ping.se/Android/Debian) = running Android system on a Debian chroot itself running on Android kernel might be something cool to do on our N900s (or a laptop, or whatever).
 

The Following User Says Thank You to reinob For This Useful Post:
Posts: 71 | Thanked: 177 times | Joined on Aug 2013
#12
http://logs.nslu2-linux.org/livelogs...o.20131109.txt

< list of Android drivers needed anyone / anywhere?

Including them in kernel-power is no-go, but what about hybrid of nitdroid-kernel and kp.
nitdroid-kernel is on Gitorious.

From here: binder, ashmem, pmem, logger, wakelocks, oom handling?

Last edited by lexik; 2014-03-19 at 13:34.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#13
If you need an Android-kernel on which no Linux will run, then how can you run Android apps on Jolla?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following User Says Thank You to marmistrz For This Useful Post:
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#14
Originally Posted by reinob View Post
doesn't android require a not-really-linux kernel? (or am I still living in the past?)
Android uses a fork of the Linux kernel. It's still very much a Linux kernel and many of their changes have been accepted upstream so things have improved in this regard. Of course the N900 kernel (stock and power) are too old and do not include these upstream changes but freemangordon, pali and others have recent kernels booting on the N900 (not yet complete) so this would be a good starting point for running Android and should require fewer patches.

Originally Posted by DDark View Post
Maybe it's better to run it inside VM. I heard that Xen got ARM support.
Xen on ARM is still experimental but you can forget about running a Xen VM of Android on the N900 with only 256MB RAM.

Originally Posted by lexik View Post
how?: first of all we need chrooted Android (NITDroid probably, or some "cropped" version of it) and running Dalvik. Then?
A more elegant option than your bog-standard chroot would be to use LXC (which has been described as a "chroot on steroids"). LXC "boots" the OS inside the chroot so you're more likely to have an environment that resembles a normal Android system. Your normal chroot would require many hacks to provide host OS (Maemo) components in the Android chroot. LXC already has ways of taking care of this. There has already been some success in running Android under LXC, but as the blog post says, "it really depends on what you want to do with it".

Originally Posted by Hurrian View Post
This is exactly what you want to do.

Some talking points:
  • There is already an Android kernel adaptation for N900
  • Fremantle uses GTK
  • You can do exactly what he did, on ARM
This is an interesting possibility. Perhaps this can be used in combination with LXC to display the Android container in a Maemo window.

Originally Posted by marmistrz View Post
If you need an Android-kernel on which no Linux will run, then how can you run Android apps on Jolla?
The Jolla device uses an Android kernel which is why it suffers from crippled static power management.
__________________
DebiaN900 - Native Debian on the N900. Deprecated in favour of Maemo Leste.

Maemo Leste for N950 and N9 (currently broken).
Devuan for N950 and N9.

Mobile devices with mainline Linux support - Help needed with documentation.

"Those who do not understand Unix are condemned to reinvent it, poorly." - Henry Spencer
 

The Following 10 Users Say Thank You to wicket For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#15
Supposed there is static pm missing, what would happen while trying to run an Android app? //edit: Can't our Linux kernel take care of whole power management and our Dalvik app just let be controlled?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2014-03-19 at 20:01.
 
Posts: 958 | Thanked: 3,426 times | Joined on Apr 2012
#16
Is it possible to give access to hardware components (e.g. accelerometer, GPU, etc) to something in a LXC container? If so, could the nested Android have hardware acceleration? It makes Android apps so much more usable on the N900.
 

The Following 2 Users Say Thank You to taixzo For This Useful Post:
Posts: 71 | Thanked: 177 times | Joined on Aug 2013
#17
Originally Posted by taixzo View Post
Is it possible to give access to hardware components (e.g. accelerometer, GPU, etc) to something in a LXC container? If so, could the nested Android have hardware acceleration? It makes Android apps so much more usable on the N900.
Correct me if I'm wrong, but yes, as we are not emulating anything. Drivers are still needed inside (and outside) the LXC, because chrooted system has no knowledge about it's HW.

Here is some stuff about direct rendering (simillar).
 
Alecsandru's Avatar
Posts: 439 | Thanked: 282 times | Joined on Oct 2012
#18
So basically we need to load android drivers in maemo chroot and use the maemo for chroot ,easy to tell , hard to do.
But how do you start the android kernel in chroot?
Asumed you have done that do you need to bind maemo to the android kernel&dalvik vm for installing and running the apps ? or do you need to use the full chroot , run full android and apps in that chroot?
__________________
N900 Beast featuring :
8GB OPTFS@ext4(*performance mount options)
overclock: cpu[125 - 1,150(*VDD1)+Dsp overclock
CSSU-T latest version

Last edited by Alecsandru; 2014-03-19 at 20:28.
 
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#19
AIUI, LXC containers share the same kernel still - see Oracle documentation on LXC

In that case your now looking at patching host kernel to enable Android, which I dare say is going to break a few things a long the way. If that's the case I'd start looking at a Sailfish approach by running libhybris, if only for the possibility of detaching MCE and co from N900 specifics to allow porting to other devices. Problem is how much RAM and performance loss your going to see.
 
Posts: 958 | Thanked: 3,426 times | Joined on Apr 2012
#20
If the container has the same kernel, does that mean it has to load two sets of drivers for everything? Or are the android drivers only loaded inside the LXC container?
 
Reply

Tags
android, chroot, easy debian, nitdroid

Thread Tools

 
Forum Jump


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