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. Best Practice for Static Headers and Footers

I am trying to display a high score table in my application and wanted
to know the Best Practice for displaying static headers or footers.
The data for the High Score tableis a REST web service returing up to
100 JSON records.  I have looked at some of the previous posts

2. Are there alternate ways to look up user phone number when TelephonyManager returns null?

Is there a way to look up the user phone number other than TelephonyManager?

In my G1, this returns null:

// get your phone number
        TelephonyManager telephonyManager = (TelephonyManager)
        String tel = telephonyManager.getLine1Number();

        Log.i("Telephone Number ==> ", tel+" <==");

Is there any other way of getting user's own phone number?

take care,
Muthu Ramadoss. - Android Consulting.

Emo Philips <>
- "A computer once beat me at chess, but it was no match for me at


3. Multipat messages.

4. surface flinger framework and issues

5. Is There Ever Going to be a Google Chrome Mobile for Android?

6. Experience of using admob

7. Zealots (WAS Unacceptable and abusive comments needs immediate solution from Google)