How to Build kernel with android build system?

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


Sponsored Links
 Hello

There is no android.mk 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?

Thanks

Chinlin


--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



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
'make'.

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 Android.mk for it to integrate
into the build system as all in one development process flow.

I setup the . build/envsetup.sh 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?

Thanks





--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



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".

Regards,
Manish






--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. How to compute the screen size before rendering objects?

Hi Everybody,

I want to render 3d object on the screen. Before that I would like to
compute the screen so that the rendered object can be given relative
position. How that can be done?

Can anyone guide me How to go about it?




Regards
Sunil
--~--~---------~--~----~------------~-------~--~----~

2. File Browser on Android Phone

Hi,

how can I browse the contents on my android phone without hooking it
up to a computer. I mean an File Browser Android application

Thanks in advance
Yves

--~--~---------~--~----~------------~-------~--~----~

3. How to search an application on Android Market?

4. why there's no boot.img in Android-1.5

5. flagNoExtractUi still showing keyboard text area

6. Reusing code, multiple external namespaces

7. Get current locale