Build a Custom Android Kernel guide

Source: Internet
Author: User

1. Package-to-install in Ubuntu or Debian

$ sudo apt-get install-y build-essential kernel-package libncurses5-dev bzip2

2. Prepare Kernel Source and excute the command

$ make clean && make Mrproper

3. Excute the command:the default Config file location/arch/arm/configs/yourdevice_defconfig

$ make Yourdevice_defconfig

    • Or If you have the Android SDK installed you can get your config by executing the following:

$ adb pull/proc/config.gz

$ gunzip config.gz

4. Point the ' Makefile ' to the compilation tools

$ Export cross_compile=/home/***/ndk/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-

5, Apply any kernel patches ie. BFS, BFQ etc.

$ PATCH-P1 < Yourpatch.patch

6. Further configure your kernel if so desired:

$ make Menuconfig

7. Execute Compile command:

$ make-j5 Arch=arm

8. Kernel & Wifi Module locations after compilation:

/arch/arm/boot/zimage
/drivers/net/wireless/bcm4329_204/bcm4329.ko

Build a Custom Android Kernel guide

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.