Phone doesn't boot custom kernel on stock rom - Android Q&A, Help & Troubleshooting

Hello everyone.
I'm trying to compile from source the kernel of my phone which is an unlocked motorola g6 play codename aljeter with the stock rom (android pie). I found the kernel repository in this post https://forum.xda-developers.com/t/rom-r-v5-unofficial-aljeter-bananadroid-for-moto-g6-play.4362405/. I downloaded the toolchain in my case arm-linux-androideabi-4.9 because my phone architecture is arm.
Then i extracted the defconfig from the stock kernel obtained from the extraction of stock boot.img using AIK. After that i successfully compiled the kernel and i obtained the Image, zImage, and zImage-dtb. I unpacked the boot.img using AIK and i changed the boot.img-kernel with my zImage-dtb (and of course i renamed my zImage-dtb with boot.img-kernel). Then i repacked everything and i obtained a image-new.img. I rebooted my phone in fastboot mode and i run "fastboot boot image-new.img" to boot the new boot.img. After that the phone showed the boot logo but it immediately reboot to the stock boot.img (stock kernel). I think that the problem is related to avb but i am not sure.
Does anyone know how can i fix that?
Thanks
P.S
I also tried to compile the kernel for my tablet which is a Lenovo X606F but i obtained the same error

Related

Build kernel from source and flash it in GTi9300

Hello,
since I don't yet have access for the specific section I post here
I can't find how to flash a kernel built from source (aka zImage). Since fastboot is not available on GS3, I just want an alternative tech to boot my gs3 with my build zImage.
I build the source from stock kernel samsung opensource database (update 8) and receive a zImage file.
I made a backup with cwm and unpack the boot.img with a perl script, then repack a new boot.img with my zImage as kernel and the ramdick from unpack but cannot boot with new package.
Could someone maybe give me a kernel source and the right corresponding package to boot it. Or maybe just a good way to make the whole process.
My final goal is to build a custom module for the GS3, that's my I need building from source and not an already-packed-kernel. Moreover if someone can help me directly about the module, he's very welcome

Can't unpack boot.img with any tool

Hello, I have built a custom kernel for CM12 (Android Lollipop) and I want to release it as a boot.img. After building the kernel, I took the brand new zImage and started searching for a tool that allowed me to unpack and repack the boot.img, which I had extracted from the ROM zip. The problem is, every kernel tool/kitchen failed to unpack the boot.img with errors like "Android Magic not found in boot.img" or other errors related to boot_magic or Android Magic.
What should I do in order to unpack the boot.img?
Thank you in advance

[HELP][KERNEL]WiFi / Bluetooth Not working After Compiling kernel

Hello xda,
I am new into kernel development.Recently I downloaded the kernel sources for my phone Zenfone 2 Laser -ZE550KL
After that I compiled the stock kernel, since It is based on arm64 I got a file named Image instead of zImage.
After searching I found a way to convert that to a boot.img (using the ramdisk from stock kernel).I could get the kernel to boot on the device using
Code:
fastboot boot boot.img
The device booted successfully with the kernel, I could see change in the name of Kernel in About Phone.
But the problem is Wifi/Bluetooth and Soft keys do not work.Wifi turns on But cannot see any AP.
BT works(A BT enabled watch vibrated )but no device can be seen in bletooth settings.
Please help me with this kernel.
here is the link to my source=>
https://github.com/abhishekr700/ZE550KL_KERNEL
I am using ze550kl_defconfig present in /kernel/arch/arm64/configs to make .config file for building kernel.
Thanks.
..

[HELP][KERNEL]WiFi / Bluetooth Not working After Compiling kernel

Hello xda,
I am new into kernel development.Recently I downloaded the kernel sources for my phone Zenfone 2 Laser -ZE550KL
After that I compiled the stock kernel, since It is based on arm64 I got a file named Image instead of zImage.
After searching I found a way to convert that to a boot.img (using the ramdisk from stock kernel).I could get the kernel to boot on the device using
Code:
fastboot boot boot.img
The device booted successfully with the kernel, I could see change in the name of Kernel in About Phone.
But the problem is Wifi/Bluetooth and Soft keys do not work.Wifi turns on But cannot see any AP.
BT works(A BT enabled watch vibrated )but no device can be seen in bletooth settings.
Please help me with this kernel.
here is the link to my source=>
https://github.com/abhishekr700/ZE550KL_KERNEL
I am using ze550kl_defconfig present in /kernel/arch/arm64/configs to make .config file for building kernel.
Thanks.

Kernel for MT6735m compiled from source, downloaded but not able to boot(bootloop).

I'm trying to upstream my spare old phone, running on MT6735m.
What I do for this,
Source compiled and I got a Image.gz-dtb in /arch/arm64/boot.
Unpack stock boot.img with Android Image Kitchen, replace stock kernel with Image.gz-dtb.
Repack boot.img and fastboot flash boot boot.img.Flashing is success then reboot the device.
Not knowing why it is just not working, device stuck in bootloop.
I've checked that dtb is appended correctly.
As same as dtb in the stock kernel image.
Is there any other steps needed for MTK kernel building? Magic header, signature or what?
(I only compiled armhf on Qualcomm devices before.
So I'm quite unfamiliar with MTK deiveces and arm64 architecture)
source here:https://github.com/Aerotinge/android_kernel_mlt_mt6735
Any help is appreciated.

Categories

Resources