http://honeypod.blogspot.com/2007/12/compile-android-kernel-from-source.html2007年12月1日Compile Android kernel from the source
I confirmed the following procedure only on my linux host (FC8). Sorry
for Windows and Mac users.
1. Get toolchains from CodeSourcery (Choose ARM GNU/Linux and IA32 GNU/Linux). 2. Get kernl source code from here. 3. Deploy toolcains and kernel source and enter in the kernel source tree.
4. Get the config.gz from the running emulator by the following way.
5. Decommpress the config.gz and rename it as .config
6. Specify CROSS_COMPILE in the Makefile.
7. Comment out LDFLAGS_BUILD_ID[*1] in the same Makefile.
8. Make the kernel
9. Check zImage is created and the size is nearly same as the kernel-qemu in the Andorid SDK.
10. Run emulator with the created kernel.
[*1]: The LDFLAGS_BUILD_ID enables --build-id option of ld if available. The --build-id option is relatively new. The current emulator does not seem to support the kernel linked with this option. See here if you are interested in the detail of this option. 5 コメント:この投稿へのリンク![]() ![]() ![]() ![]() |
Pingback from codercpf.be:
Compile Android kernel from the source
As people might know, there used to be a rumour about google working on a “gphone”...
Read more
Thanks Motz, that saved some research!
The selection of toolchains is mismatched between the text and the trace of execution. I corrected the text from ARM EABI to ARM GNU/Linux.
You can also just use the provided defconfig:
make goldfish_defconfig
Instead of grabbing the config from the running kernel. It should give you identical results (it's how we build the release kernel).
Yes, I confirmed your way. We can do 'make goldfish_defconfig' to get .config, instead of step 4, 5 above.
Thank you for pointing out.