[Q] Back to stock from custom kernel? - Nexus 5 Q&A, Help & Troubleshooting

I'm confused about revert back from custom kernel. If I flash some custom kernel that changing the ramdisk or other binaries how do I reset kernel partition before moving back to stock or another kernel without issues?

micens said:
I'm confused about revert back from custom kernel. If I flash some custom kernel that changing the ramdisk or other binaries how do I reset kernel partition before moving back to stock or another kernel without issues?
Click to expand...
Click to collapse
for stock, just flash the stock kernel(zipped or boot.img) or reflash the rom without wiping. for going to another custom kernel, just flash the other kernel over without wiping anything. or you can reflash your rom, then the new kernel, without wiping anything.

Hi,
Just in case for a stock kernel flashable zip: http://forum.xda-developers.com/showthread.php?t=2518816.

Thank you
So, if I flash the stock kernel from recovery it returns everything was changed by custom kernel?
That`s good, and so easy

micens said:
Thank you
So, if I flash the stock kernel from recovery it returns everything was changed by custom kernel?
That`s good, and so easy
Click to expand...
Click to collapse
everything within the kernels range, yes. but a few kernels include system files, it wont change those files. reflashing your rom(without wiping) will get those files back. most kernels dont touch system files, but a very few kernels do.

Ok. Thank`s again :good:

One question more
When I did Full Wipe, everything about custom kernel will gone? Because I don`t understand about changed ramdisk and this staff

micens said:
One question more
When I did Full Wipe, everything about custom kernel will gone? Because I don`t understand about changed ramdisk and this staff
Click to expand...
Click to collapse
no. only your user data will go. kernel/rom stays.

Thank`s,
But, with Full Wipe thing I mean Factory reset + Wipe Cache + Wipe Dalvik Cache + Manual Format /system. Do I need doing "fastboot erase boot" or something like this to full Wipe custom kernel?

micens said:
Thank`s,
But, with Full Wipe thing I mean Factory reset + Wipe Cache + Wipe Dalvik Cache + Manual Format /system. Do I need doing "fastboot erase boot" or something like this to full Wipe custom kernel?
Click to expand...
Click to collapse
all that does is wipe data.
you cant just wipe a kernel away. you need to replace it. you phone can not boot or operate in any way without a kernel. a kernel connects the os to the processor to the battery to the rest of the hardware. if you erase your kernel, you will have a non functional electronic device. you will either have to flash a different kernel, or reflash your rom.

if you erase your kernel, you will have a non functional electronic device. you will either have to flash a different kernel, or reflash your rom.
Click to expand...
Click to collapse
Yes I know this... When erase kernel with "fastboot erase boot" and then flash another kernel that`s it? No data from other kernel like changed ramdisk leave somewhere? That part of this I do not understand about changed ramdisk and other binaries from some kind of custom kernel.

micens said:
Yes I know this... When erase kernel with "fastboot erase boot" and then flash another kernel that`s it? No data from other kernel like changed ramdisk leave somewhere? That part of this I do not understand about changed ramdisk and other binaries from some kind of custom kernel.
Click to expand...
Click to collapse
Just flash another kernel. You can flash kernels over each other with no problem.
Sent from my Nexus 5

micens said:
Yes I know this... When erase kernel with "fastboot erase boot" and then flash another kernel that`s it? No data from other kernel like changed ramdisk leave somewhere? That part of this I do not understand about changed ramdisk and other binaries from some kind of custom kernel.
Click to expand...
Click to collapse
you can do that if you like.
anyways, if a kernel has its own ramdisk, and not an anykernel, then the ramdisk will get replaced every time you flash a kernel. if you are flashing an anykernel, then its best to either reflash your rom first or the roms kernel(stock kernel if stock rom). you can do it your way too, erase than flash

That` s what interested me
Thank you very much

Related

How to get back stock kernel?

When I did my wipes flashed I somehow had Air Kernel still, I think? I've been on Matr1x, but I'm not sure how to get back to the stock kernel reliably and without erasing anything.
torchie said:
When I did my wipes flashed I somehow had Air Kernel still, I think? I've been on Matr1x, but I'm not sure how to get back to the stock kernel reliably and without erasing anything.
Click to expand...
Click to collapse
Just wipe cache, dalvik and flash the stock kernel. You can find them here in the forums.
mdean1981 said:
Just wipe cache, dalvik and flash the stock kernel. You can find them here in the forums.
Click to expand...
Click to collapse
I can't find them in the forums. There's just custom kernels.
torchie said:
I can't find them in the forums. There's just custom kernels.
Click to expand...
Click to collapse
flash the stock ROM without wiping.

[Q] Flashing the kernel - questions

I installed the beastmode kernel on my phone a while back. I did this after flashing cleanrom 4.2.2, as I was getting what I thought were dropout issues. However, if I would like to flash my phone to a different rom, do I need to reflash the kernel back to stock, or will the rom already have the kernel included? I made a backup of my phone in TWRP before updating the kernal. If I restore the backup, will the kernel revert back to the stock kernel (I'm S-OFF)?
Thanks!
Since you are s-off, if you flash a new ROM, the kernel will also be flashed. The kernel is typically flashed automatically whenever a ROM is flashed. The exception, for those that are still s-on the kernel will not flash automatically, but needs to be done separately in fastboot.
If you simply want to revert to stock kernel and stay on the current ROM, then you can restore your nandroid (which was made pre-Beastmode) or "dirty flash" the ROM (just wipe Dalvik and cache, then flash it again).
redpoint73 said:
Since you are s-off, if you flash a new ROM, the kernel will also be flashed. The kernel is typically flashed automatically whenever a ROM is flashed. The exception, for those that are still s-on the kernel will not flash automatically, but needs to be done separately in fastboot.
If you simply want to revert to stock kernel and stay on the current ROM, then you can restore your nandroid (which was made pre-Beastmode) or "dirty flash" the ROM (just wipe Dalvik and cache, then flash it again).
Click to expand...
Click to collapse
Thank you for your quick response!!!

[Q] Hey,I need some help

Hello,i need some help regarding wipe.. I have the Faux kernel and stock Rom.I want to make a fresh install,if i will wipe the phone does the kernel deletes? Thank you
"Wiping" only regards data and cache partitions. It does not interfere with /system or /boot, so no, wiping won't delete the kernel... obviously. Otherwise, your phone wouldn't boot right?
ToastnButter said:
"Wiping" only regards data and cache partitions. It does not interfere with /system or /boot, so no, wiping won't delete the kernel... obviously. Otherwise, your phone wouldn't boot right?
Click to expand...
Click to collapse
So,what i should do now for a new ROM/KERNEL?
Root your phone, get custom recovery and start flashing.
OR, if you want to go back to stock, there's a detailed tutorial somewhere in the forums
ToastnButter said:
Root your phone, get custom recovery and start flashing.
OR, if you want to go back to stock, there's a detailed tutorial somewhere in the forums
Click to expand...
Click to collapse
I have CWM,so i just need to re-flash the new kernel?
Yup.
ToastnButter said:
Yup.
Click to expand...
Click to collapse
I know that Pink kernel needs a custom rom,so now i just flash the new rom and after the new kernel right?
But Faux Kernel says that doesnt support the custom rom,wtf
Well you ALWAYS have to make sure it's compatible. Otherwise your phone won't boot, and you'll loose 10 minutes of your life getting it back on its feet.

Android M - Kernel

I've rooted my phone using the despair kernel on Android M. I flashed via recovery but experiencing WiFi and cell drop outs every ten minutes simultaneously. Not had much experience flashing kernels - is there anything else I should have done?
You shoulda just used blackbird5308's stock root enabled kernel
Sent from my Nexus 5 using Tapatalk
Why should I? Are there known issues on despair? Can you just flash kernels without wiping?
Jinson7 said:
Why should I? Are there known issues on despair? Can you just flash kernels without wiping?
Click to expand...
Click to collapse
GIVE IT A SHOT:
you could try StephanMc's kernel. it's stock m preview 3 with root.
if your problems don't occur with this kernel they were either related to a bad dirty flash or related to the kernel.
here's the link:
http://forum.xda-developers.com/goo...om-android-m-preview-2-flashable-zip-t3157299
FROM MY EXPERIENCE:
i'm also running m preview 3 and if i want to try a new custom kernel i always flash StephanMc's kernel first (because it's purely stock + root).
then i wipe dalvik + cache and flash the desired kernel.
if you just want a rooted phone, you can simply stick to StephanMc's kernel.
PLEASE NOTICE:
some custom kernels recommend to wipe system and data and install the stock image (or custom rom) too.
IMPORTANT:
always backup your data! (see titanium backup)
SUMMARY:
as long as flashing stock kernel and wiping dalvik+cache before flashing my chosen custom kernel i will stick to this.
if you experiencing any problems completely wipe your phone, flash stock image, flash custom rom/kernel and restore your data backup.

little help needed

Guys i want to try new kernels but no one mentioned how to revert back if iam not satisfied with the kernels or just i have to try different kernels as i see a note saying kernels should be flashed on stock kernel so if i want to flash another kernel over existing custom kernel i have to get back to stock how can i do that will twrp restore works and what partions should i have to restore
Manivannan9444 said:
Guys i want to try new kernels but no one mentioned how to revert back if iam not satisfied with the kernels or just i have to try different kernels as i see a note saying kernels should be flashed on stock kernel so if i want to flash another kernel over existing custom kernel i have to get back to stock how can i do that will twrp restore works and what partions should i have to restore
Click to expand...
Click to collapse
should just flash stock boot img if you want to over ride the kernel wipe the cache as of now none of the kernels use ram disc changes so dirty flashing custom kernel over another works fine for the time being
strikerdj2011 said:
should just flash stock boot img if you want to over ride the kernel wipe the cache as of now none of the kernels use ram disc changes so dirty flashing custom kernel over another works fine for the time being
Click to expand...
Click to collapse
Is this link
Not sure if flashify works with dual partitions or not but it allows u to back up boot.img
You can always just revert back to stock by downloading the full rom from oneplus, and installing it through official twrp. Usually recommend doing a wipe of everything system included, and then adb side loading the full rom. It will state there is no os installed at the end when attempting to reboot, just continue on and your phone will boot.

Categories

Resources