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. alarm manager counts

I am kind of into a situation where i need to put alarm for each
record in my database, and there is no limit to the number of records
user can create. will it be a good idea to set an alarm using alarm
manager for all the records ?

what if the time clash ?

-- 

2. Android 1.5 - setIntent / getIntent broken?

It works this way on 1.5 and every other version of the platform.  One could
argue there shouldn't be a setIntent() method, but there you go.  Anyway
this won't change because (1) it would break existing applications, and (2)
it is not worth the trouble of introducing the required compatibility code
to keep applications working after such a change.








> > > 

3. how to change focus on soft keyboard?

4. cupcake how to support multi-touch and linux kernel version?

5. Android 1.5 - setIntent / getIntent broken?

6. a2dp (WAS fix alsa compilation problem Eclair)

7. AudioTrack sanity test