码迷,mamicode.com
首页 > 移动开发 > 详细

Build a Custom Android Kernel Guide

时间:2014-08-27 16:20:00      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:des   android   os   io   ar   amp   sp   linux   on   

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

标签:des   android   os   io   ar   amp   sp   linux   on   

原文地址:http://www.cnblogs.com/ikaka/p/3939609.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!