How to Build kernel with android build system?

by chin...@tw-roc » Mon, 16 Feb 2009 04:57:21 GMT

Sponsored Links

There is no in kernel folder of andoid platform source
codes, so I could not use "mm" to build the whole folder. I am
wondering if any script for android build system to build Android's
linux kernel?





How to Build kernel with android build system?

by kmatzen » Mon, 16 Feb 2009 16:01:22 GMT

 You can build it the same way as any Linux kernel.  If building for
the dev 1 then get the .config from the phone itself.  If building for
the emulator, switch to the kernel-goldfish-2.6.27 branch and run
'make goldfish_defconfig' to get the correct .config.  Finally, run

The question I have is, where do you place the zImage and vmlinux when
building the Android software stack?  Right now I'm overwriting kernel-
qemu and vmlinux-qemu in the prebuilt directory.  The modification
that I made to the kernel was adding a character device.  However,
this character device does not appear in /dev.  Any ideas?



Sponsored Links

How to Build kernel with android build system?

by chin...@tw-roc » Mon, 16 Feb 2009 16:40:02 GMT

 Thanks for your reply.

Since the kernel folder lies inside  a folder of the android build
system tree, I think there should be a for it to integrate
into the build system as all in one development process flow.

I setup the . build/ and confugre the target setting (such
as lunch 1), and enter the folder of kernel, then I type make. It is
building for x86 arch, but not default to arm arch.

I just don't want to setup another cross compiler for the kernel
build, and hopefully the android build system will also take care for
the android's linux kernel as well.

Any idea?




How to Build kernel with android build system?

by chin...@tw-roc » Mon, 16 Feb 2009 16:53:39 GMT

 Hi again,

I assume you are building a kernel that has a new char device "driver"
with a specific device major/minor number associated with it.
However, you will require a char device "file" in /dev for a process
to control the device driver.
That requires you to write a udev descriptor  or static dev file using
mknod with major/minor number to mapping your char device driver.

Hope that helps.

er device does not appear in /dev.  Any ideas?



How to Build kernel with android build system?

by Manish » Thu, 05 Mar 2009 12:55:17 GMT

 Hi All,

I have another issue but related to udev/uevent.
I am using 2.6.25 kernel with android patch on my board. When I insert
the sdmmc card the "/dev/block/mmcblk0" is not getting created. After
debugging I found that uevent is coming not init process.
Where can I check to get the statistics of uevent?

After inserting the card if I do mknod manually the card is getting
mounted and I am able to access it.

Note: Hotplug is enabled in the kernel. the mountd.conf file is also
present with "/dev/block/mmcblk0".




Other Threads

1. Call start time

I need to know the time of calls start.
I have extended PhoneStateListener and done this:

public void onCallStateChanged (int state, String incomingNumber){

But this gets the time of when I push the call button, while I need
the time of when the other phone answers.
Is there a way to do that?


2. (WTA) best android phone under 3,5 jt


atau nungguin N1 harga tengkurep bolak balik?

-Sent from my 486 DX2-


3. HELP: charger saya mati

4. Free and paid version share same data

5. Testing activity which uses Intent.CATEGORY_INFO

6. Android access to Google calendar - supported method

7. (WTA) best android phone under 3,5 jt