Hello i do compile kernel since 2.2 came out on linux, but it's my first time doing it on android. I read your guide and several (outdated and not) others.
i'm trying to update the kernel of my device. It's an Elephone P9000, Mediatek cpu (MT6755 + MaliT860).
Kernel version i tryed are the official linux stable 5.2.11 (it's probably a long shot, i know
) and to official google's git branch "common-android-4.19" .
I can compile both of them, their modules... (since there is no defconfig for my device, i selected the single options, maybe here is the issue. did i miss something? (attached the defconfig i created)
I had troubles at beginning with verified boot, and if i understood correctly there are 2 version. VB 1.0 and AVB 2.0. My device when i unpack falls under the 1st version.
I tried AIK, superr to upack and repack the official bootloader but i was stuck on bootloop on the first logo. (First logo is Elephone symbol, second is the android loading animation)
I then found that Android_boot_image_editor works for me (https://github.com/cfig/Android_boot_image_editor
) and the official stock rom will recompile without any problem.
I substituted the kernel in the unpacked bootloader, added the modules in the ramdisk. I repacked (a signed image is created) and flashed.
It just looks like the previous rom, same kernel boot parameters, same file format (Android , not ext4)
It gets stuck on the first boot animation. I don't have any error, not one i can read atleast.
I would like to provide more informations, but i'm actually asking you if you can give me an advice about how to have some sort of log or you have an idea what i possibly mess up.
is there a serial port i can read boot informations? can i remove the bootlogo in some way and have (my loved) linux boot text?
Thank you for your attention
Twrp is already installed and works with any of the boot image i flash (as it should beeing in another partition)
I did enable Android options in the kernel config, and i did enable ext2/4 + mtd to be able to mount the real root.
I did format cache and dalvik partitions
bootloader is unlocked
flashboot doesn't work on mtk, i'm using sp_flash_tool (latest version on linux) with his scatter file
toolchain versions shouldn't matter since compilation do not fail... but anyway...
i used the one in the guide (https://android.googlesource.com/pla...x-android-4.9/
) for 5.2.11
and the one that is automatically selected with git source from google's git with "clang-r353983c"
My aim is to have an updated bootloader i can use with GSI or learn how android boot works in detail, and next to this kernel i'll update the one on my tablet (another MTK).
Unfortunally MTK configs are not upstreamed, and there is a lack of ORGANIZED source code.