首页 > 代码库 > 如何下载Android kernel内核源代码,编译烧写验证
如何下载Android kernel内核源代码,编译烧写验证
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
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
如何下载Android kernel内核源代码,编译烧写验证
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。