Custom kernel is gone after flashing a rom - Nexus 4 Q&A, Help & Troubleshooting

Why is it that I have to reflash a custom kernel every time I flash the newest build of a rom?

Any time you flash a custom ROM, it will always include some kernel along with it. Hence, when you flash the newest build of a rom, you're also re-flashing the original kernel that it came with.

btse said:
Any time you flash a custom ROM, it will always include some kernel along with it. Hence, when you flash the newest build of a rom, you're also re-flashing the original kernel that it came with.
Click to expand...
Click to collapse
I see. Thanks! So I pretty much gotta flash my own custom kernel every time then?

As far as I know yes. There could possible be some way of flashing without the kernel, but I think it's much safer to just flash the whole custom ROM and then re-flashing your own custom kernel.

Yeah the easiest thing to do is just install the ROM with its kernel then just flash your kernel of choice.
Sent from my Nexus 4 using Tapatalk 2

Related

Stock Kernel

I'm about to flash a kernel and was wondering what I have to do to go back to the stock one. I didn't find a stock flashable kernel in the dev forum but it must be around...
Edit: I'm looking for the stock 2.3.3
joshthewaster said:
I'm about to flash a kernel and was wondering what I have to do to go back to the stock one. I didn't find a stock flashable kernel in the dev forum but it must be around...
Edit: I'm looking for the stock 2.3.3
Click to expand...
Click to collapse
easiest newbie method is to just reflash the stock rom
Does a stock kernel just not exist? I don't want to have to change roms to change kernels, if possible.
joshthewaster said:
Does a stock kernel just not exist? I don't want to have to change roms to change kernels, if possible.
Click to expand...
Click to collapse
nandroid backup... or flash CM7, flashing CM7 flashes the stock kernel but it overrides your ROM

[Q] Switching ROM and Kernel precaustions

If you flash a brand new ROM to your phone does the kernel (and RAMDISK changes) go away?
I'm asking because I have another Kernel and ROM running on my phone and I'm thinking of flashing a new (completley different) kernel and ROM as well, a lot of kernel developers require you flash a stock kernel before switching to another kernel, then flash the kernel of choice.
I'm scared to brick my phone...
So what would be the steps I need to take to change kernels and update my current ROM?
mastrgamr said:
If you flash a brand new ROM to your phone does the kernel (and RAMDISK changes) go away?
I'm asking because I have another Kernel and ROM running on my phone and I'm thinking of flashing a new (completley different) kernel and ROM as well, a lot of kernel developers require you flash a stock kernel before switching to another kernel, then flash the kernel of choice.
I'm scared to brick my phone...
So what would be the steps I need to take to change kernels and update my current ROM?
Click to expand...
Click to collapse
Which kernel are you planning to switch to?
When you need to flash the stock kernel first in order to flash their kernel, they will tell you in the OP. You can flash the stock kernel every time you flash a new kernel if you like.
I'm swittching from Motley to franco, I'm staying on the same ROM (xylon)
mastrgamr said:
I'm swittching from Motley to franco, I'm staying on the same ROM (xylon)
Click to expand...
Click to collapse
Just flash Franco's kernel as is. No need to do anything else.
Sent from my Nexus 4 using Tapatalk 2

[Q] Flashing kernel issue

I recently rooted my nexus 7 and now im trying to flash clemsyn's kernel to it, however i haven't been able to get it to work. I've tried rebooting into recovery and wiping the cache and dalvic cache, then installing from zip, but it always fails. any idea why?
You flashed it on which rom? I think it's not compatible with your rom.
Ensure you read the OP of the thread to verify that the kernel is compatible with the version of Android that you're using. Remember, always RTFM, even if you think you know what you're doing.
Do you have to flash a ROM before you flash a kernel?
The Drugs said:
Do you have to flash a ROM before you flash a kernel?
Click to expand...
Click to collapse
Roms include a kernel and will overwrite the previously installed kernel. If you want to flash a custom kernel in conjunction with a rom, you always flash the kernel after the rom.
Oh! That makes sense. I'll try that later and see if it works

Flashing a Custom Kernel

Hi, I have some question about flashing a custom kernel (+Franco kernel):
1. Let's say I have Franco Kernel and a new version comes out, do I need to flash it again or I can use the app to flash it? Also, do I need to wipe something before I flash?
2. If I switch to another kernel from Franco, what exactly do I have to do? Just wipe cache+dalvik and re-flash my rom?
3. Will I have to re-flash the kernel after each rom update?
Thanks!
Hi I'm not sure about #1 because I don't use Franco's app, but 2) Sometimes you can just flash a new kernel over the old one. Personally I prefer to dirty flash my ROM, then flash my choice of kernel. 3) You'll need to flash the kernel after a ROM update. The ROM is compiled with it's own kernel.
chrisbo4 said:
Hi I'm not sure about #1 because I don't use Franco's app, but 2) Sometimes you can just flash a new kernel over the old one. Personally I prefer to dirty flash my ROM, then flash my choice of kernel. 3) You'll need to flash the kernel after a ROM update. The ROM is compiled with it's own kernel.
Click to expand...
Click to collapse
So I need to dirty flash my ROM (=wipe cache+dalvik & flash) then install a new kernel? Thanks.
Still need an answer to Q1 though
I use CM 10.1 and just flash the new Franco kernel ZIP over the old one and it's been fine...
[email protected] said:
Hi, I have some question about flashing a custom kernel (+Franco kernel):
1. Let's say I have Franco Kernel and a new version comes out, do I need to flash it again or I can use the app to flash it? Also, do I need to wipe something before I flash?
2. If I switch to another kernel from Franco, what exactly do I have to do? Just wipe cache+dalvik and re-flash my rom?
3. Will I have to re-flash the kernel after each rom update?
Thanks!
Click to expand...
Click to collapse
1. When a new version comes out all you have to do is flash the new version on top of the old one. You can simply download it from the app and let it do a auto-flash. No need to wipe anything.
2. It depends. Some kernels will need you to flash the stock kernel first then flash the custom kernel you want to you. Ex. Faux kernel. Don't forget to read the first post of every thread to look for installation instructions.
3. Yes, you will need to reflash the kernel after a rom is flashed. Make sure to flash the kernel last.
Sent from my SGH-T999 using Tapatalk 2
scream4cheese said:
1. When a new version comes out all you have to do is flash the new version on top of the old one. You can simply download it from the app and let it do a auto-flash. No need to wipe anything.
2. It depends. Some kernels will need you to flash the stock kernel first then flash the custom kernel you want to you. Ex. Faux kernel. Don't forget to read the first post of every thread to look for installation instructions.
3. Yes, you will need to reflash the kernel after a rom is flashed. Make sure to flash the kernel last.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
1. Does the app need a special recovery to work? I have a TWRP recovery..
2. What do you mean by stock kernel? And is it correct that Franco is the only kernel that I need to re-flash my ROM to switch to another kernel because it changes something in the ramdisk? If so, do I just need to do a dirty flash?
Thanks.
[email protected] said:
1. Does the app need a special recovery to work? I have a TWRP recovery..
2. What do you mean by stock kernel? And is it correct that Franco is the only kernel that I need to re-flash my ROM to switch to another kernel because it changes something in the ramdisk? If so, do I just need to do a dirty flash?
Thanks.
Click to expand...
Click to collapse
1. No special recovery needed. I too use TWRP.
2. Nothing special need be done to flash to Franco. Going from Franco to another kernel it is easiest to reflash your ROM. You are correct about the ramdisk.
grubbster said:
1. No special recovery needed. I too use TWRP.
2. Nothing special need be done to flash to Franco. Going from Franco to another kernel it is easiest to reflash your ROM. You are correct about the ramdisk.
Click to expand...
Click to collapse
2. So going from Franco to another kernel - just dirty flash without a factory reset?
Thank you very much.
[email protected] said:
1. Does the app need a special recovery to work? I have a TWRP recovery..
2. What do you mean by stock kernel? And is it correct that Franco is the only kernel that I need to re-flash my ROM to switch to another kernel because it changes something in the ramdisk? If so, do I just need to do a dirty flash?
Thanks.
Click to expand...
Click to collapse
1. Having a recovery is good. When you download a new kernel there is an option to let it do a auto-flash and it'll flash it you. The phone will reboot itself when it's done.
2. Some custom kernels need to flash the stock kernel, (the original factory kernel that it's shipped in) if you're going to switch to another custom kernel like Faux's kernel. So when the next time you want to make a switch to another kernel, please make sure to read the first post of the thread to look for instructions to install the kernel. If you're updating to a new rom or switching to a new rom, you will need to flash whichever custom kernel you were using on top of the updated/new rom. When you flash a new rom, it is recommended to do a full wipe to avoid issues. After every rom flash you need to flash the kernel.
http://forum.xda-developers.com/showthread.php?t=2008222
---------- Post added at 10:20 AM ---------- Previous post was at 10:19 AM ----------
[email protected] said:
2. So going from Franco to another kernel - just dirty flash without a factory reset?
Thank you very much.
Click to expand...
Click to collapse
No. no. You don't need to do a factory reset. I don't know how many times I'm going to say this but read my answers to all of your questions again. (Don't mean to sound like a jerk or anything)
scream4cheese said:
1. Having a recovery is good. When you download a new kernel there is an option to let it do a auto-flash and it'll flash it you. The phone will reboot itself when it's done.
2. Some custom kernels need to flash the stock kernel, (the original factory kernel that it's shipped in) if you're going to switch to another custom kernel like Faux's kernel. So when the next time you want to make a switch to another kernel, please make sure to read the first post of the thread to look for instructions to install the kernel. If you're updating to a new rom or switching to a new rom, you will need to flash whichever custom kernel you were using on top of the updated/new rom. When you flash a new rom, it is recommended to do a full wipe to avoid issues. After every rom flash you need to flash the kernel.
http://forum.xda-developers.com/showthread.php?t=2008222
---------- Post added at 10:20 AM ---------- Previous post was at 10:19 AM ----------
No. no. You don't need to do a factory reset. I don't know how many times I'm going to say this but read my answers to all of your questions again. (Don't mean to sound like a jerk or anything)
Click to expand...
Click to collapse
I think that's what he was saying/asking... That's correct, no need to factory reset.

[Q] Need stock kernel for I9505

Hello, I have I9505 with Philz Recovery and SlimBean ROM.
I've tried to flash this kernel, but my device stuck at boot,
tried flashing Chronic 4.2 kernel - reboots after 1-2 minutes.
Please, give the link to stock kernel (as far as I remember is was something like "....3.4.0.....")
Kondra007 said:
Hello, I have I9505 with Philz Recovery and SlimBean ROM.
I've tried to flash this kernel, but my device stuck at boot,
tried flashing Chronic 4.2 kernel - reboots after 1-2 minutes.
Please, give the link to stock kernel (as far as I remember is was something like "....3.4.0.....")
Click to expand...
Click to collapse
http://samsung-updates.com/device/?id=GT-I9505
go to the link click on the firmware download u using get the kernal anf flash it
Is it compatible with custom ROM and custom Recovery?
Kondra007 said:
Is it compatible with custom ROM and custom Recovery?
Click to expand...
Click to collapse
Why would you flash a stock kernel on a custom rom? No benefit in that, only possible trouble. It is better to stick with the kernel that comes with the rom.

Categories

Resources