My Profile Photo

Sriram


Android developer—among other things


Flashing a custom Android kernel

I had a really hard time figuring out how to flash a custom kernel on my Android phone for one of my projects. Since I was pressed for time, I didn't have the luxury of following some of the really long guides on the Internet to get this working. And turns out, you don't have to. Once you have your kernel compiled and ready, and I'm assuming you know how to do that, all you have to do to flash it to the phone is to put the phone in fastboot mode,

adb reboot bootloader

And then you simply flash the zImage to the phone with the following command.

fastboot flash zimage <path to compiled zImage file>

And you're done.