Friday, 22 July 2016

How can I compile the Kernel of the Meizu Pro 5?



Hi,

I have a Meizu Pro 5 Ubuntu Edition, and I try to Compile the Meizu Pro 5 Kernel from here: github.com/meizuosc/m576 using the Compiler from here: android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9

I compiled the Kernel using thr following commands:

Code:


make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- pro5_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android-


It did compile, and I got a arch/arm64/boot/Image

Then, I tried to replace the current kernel on my phone with the new one. I copied the partition bootimg from my Phone using dd, extracted the files zImage, bootimg.cfg and initrd.img using the command "abootimg -x bootimg.img", removed the line "bootsize" from the bootimg.cfg, and created, flashed and started a new bootimg.img using the following commands:

Code:


abootimg --create bootimg.img -f bootimg.cfg -k zImage -r initrd.img
fastboot flash recovery bootimg.img
fastboot oem reboot recovery


However, the Phone just froze on the Meizu splash screen. Am I doing something wrong?

PS: If I recreate the bootimg.img using the original Kernel, the Phone starts normally.



No comments:

Post a Comment