Can't unpack boot.img with any tool - Android Q&A, Help & Troubleshooting

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

Related

Extract kernel from boot.img

Hi
I have Samsung Galaxy Player(yp-g70). I want to extract the kernel from a cm7 rom's boot.img made for this device. I tried it with perl sripts, on ubuntu and windows too, but I get the same error:
"android magic not found in boot.img. giving up"
How can I extract the kernel from this boot.img?
(I attached the boot.img, and the scripts)
the same problem
i also got the same issue , my device is htc one x . any one can help?
Use Dsixda android kitchen

[HELP]Corrupt boot img

Hello guys I have Alcatel One Touch 918n. I was trying to make a custom rom for the device. It is an armv6 device running on Android 2.3.6 . But for complete building and tweaks I need full stock rom which is not available on internet. So I decided to use cwm backup. I have a cwm v5.0.2.8 port for my device but I think it does not properly image the boot.img. as far as I know boot.img has zimage and ramdisk folder. Ramdisk has many tweaks associated with it. But my boot img contains zimage but no ramdisk. Also if I restore the boot.img it causes bootloop. So everytime I have to use advanced restore and restore all other img separately. Any solution so that I can fix the boot img

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

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.

Phone doesn't boot custom kernel on stock rom

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

Categories

Resources