1. Download Kernel source
Study:
1. Please refer to the AOSP official kernel download address:
http://source.android.com/source/building-kernels.html
2. goto https://android.googlesource.com/kernel/msm.git check which branch your will get,
for Secure Phone please checkout android-msm-hammerhead-3.4-kitkat-mr1 version

commands:
$ git clone https://android.googlesource.com/kernel/msm.git hammerhead-kernel
$ cd hammerhead-kernel
$ git checkout android-msm-hammerhead-3.4-kitkat-mr1

2. Build Kernel
$ cd $(AOSP_PATH)
$ . build/envsetup.sh
$ lunch 12
$ export ARCH=arm
$ export SUBARCH=arm
$ export CROSS_COMPILE=arm-eabi-
$ cd hammerhead-kernel
$ make hammerhead_defconfig
$ make

3. Verify Kernel

cp $(KERNEL)arch/arm/boot/zImag-dtb (ANDROID_ROOT)out/target/product/hammerhead/kernel

out/host/linux-x86/bin/mkbootimg --kernel out/target/product/hammerhead/kernel --ramdisk out/target/product/hammerhead/ramdisk.img --cmdline "console=ttyHSL0,115200,n8 androidboot.hardware=hammerhead user_debug=31 maxcpus=2 msm_watchdog_v2.enable=1" --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x02900000 --tags_offset 0x02700000 --output out/target/product/hammerhead/boot.img

adb shell su 0 reboot bootloader

fastboot flash boot out/target/product/hammerhead/boot.img

fastboot reboot

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 深入理解 Android消息处理系统的原理
  2. [置顶] 【Android】 基于XMPP Smack框架
  3. Android Manifest标签之manifest,meta-da
  4. 【Unity3D】Unity3D与Android的交互通信(A
  5. Android(安卓)Studio 简单介绍和使用问题
  6. android开发资源合集
  7. Android: TextView常用属性的用法详解
  8. [置顶] 对Android(安卓)MVVM的理解
  9. Android中MPAndroidChart自定义绘制最高
  10. 【Android开发】基本组件-图像视图