Can I flash kernel through twrp? - General Questions and Answers

Hi Guys, i heard something about flashing kernel through twrp, is it possible to flash only kernel or with included in rom?

Discontinued

Related

[Q] When I install custom Rom do I install custom kernel?

When I install a custom Rom which works with custom Kernel do I install the kernel automatically too? Or I need to manual install the kernel?
Normally the kernel is included in the ROM. If not flash it manually
The kernel will be included in the rom you flash. Whether or not its a custom or stock kernel is down to the developers preference. If the kernel included is not to your liking you can flash a different one.
Thank you!

[Q] Need some guidance of kernel and custom rom install

I want to install ElementalX kernel and CleanRom JL. Since the kernel also supports hboot 1.4, i'm not sure what should be the order of installation?
1. Flash kernel along with boot.img. Then flash custom rom on the phone
2. Flash just the kernel and skip boot.img installation. Then push the boot.img separately and flash custom rom
3. Push the boot.img separately and flash custom rom. Then, flash the kernel without boot.img support.
Can somebody help me out here. Thanks in advance.
Flash clean Rom then elemental

[Q] about kernels of moto g [CM12]

i am not overly familiar with many things regarding different kernels and how to work with them, so i was wishing a few questions that i had could be clarified by someone who knows:
1. when a kernel is flashed? i mean except for the times when we flash kernel.zips via recovery, is it flashed whenever we install a custom rom? or is it flashed with bootloaders when we flash firmware?
2. I am using CM12 official nightly and facing camera frizz issues. I came across a post in the official CM12 thread where they said flashing a modified kernel supposedly fixed this problem. Now my question is, after flashing a custom kernel, is there any way to go back to the stock one? by stock i mean either the one i was on right before flashing the custom kernel or stock moto g kernel provided by motorola?
that also begets the question, can kernels be backed up like roms using recovery?
gearguy365 said:
i am not overly familiar with many things regarding different kernels and how to work with them, so i was wishing a few questions that i had could be clarified by someone who knows:
1. when a kernel is flashed? i mean except for the times when we flash kernel.zips via recovery, is it flashed whenever we install a custom rom? or is it flashed with bootloaders when we flash firmware?
2. I am using CM12 official nightly and facing camera frizz issues. I came across a post in the official CM12 thread where they said flashing a modified kernel supposedly fixed this problem. Now my question is, after flashing a custom kernel, is there any way to go back to the stock one? by stock i mean either the one i was on right before flashing the custom kernel or stock moto g kernel provided by motorola?
that also begets the question, can kernels be backed up like roms using recovery?
Click to expand...
Click to collapse
1. The kernel is first flashed when you install a ROM. You are supposed to flash a custom kernel after flashing a ROM otherwise the rom zip will overwrite it. It doesn't matter if you install it in the recovery or the boot loader.
2. To go back to the stock kernel just take it from the zip of the ROM and flash in the bootloader
where can i find the kernel inside the rom zip?
and if i want the stock motorola kernel that comes with factory firmwares
how can i collect that?
A ROM.zip contains the system folder and a boot.img
The kernel is in the boot.img
So if u flash a different kernel and still facing problems then flash the ROM again.
mistercheese said:
A ROM.zip contains the system folder and a boot.img
The kernel is in the boot.img
So if u flash a different kernel and still facing problems then flash the ROM again.
Click to expand...
Click to collapse
flashing only the boot.img of a rom wont bring back the default kernel?
and is there any way to make a flashable zip of a kernel from that particualr boot.img?cause all the kernels i see (like donkey kang/customized cm12 kernel) there are all distributed in .zip format.....

Dirty unicorns rom kernel

Im about to flash dirty unicorns 5.0.2 . I already have twrp recovery and have downloaded the elementalx 2.08 kernel.. Do i have to install kernel in order to install the rom or everything will be fine with the stock lollipop kernel?
Usually the ROM is packed with the kernel that is compatible. So every ROM has it's 'default' kernel You can replace it with ElementalX afterwards though
GiwrgosP- said:
Im about to flash dirty unicorns 5.0.2 . I already have twrp recovery and have downloaded the elementalx 2.08 kernel.. Do i have to install kernel in order to install the rom or everything will be fine with the stock lollipop kernel?
Click to expand...
Click to collapse
This
experience7 said:
Usually the ROM is packed with the kernel that is compatible. So every ROM has it's 'default' kernel You can replace it with ElementalX afterwards though
Click to expand...
Click to collapse
BUT it's ALWAYS better to read a few pages from the ROM's thread before flashing it.
Actually if you flash BlissPop rom today then your device won't boot (issue with stock kernel). So you must flash a custom kernel to be able to boot to Android.

Flash Boot.img

Hello everyone. My doubt is the next: Im in bootloop with 10.2.2 Global... so, could I flash boot.img from a AOSP rom 8.1 based, or even flash Pie Beta boot.img?

Categories

Resources