Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building android - how to load kernel image in mkbootimg command?

root@ubuntu:/media/Source/ICS_SOURCE# out/host/linux-x86/bin/mkbootimg --kernel zImage --ramdisk ramdisk.img.gz -o --boot.img error: could not load kernel 'zImage'

i am getting this error again and again..

Where i have to put kernel image to run this command?? actually after build source code i didn't get boot.img!

like image 530
Punjabi Avatar asked Oct 26 '25 07:10

Punjabi


1 Answers

You will not get the bootimage (zImage or Image from arch/arm/boot folder) file after compiling kernel.

move your mkbootimg binary to bin

sudo mv mkbootimg /bin

copy all the zImage, ramdisk.img.gz (when I compiled I used ramdisk.img) to a folder

Open terminal there

type

mkbootimg --kernel zImage --ramdisk ramdisk.img.gz -o --boot.img
like image 196
Ajo Mathew Avatar answered Oct 27 '25 21:10

Ajo Mathew



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!