Build Android Kernel

Source: Internet
Author: User

1. Prepare the compiling environment
Sudo apt-Get install build-essential ncurses-Dev

2. Get kernel source

Git clone git: // android.git.kernel.org/kernel/common.git
Git checkout origin/Android-goldfish-2.6.29-B goldfish

3. Get prebuilt Source
Git clone git: // android.git.kernel.org/platform/prebuilt.git

4. export environment variable
Export Path = $ path:/home/falson/mydroid_prebuilt/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin
Export arch = arm

5. Set cross-compilation Parameters
Open the MAKEFILE file in the kernel directory and point cross_compile to the arm-Eabi compiler in the prebuilt you just downloaded.
Cross_compile? = Arm-Eabi-
Set
Ldflags_build_id = $ (patsubst-wl $ (comma) %, % ,/
$ (Call LD-option,-wl $ (comma)-Build-ID ,))
Comment out this line and add an empty ldflags_build_id definition, as shown below:
Ldflags_build_id =

6. Obtain the Kernel configuration file from the SDK bound with 1.5 _ R1.
Start the simulator and run the ADB pull command (this command is used to copy files from the device to the local device.
ADB pull/proc/config.gz ~ /
Gunzip config.gz
MV config ~ /Sources/goldfish-kernel/. config
Make

7. To start the simulator, you must first compile the simulator and SDK
Download all projectsCode
Sudo apt-Get install Git-core curl
Curl http://android.git.kernel.org/repo> ~ /Bin/Repo
Chmod A + x ~ /Bin/Repo
Cd ~ /Mydroid
Repo sync
Make
Make SDK
All generated tools are in ~ /Mydroid/out/host/Under linux-x86/bin
The generated system image is in ~ /Mydroid/out/target/product/generic
The generated SDK tool directory is in ~ /Mydroid/out/host/linux-x86/SDK/android-sdk_eng.falson_linux-x86/tools under
Generate AVD: Android create AVD-T 1-N falsonavd Based on the SDK
Use Android list target to view all target lists

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/knock/archive/2010/03/09/5359388.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.