How to Start Android Linux Kernel Development

by Rehmet » Fri, 03 Sep 2010 21:17:11 GMT

Sponsored Links
 Hi Everyone,

I am just starting to develop Android Linux Kernel, after getting the
source code from common.git, where should I do next? I intend to port
Android on NiosII (32-bit)

Any pointers are very much welcome.



How to Start Android Linux Kernel Development

by Viral Mehta » Sat, 04 Sep 2010 12:30:24 GMT

> website: 

Sponsored Links

How to Start Android Linux Kernel Development

by Rehmet » Sun, 05 Sep 2010 14:55:52 GMT

 It's obvious, but, thanks anyway.

How about something on how to modify the kernel to fit the

> > website:

How to Start Android Linux Kernel Development

by Chris Stratton » Sun, 05 Sep 2010 21:18:36 GMT

 Generally, figure out your first stage bootloader - if it's oem or u-
boot or whatever.  Get it working with serial interface so you can
talk to it from a terminal.
Then put what you learned about the serial hardware into the kernel's
early serial driver so you can see how far you are getting during
kernel bootup.   Then solve device driver problems one by one...

For NIOS, since there probably already is a linux kernel for it, it
may make more sense to look at android as a set of patches that rather
than as a raw porting project.  You might make sure that your android
patched kernel works with a stock userspace image before you worry
about constructing an android userspace.  Get serial terminal,
networking and/or ADB up before you worry about much else in

FPGA soft core processors tend to be notably behind the performance of
hard cores in the same silicon technology generation, so I wouldn't
expect much from it.  Also remember you are going to need lots of
memory - like 64 MB minimum, preferably more.

> > > website:

How to Start Android Linux Kernel Development

by Rehmet » Mon, 06 Sep 2010 05:35:52 GMT

 Thanks Chris,

That is very insightful.

What do you think regarding this? 
How different I am going to do it with respect to Linux Kernel? as you
said I would need to patch the Linux Kernel.

Back to your reply, I will use U-Boot and yes, there is a Linux for it 

Care to explain what do you mean by 'stock userspace', 'constructing
an android userspace' and 'ADB'?

I am using NEEK 
and it seems its memory is only 32MB.


    * 32 MB of DDR SDRAM
    * 1 MB of synchronous SRAM
    * 16 MB of Intel P30/P33 flash

> > > > website:

How to Start Android Linux Kernel Development

by Bharathi Subramanian » Tue, 07 Sep 2010 07:38:50 GMT


It may help you: 

Bye :)
Bharathi Subramanian


How to Start Android Linux Kernel Development

by Chris Stratton » Tue, 07 Sep 2010 07:47:58 GMT

 our system is likely too limited to run android usefully.

More generally would suggest you spend some time playing with the
stock android emulator and the default embedded linux install for your
board (or something more powerful, probably not fpga based) to
understand the differences between android (at the linux level below
the dalvik vm) vs an ordinary embedded linux.

On Sep 6, 1:35am, Rehmet <> wrote:


How to Start Android Linux Kernel Development

by Rehmet » Thu, 09 Sep 2010 04:38:14 GMT

 i Chris,

I think I will not use the ported Android for any application, my
target is just to able to show
that Android can run on top of NiosII processor (i.e. get the
display), to get into a fully usable Android that would run
many applications, I will need another research.

Therefore, what books/literature that I need to read to be able to, as
you said, use android as a set of patches for the board's linux?
My experience with embedded linux was with linux in Xilinx ML403, so I
hope it is not that steep in learning curve for Android.

You mentioned "stock android emulator", I am not getting "stock" in
your Android emulator, care to explain?

Well, actually, there are several that I don't understand, please
excuse my ignorant for the time being, such as "kernel's early serial
"stock userspace", "constructing an android userspace" and "ADB"?

Kind regards,

On Sep 7, 2:47pm, Chris Stratton <> wrote:


How to Start Android Linux Kernel Development

by joy » Wed, 15 Sep 2010 17:20:57 GMT

 i all
i am also newb to port omap-2.6.32 in beagle board by proving all
support for android i am getting stuck in some kernel panic and i have
also solve some problem like not to boot get stuck in booting stage
any one want to share with me so that we can complete it easily.
On Sep 9, 9:38am, Rehmet <> wrote:


How to Start Android Linux Kernel Development

by Rehmet » Sat, 02 Oct 2010 14:59:33 GMT

  intend to build only proof of concept, I am just not understanding
the terminology you used,
where can I find this information about stock, etc.

Since the emulator is using virtual ARM processor, I'd get more
results by using ADB with my USB connection.
what do you think?

On Sep 7, 2:47pm, Chris Stratton <> wrote:


Other Threads

1. Setting a breakpoint in a service

Hi all,

I have created a service based on from the
SDK samples.

In my service I want to do some work which will update a

The problem I am having is that I cannot seem to get a breakpoint
inside the service to fire. I know it is executing the service as I
can add log statements and see it pass the point where the breakpoint
is set. Running in debug mode under Eclipse obviously.

Is this possible? Can you step through the code for a background



2. Confused about WebView#loadData()


I'm confused about the encoding parameter of loadData(). Since the
data argument is a Java String, by definition it's in UCS-2
representation. So what role does the encoding argument play? I could
see that you'd need encoding if the data was is some byte-oriented
format like a byte[] or an InputStream.

The only thing I can think of this that it's used to write the data
String to a byte representation in the given encoding before passing
those bytes (and the encoding) to the HTML engine. Is this correct?


3. debugging..

4. One-Third year since last public Google Android SDK release

5. how to run an application compiled with gcc

6. hiiiiii

7. How to update the progress bar dynamically.