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. repo sync - no response

Hi,

I downloaded the source code one week back. But when I try to sync
with repo yesterday, I given repo sync in the android root dir, but it
was ideal, there was no response,

mydroid# repo sync

.

I tried so many times, after some I got the error,

Initializing project platform/external/opencore ...
fatal: Unable to look up android.git.kernel.org (port 9418) (Name or
service not known)
error: Cannot fetch platform/external/opencore

I am Directly connected to internet(NAT Enabled), Bu tprevisuly it was
working fine...

What might be the problem....????

thanks
raj
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. why is the sdk 1.5 prerelease releaed with obsolete documentation?




Ah  sorry about that.


I agree with you, but I can only assume that doing this was going to be a
risky
change to the SDK generation script, and that it was just easier to package
the
stuff as-is for the preview.






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

3. why is the sdk 1.5 prerelease releaed with obsolete documentation?

4. why is the sdk 1.5 prerelease releaed with obsolete documentation?

5. problem in using context.getCacheDIr() in emulator.

6. why is the sdk 1.5 prerelease releaed with obsolete documentation?

7. IMPROPER RENDERING OF A HTML OBJECT