Flashing a kernel - Nexus 4 Q&A, Help & Troubleshooting

I'm new to the Nexus 4 but not new to flashing custom roms etc.
I've just flashed a new rom and want to flash a different kernel over it. Do I need to do any wipes at all? Or can I just flash straight over it?

biron_w said:
I'm new to the Nexus 4 but not new to flashing custom roms etc.
I've just flashed a new rom and want to flash a different kernel over it. Do I need to do any wipes at all? Or can I just flash straight over it?
Click to expand...
Click to collapse
just flash over, no matter what anyone says. wiping anything has nothing to do with kernels.

simms22 said:
just flash over, no matter what anyone says. wiping anything has nothing to do with kernels.
Click to expand...
Click to collapse
Cheers for the (very fast) reply :good:

Related

[Q] Flash Kernels

Just a noob question, I know...
But Is it stable and secure to flash a diferent Kernel (not a update, a kernel from other dev) into our dear GNex without wiping everything and starting all over again??
Cheers
If you're unlocked go ahead and flash. No need to wipe anything for just a kernel install.
davisac said:
If you're unlocked go ahead and flash. No need to wipe anything for just a kernel install.
Click to expand...
Click to collapse
Yes it's unlocked for months, i've already install a bunch of roms and custom kernels, but i never installed a new kernel without a full wipe.
TY

[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

Nexus 4 lag after kernel restore

Hi Everyone,
I have stock rom with franco kernel. Yesterday I reverted back to stock kernel and noticed that it lags now when I wake it from the unlock screen. I did a factory reset, but the lag is still there. This was never there when I had it from the begining. Should I flash the factory image?? Can the backup stock kernel get corrupted?
delf0s said:
Hi Everyone,
I have stock rom with franco kernel. Yesterday I reverted back to stock kernel and noticed that it lags now when I wake it from the unlock screen. I did a factory reset, but the lag is still there. This was never there when I had it from the begining. Should I flash the factory image?? Can the backup stock kernel get corrupted?
Click to expand...
Click to collapse
Try _motley's reset kernel, it restores other files that may have been changed too
http://forum.xda-developers.com/attachment.php?attachmentid=1737875&d=1361118181
Edit.. Note the link is the 4.2.2 version, check his thread if you need 4.2.1 reset.
delf0s said:
Hi Everyone,
I have stock rom with franco kernel. Yesterday I reverted back to stock kernel and noticed that it lags now when I wake it from the unlock screen. I did a factory reset, but the lag is still there. This was never there when I had it from the begining. Should I flash the factory image?? Can the backup stock kernel get corrupted?
Click to expand...
Click to collapse
after using franco kernel, you have to reflash your rom then kernel. franco kernel hides tweaks inits ramdisk. flashing another kernel on top will not change this ramdisk, so you have to flash your rom first(no wiping anything).
As I stated above...can I just fastboot then flash the factory image??
delf0s said:
As I stated above...can I just fastboot then flash the factory image??
Click to expand...
Click to collapse
absolutely. then youll need to reroot. its MUCH easier to flash a rooted stock(thats what im guessing you are using) rom though.
simms22 said:
absolutely. then youll need to reroot. its MUCH easier to flash a rooted stock(thats what im guessing you are using) rom though.
Click to expand...
Click to collapse
I would have to flash a custom recovery...then download a CWM stock rom and flash, huh? I currently have stock recovery
delf0s said:
I would have to flash a custom recovery...then download a CWM stock rom and flash, huh? I currently have stock recovery
Click to expand...
Click to collapse
You can fastboot flash the OEM boot.img; I'm guessing you fastbooted Franco's kernel?
http://forum.xda-developers.com/attachment.php?attachmentid=&d=1361814949
Flash this reset kernel which has the INITFRAMS.
all will be ok.
You don't have to reflash the whole phone.
Cheers
Sent from my Nexus 4 using xda premium
CMNein said:
You can fastboot flash the OEM boot.img; I'm guessing you fastbooted Franco's kernel?
Click to expand...
Click to collapse
No...I flashed the Franco kernel using the updater app.
mariosraptor said:
http://forum.xda-developers.com/attachment.php?attachmentid=&d=1361814949
Flash this reset kernel which has the INITFRAMS.
all will be ok.
You don't have to reflash the whole phone.
Cheers
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Link is broken
delf0s said:
No...I flashed the Franco kernel using the updater app.
Click to expand...
Click to collapse
Either way, you can just flash the stock boot.img via fastboot and you're good to go.
CMNein said:
Either way, you can just flash the stock boot.img via fastboot and you're good to go.
Click to expand...
Click to collapse
I suppose I can...however....I currently have a chromebook (ARM)...dunno if I can use fastboot with it. I wanted a solution I could do straight on my phone, like, flashing CWM recovery, then downloading the stock (rooted, CWM flashable) ROM...and flashing it.
Get it from here http://forum.xda-developers.com/showthread.php?t=2101488
First post at attachments
Sent from my Nexus 4 using xda premium
---------- Post added at 11:50 PM ---------- Previous post was at 11:49 PM ----------
delf0s said:
I suppose I can...however....I currently have a chromebook (ARM)...dunno if I can use fastboot with it. I wanted a solution I could do straight on my phone, like, flashing CWM recovery, then downloading the stock (rooted, CWM flashable) ROM...and flashing it.
Click to expand...
Click to collapse
Just cause i am curious, why did you changed from Franco's?
Sent from my Nexus 4 using xda premium
simms22 said:
absolutely. then youll need to reroot. its MUCH easier to flash a rooted stock(thats what im guessing you are using) rom though.
Click to expand...
Click to collapse
Could you clarify this for me, If in the future I need to do it? So, after leaving franco kernel, i.e. If I'm using franco kernel and wanna go back to completely stock again; before flashing stock I'll need to re-flash the current rom that I'm using, to re-flash the rom's kernel and this way replace the ramdisk to the stock from rom? If I'm wrong, please correct me; you guys are awesome!
vjales said:
Could you clarify this for me, If in the future I need to do it? So, after leaving franco kernel, i.e. If I'm using franco kernel and wanna go back to completely stock again; before flashing stock I'll need to re-flash the current rom that I'm using, to re-flash the rom's kernel and this way replace the ramdisk to the stock from rom? If I'm wrong, please correct me; you guys are awesome!
Click to expand...
Click to collapse
yes, kinda. reflashing your rom will replace francos ramdisk. all the other kernels use anykernel, so dont have ramdisk included. generally, its only after using franco kernel do you want to do this, the other kernels you can flash right over each other. anykernel kernels grab the available ramdisk. theres plenty of stock/aosp rooted roms here on xda, any of them should work for you.

[Q] How to flash different rom with other kernel?

I'm currently using the i9505 GE ROM but it's causing lots of problems (random reboots, can't make phone calls) so since I am new to custom ROMs I don't know how to safely flash another rom if the one I am using now is using a different kernel. Help
poninaine said:
I'm currently using the i9505 GE ROM but it's causing lots of problems (random reboots, can't make phone calls) so since I am new to custom ROMs I don't know how to safely flash another rom if the one I am using now is using a different kernel. Help
Click to expand...
Click to collapse
For each rom has instructions on how to install
These are really basic question. You should already have know the awnser for it, before you started flashing.
Forget about kernels etc for a while. It's not important for you.
Just fully wipe and flash the rom you want with the custom recovery.
Lennyz1988 said:
These are really basic question. You should already have know the awnser for it, before you started flashing.
Forget about kernels etc for a while. It's not important for you.
Just fully wipe and flash the rom you want with the custom recovery.
Click to expand...
Click to collapse
I know it's basic but I don't know where to find the answers.
So is it safe to flash the stock rom while i'm on a GE faux123 kernel?
poninaine said:
I know it's basic but I don't know where to find the answers.
So is it safe to flash the stock rom while i'm on a GE faux123 kernel?
Click to expand...
Click to collapse
Yes you are mixing things up.
A kernel has nothing to do with flashing roms. It doesn't matter on what kernel you are in order to flash.
So forget about kernels, it's not important for you.

I9505 KT-SGS4 won't boot

Hi!
After months of using my S4, I decided to flash custom ROM and kernel. Unfortunately, after flashing KT-SGS4 kernel, my phone gets stuck in Galaxy S4 logo and keeps flashing blue LED. I've tried using CM11 and AOKP, same results.
I hope, someone know how to fix it, thanks!
Mastirion said:
Hi!
After months of using my S4, I decided to flash custom ROM and kernel. Unfortunately, after flashing KT-SGS4 kernel, my phone gets stuck in Galaxy S4 logo and keeps flashing blue LED. I've tried using CM11 and AOKP, same results.
I hope, someone know how to fix it, thanks!
Click to expand...
Click to collapse
You have to factory reset when installing a custom rom
MrAndroid12 said:
You have to factory reset when installing a custom rom
Click to expand...
Click to collapse
I know, I'm always doing cache and data wipe. Roms are working correctly, but when i try to change kernel, this happens.
Then you are flashing the wrong kernel. There are 3 different types of that kernel.
Lennyz1988 said:
Then you are flashing the wrong kernel. There are 3 different types of that kernel.
Click to expand...
Click to collapse
I tried all of them in case if this one was wrong, maybe if there is said aosp, aokp is out of reach.

Categories

Resources