tags:

views:

371

answers:

2

I have downloaded Android source code but I don't find the "Kernel Directory" in the top level directory of the source code tree. Is it normal ???? or is it missing ???

/mydroid$ find . -name kernel
./bionic/libc/kernel
./vendor/htc/sapphire-open/kernel
./vendor/htc/dream-open/kernel
./dalvik/libcore/luni-kernel/src/test/java/tests/api/org/apache/harmony/kernel
./dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/kernel
./prebuilt/android-arm/kernel
./prebuilt/android-x86/kernel
./device/htc/passion/kernel
+1  A: 

default.xml in git://android.git.kernel.org/platform/manifest.git does not point to the kernel, so repo would not automatically download it. Most kernel trees are specific to machines anyway.

See http://elinux.org/Android_Kernel_Download for information on getting the right kernel.

git clone git://android.git.kernel.org/kernel/common.git kernel
duncan
Is it a must to download the kernel source code before performing the build process.
Walidix
I have built the entire tree without downloading a kernel. The kernel headers used are in userspace (in bionic for example), The emulator AFAIK has its own kernel to boot. To boot it in a specific machine, you will need to build a kernel for it, and that kernel headers would need to match those copied to userspace so that userland tools work.
duncan
Thank you for your help
Walidix
A: 

hi can anyone please explain how to debug android source code.When i run my code in eclipse it gives following errors

Exception in thread "main" java.lang.UnsatisfiedLinkError: native_get at android.os.SystemProperties.native_get(Native Method) at android.os.SystemProperties.get(SystemProperties.java:47) at com.android.internal.os.SamplingProfilerIntegration.(SamplingProfilerIntegration.java:41) at android.app.ActivityThread.main(ActivityThread.java:4618)

please help me regarding this.

Thanks in advance.

Regards katy

katy
You should post this as a separate question, not as an answer. Use the **[Ask Question]** button at the top right of the page.
Bill the Lizard