Like the standard Linux development process, an important basic task of Android platform development is to compile and port its kernel. This article, in conjunction with Android development documents and my practical experience, briefly introduces the Android kernel compilation process, hoping to help developers interested in internal nuclear transfer. Android, as a mobile phone Development Platform launched by Google, is based on the Linux kernel. In addition to linux, a large part of the kernel source code provided by Google is
Like the standard Linux development process, an important basic task of Android platform development is to compile and port its kernel. This article, in conjunction with Android development documents and my practical experience, briefly introduces the Android kernel compilation process, hoping to help developers interested in internal nuclear transfer.
Android, as a mobile phone Development Platform launched by Google, is based on the Linux kernel. In addition to linux, a large part of the kernel source code provided by Google is related to the virtual processor Qemu and the simulation hardware platform Goldfish. Therefore, if you want to port Android to the actual hardware platform, you need to remove this part of code. Of course, this is not the focus of this Article. Our current goal is to compile a system kernel that can run on the simulator. Now let's start our work!
Work environment and required software packages
System Environment: RedHat Linux 9.0
Cross-compiler: GNU Toolchain for ARM Processors is here.
The first option is arm eabi or arm gnu/Linux, and the second option is IA32 GNU/Linux.
Android kernel source code: linux-2.6.23-android-m5-rc14.tar.gz here.
Note that the kernel version should be the same as the Simulator version you selected.
Here is the Android SDK.
1. Build a cross-compilation environment
1) install Android SDK: Decompress android-sdk_m5-rc14_linux-x86.zip to the appropriate path. This article releases it to the/usr/local/android_sdk_linux PATH and adds its tools PATH to the PATH:
$ Export PATH = $ PATH:/usr/local/android_sdk_linux/tools