[GUIDE][BOOT][MT2L03] Tutorial guide for compiling BOOT IMG from source code topic
DISCLAIMER: Rooting your phone and using custom ROMS/kernels have risks, I am not responsible any abnormal behaviour of your phone, ex. your phone bricks, or your phone catches on fire, or your phone explodes. USE IT AT YOUR OWN RISK!!
DON"T FORGET TO BACKUP YOUR ORIGINAL BOOT IMG.
What you need:
Original BOOT IMG extracted from your phone
Android/Linux kernel source code for MT2L03:
https://github.com/j42lin/android_kernel_huawei_mt2l03
Android cross-compilation toolchains (Credit to DooMLoRD)
https://github.com/j42lin/android_prebuilt_toolchains
Kernel package tool(Credit to xiaolu)
https://github.com/j42lin/mkbootimg_tools
and basic knowledge in Linux shell conmmands
(Also you might want to setup your 64 bit Ubuntu enviroment based on Google/Cyanogenmod requirements)
Steps
Step 1.
Download Android kernel source code and cross compilation tool chains, and run these commands to under kernel source code folder compile Linux zImage
export CROSS_COMPILE=~/android/toolchains/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
export ARCH=arm
make clean && make mrproper
make mt2l03_defconfig
make menuconfig
make CONFIG_NO_ERROR_ON_MISMATCH=y -j4
Note: your CROSS_COMPILE tool chain folder might be different than mine, use your brain :good:
Step 2:
Use mkbootimg_tools to unpack original BOOT IMG
This step will extract device trees and ram disk from your BOOT IMG (Damn you Qualcomm and your device trees)
Step 3:
Place your zImage into the folder you just extracted in Step 2
Step 4:
Use mkbootimg_tools to pack new BOOT IMG
and flash onto your phone using ADB :victory::victory:
DON"T FORGET TO BACKUP YOUR ORIGINAL BOOT IMG.
What you need:
Original BOOT IMG extracted from your phone
Android/Linux kernel source code for MT2L03:
https://github.com/j42lin/android_kernel_huawei_mt2l03
Android cross-compilation toolchains (Credit to DooMLoRD)
https://github.com/j42lin/android_prebuilt_toolchains
Kernel package tool(Credit to xiaolu)
https://github.com/j42lin/mkbootimg_tools
and basic knowledge in Linux shell conmmands
(Also you might want to setup your 64 bit Ubuntu enviroment based on Google/Cyanogenmod requirements)
Steps
Step 1.
Download Android kernel source code and cross compilation tool chains, and run these commands to under kernel source code folder compile Linux zImage
export CROSS_COMPILE=~/android/toolchains/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
export ARCH=arm
make clean && make mrproper
make mt2l03_defconfig
make menuconfig
make CONFIG_NO_ERROR_ON_MISMATCH=y -j4
Note: your CROSS_COMPILE tool chain folder might be different than mine, use your brain :good:
Step 2:
Use mkbootimg_tools to unpack original BOOT IMG
This step will extract device trees and ram disk from your BOOT IMG (Damn you Qualcomm and your device trees)
Step 3:
Place your zImage into the folder you just extracted in Step 2
Step 4:
Use mkbootimg_tools to pack new BOOT IMG
and flash onto your phone using ADB :victory::victory:
xda-developers
- [Q] Moto X Device UNLOCKED Status Code 1 topic
- [Q&A] New Messenger app by Google - Source code? topic
- Samsung Galaxy S 5 SM-G900W8 Source Code topic
- [Q] moto e bootloader staus code 1 topic
- [Q] Black screen after compiling custom CWM recovery topic
- [Q] Driver error while compiling kernel topic
- [Q] help compiling cm rom topic
- [GUIDE][BOOT][MT2L03] Tutorial guide for compiling BOOT IMG from source code topic
- [Q] New to phone - on 24A rooted - where to go from here? topic
- I9505 Safe to Downgrade from 4.4.2 to 4.2.2? topic
- Remove Att logo from the rear of the phone topic
- [Q] Going from Stock Unrooted to CM12.1 topic
- Downgrade from 5.1.x to stock topic
- Anyone come from a Note 4? topic
- [Q] Downgrading to KitKat from Lollipop topic
- How to update from 5.0.1 to 5.1 topic
- [Q] Data from both sim cards? topic
- [Q] Downgrade from lollipop to kitkat topic
- ZTE Blade Vec 4G - Guide - Links - FAQ - Discussion topic
- Boost Mobile (CDMA) Moto E 2015 Stock Firmware Restore Guide topic
0 commentaires:
Enregistrer un commentaire