[Q] changing kernels? - Nexus 5 Q&A, Help & Troubleshooting

I've looked into many threads, but have still not been able to find a definitive answer: when changing kernels (going for example from ElementalX to Franco or Purify) should I do a dirty re-flash of the rom and then flash the new kernel or will just a flash of the new kernel be enough?
I know it's been asked before, but I can't seem to find a clear answer.
Thanks
Alex

alexm231 said:
I've looked into many threads, but have still not been able to find a definitive answer: when changing kernels (going for example from ElementalX to Franco or Purify) should I do a dirty re-flash of the rom and then flash the new kernel or will just a flash of the new kernel be enough?
I know it's been asked before, but I can't seem to find a clear answer.
Thanks
Alex
Click to expand...
Click to collapse
1st option

Primokorn said:
1st option
Click to expand...
Click to collapse
Thanks for the reply.
So (just to make sure I have it correct) right now I am running Purity + Purify. If I want to switch to a Purity + Franco setup, I need to dirty flash Purity rom (in which case it brings the kernel back to the standard Purity kernel) and then Franco kernel after that, right?
Do I need to wipe cache or anything else?
Thanks again for all the help
Alex

alexm231 said:
Thanks for the reply.
So (just to make sure I have it correct) right now I am running Purity + Purify. If I want to switch to a Purity + Franco setup, I need to dirty flash Purity rom (in which case it brings the kernel back to the standard Purity kernel) and then Franco kernel after that, right?
Do I need to wipe cache or anything else?
Thanks again for all the help
Alex
Click to expand...
Click to collapse
You're right. To prevent any issue it's better to follow this rule regardless of the custom kernel. We need to dirty flash our current rom due to modifications done by the kernel on the ramdisk.
You never need to wipe before flashing a kernel.

Primokorn said:
You're right. To prevent any issue it's better to follow this rule regardless of the custom kernel. We need to dirty flash our current rom due to modifications done by the kernel on the ramdisk.
You never need to wipe before flashing a kernel.
Click to expand...
Click to collapse
Great. Thanks so much for the detailed answer, it clears up my confusion!
Now off to try Franco's kernel
Alex

Primokorn said:
You're right. To prevent any issue it's better to follow this rule regardless of the custom kernel. We need to dirty flash our current rom due to modifications done by the kernel on the ramdisk.
You never need to wipe before flashing a kernel.
Click to expand...
Click to collapse
I actually have an additional question: do we need the same process even if we're talking about the newer version of the same kernel? Like going from an older version of Franco's to the newest
Alex

No only when you change kernel you need to do it.
Sent from my Nexus 5 using Tapatalk

kufikugel said:
No only when you change kernel you need to do it.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thank you, I promise I will (try) not (to) ask any more silly questions
Alex

alexm231 said:
Thank you, I promise I will (try) not (to) ask any more silly questions
Alex
Click to expand...
Click to collapse
Its better to ask "Silly" questions and understand what you're doing than it is to brick your phone then ask for help.
We'll answer your questions, dont worry. Just ensure you read all the sticky threads in Q&A and General.

rootSU said:
Its better to ask "Silly" questions and understand what you're doing than it is to brick your phone then ask for help.
We'll answer your questions, dont worry. Just ensure you read all the sticky threads in Q&A and General.
Click to expand...
Click to collapse
Yes, I consider your guideline (on your signature) very good advice indeed.
Thanks again to all
Alex

Just wanted to add to this...
If I'm on the stock ROM. I decide to flash elementalx. Then, want to switch to Franco or something, would I need to flash the stock img? Or can i just flash the stock kernel?
Sent from my Nexus 5 using Tapatalk

justinisloco said:
Just wanted to add to this...
If I'm on the stock ROM. I decide to flash elementalx. Then, want to switch to Franco or something, would I need to flash the stock img? Or can i just flash the stock kernel?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Wondering the same thing. If I am currently on stock rom with franco kernel, in order to switch over to elemental do I have to flash the stock rom zip from the thread here on XDA and then install the elemental kernel?

matts290 said:
Wondering the same thing. If I am currently on stock rom with franco kernel, in order to switch over to elemental do I have to flash the stock rom zip from the thread here on XDA and then install the elemental kernel?
Click to expand...
Click to collapse
I know I had to do that when I flashed elemental. Otherwise some apps won't open. But now I want to find out was the the full correct way? Or was it the lazy way
Sent from my Nexus 5 using Tapatalk

justinisloco said:
Just wanted to add to this...
If I'm on the stock ROM. I decide to flash elementalx. Then, want to switch to Franco or something, would I need to flash the stock img? Or can i just flash the stock kernel?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
matts290 said:
Wondering the same thing. If I am currently on stock rom with franco kernel, in order to switch over to elemental do I have to flash the stock rom zip from the thread here on XDA and then install the elemental kernel?
Click to expand...
Click to collapse
Flash the stock boot.img and system.img and then flash the kernel you want to change to..
I have also tried just flashing the stock boot.img and then the custom kernel.. Sometimes it works, sometimes it doesn't. So I would reccomend flashing both! (boot and system)

also check to see if the original kernel left any init.d files, some kernels do. you would want to delete them, as those could, probably would, not play well with your next kernel.

simms22 said:
also check to see if the original kernel left any init.d files, some kernels do. you would want to delete them, as those could, probably would, not play well with your next kernel.
Click to expand...
Click to collapse
another noob question,
does your advice still applies if someone flashed both stock system.img and stock boot.img?
if it is where that file will be located?
thanks.

akmsr said:
another noob question,
does your advice still applies if someone flashed both stock system.img and stock boot.img?
if it is where that file will be located?
thanks.
Click to expand...
Click to collapse
yes. they arent located in either of those locations, so my advice applies, and is the only reason why i posted this. they are located in /etc/init.d/. you either dont have that location (best option), have it but an empty folder, or have an init.d folder with files in it. if there are files there, delete them.

Flashing a system.img will overwrite init.d scripts. /etc is a symbolic link to /system/etc so when you replace /system/etc with whatever is in a ROM.zip or a system.img, these changes apply to /etc too.
If you look in any ROM.zip or kernel.zip, they all flash their scripts to /system/etc/init.d
Sent from my Nexus 5 using Tapatalk

Related

HTC One XL oc tools

Hi. Wich tools can be used to overclock a little the cpu, and/or gpu?
I've noticed some performance drop in 3d since sense 5, comparing with sense 4. Specially with WAZE app.
Thanks all.
You first need a custom kernel to OC. Then you can use apps like Trickster Mod, Kernel Tuner, and others to tune the kernel settings.
Sent from my Evita.
Can you give me some help to go with a custom kernel? Does they improve a lot over the default ones? I was looking at BEASTMODE rld 3.5...
There are only two available for Sense 5, Beastmode and Elemental. Asking for a suggestion isn't allowed so I can't do that. They're both pretty good though.
Sent from my Evita.
OC'ing HTC One X
Google and/or YouTube Beastmode. Plenty of info available.
FedericoUY said:
Can you give me some help to go with a custom kernel? Does they improve a lot over the default ones? I was looking at BEASTMODE rld 3.5...
Click to expand...
Click to collapse
If you are looking to overclock, then a custom kernel is a must, so in that way its an "improvement" (at least more features) than stock kernel. On a stock kernel, CPU frequencies over the "official" spec will not be available (not even appear) on overclocking tools/apps. Also, custom kernel will generally give more choice of governors, if you are into such things.
Ok, after I get a solution with the connectivity problem I'll try to switch kernel. But what about 3d performance loss with this now rom, particulary with sense 5 I guess? Is that normal?
I never noticed a performance loss with 3d on Sense 5, but you can OC both 2d and 3d with the Beastmode kernel.
Sent from my Evita.
Ok, the kernel installation is just from twrp like a rom choosing wich one to install right? Are there any noticeable gains with them? Whether it is beastmode or elemental x?
FedericoUY said:
Ok, the kernel installation is just from twrp like a rom choosing wich one to install right? Are there any noticeable gains with them? Whether it is beastmode or elemental x?
Click to expand...
Click to collapse
Yes, kernels are flashed in recovery. Beastmode is s-on friendly, but Elemental requires s-off according to the top post of that thread.
Whether you notice any gains will probably depend on how you use your phone and how you tweak, so I don't think there is any blanket response to that question. If you have given this much thought to it, just go ahead and flash. You can always dirty flash the ROM to go back to stock kernel, if you don't like the results. Or make a nandroid backup before you flash the kernel, which I recommend before flashing anything, anyway.
If I flash a kernel, whether elemental or beastmode, is there a way to return to orginal kernel only without flashing the entire rom?
You only need to dirty flash the ROM, that's flashing the ROM again without wiping anything except cache and dalvik. All of your settings, apps, and so on will remain, you'll actually not notice any changes at all. If for some reason you don't want to do that you can just flash the boot.img from the ROM zip to get the stock kernel back.
Sent from my Evita.
That's just what I needed to know. Thanks for the thousanth time timmaaaa. Cheers!
You're welcome, glad to help.
Sent from my Evita.
FedericoUY said:
If I flash a kernel, whether elemental or beastmode, is there a way to return to orginal kernel only without flashing the entire rom?
Click to expand...
Click to collapse
Dude, I already answer that question before you even asked it. Did you read my previous post?
Sent from my HTC One XL using xda app-developers app
redpoint73 said:
Dude, I already answer that question before you even asked it. Did you read my previous post?
Sent from my HTC One XL using xda app-developers app
Click to expand...
Click to collapse
I made a different question later, about just returning to previous kernel WITHOUT flashing the entire rom. I've read your post, and was helpful as well. Thank you.
Hi again. If I backup my current rom (system/data/boot) with the stock kernel, then I flash a moded kernel, and then I restore my backup (maybe because I'm not comfortable with the new flashed kernel for example), the kernel will be restored as it was on the moment of the backup right?
That's correct, but you don't necessarily need to restore the backup to get the stock kernel back. You can just flash the boot.img from the ROM zip, or dirty flash the ROM.
Sent from my Evita.
So flashing the boot.img will only flash the kernel.... Intresting. Thanks!
FedericoUY said:
I made a different question later, about just returning to previous kernel WITHOUT flashing the entire rom..
Click to expand...
Click to collapse
I don't think you understand what a "dirty flash" is. Flash without doing a factory reset (but wipe cache and Dalvik, which you shoud pretty much do with any significant system change). It retains all your settings, apps, etc. which are contained in the user data partition. It only touches the partitions where the ROM itself and kernel are located. It doesn't take any more time than flashing the stock boot.img.
---------- Post added at 10:17 AM ---------- Previous post was at 10:15 AM ----------
FedericoUY said:
So flashing the boot.img will only flash the kernel.... Intresting. Thanks!
Click to expand...
Click to collapse
Actually, there are other contents in boot.img besides just the kernel. But for practical purposes, nothing that significant.

Easy installation of faux123 kernel

Hello. I'd like to install Faux123 kernel in my moto G but I don't have clear how I should install it . I have found the app on the play store Faux123 Kernel Enhancement Pro. Should I have to install it to get work it properly?
mazzy89 said:
Hello. I'd like to install Faux123 kernel in my moto G but I don't have clear how I should install it . I have found the app on the play store Faux123 Kernel Enhancement Pro. Should I have to install it to get work it properly?
Click to expand...
Click to collapse
You dont need the app to use the kernel, but you need to have an unlocked bootloader, a custom recovery (maybe also a rooted phone).
ItzzAce said:
You dont need the app to use the kernel, but you need to have an unlocked bootloader, a custom recovery (maybe also a rooted phone).
Click to expand...
Click to collapse
Ok I understood how to install correctly faux123 kernel. but what should I do if I want to come back to the original kernel?
mazzy89 said:
Ok I understood how to install correctly faux123 kernel. but what should I do if I want to come back to the original kernel?
Click to expand...
Click to collapse
Before installing faux kernel do a nandroid backup in recovery. If you're unsatisfied with faux kernel then restore your backup.
Sent from my XT1033 using Tapatalk
rajibie said:
Before installing faux kernel do a nandroid backup in recovery. If you're unsatisfied with faux kernel then restore your backup.
Sent from my XT1033 using Tapatalk
Click to expand...
Click to collapse
Thank you very much :laugh:
If you want the stock xt1032 kernel send me a pm and I'll send you a link
Sent from my XT1032 using XDA Free mobile app
rajibie said:
Before installing faux kernel do a nandroid backup in recovery. If you're unsatisfied with faux kernel then restore your backup.
Sent from my XT1033 using Tapatalk
Click to expand...
Click to collapse
do you loose data when installing a custom kernel? what are the advantages of this kernel? I am enjoying the stock rom and want to stick with it, but don't know what I'm missing if I switch the kernel to Faux123. Already UL and rooted
3RAN7ON said:
do you loose data when installing a custom kernel? what are the advantages of this kernel? I am enjoying the stock rom and want to stick with it, but don't know what I'm missing if I switch the kernel to Faux123. Already UL and rooted
Click to expand...
Click to collapse
No, you will not loose your data when flashing a new kernel.
Long story short, the advantages are a much more effecient and optimised kernel that will allow for better performance, battery life or a balance between the two depending on what your after and how you setup the kernel... Read, read and when you think you've read enough, read somemore!
giant22000 said:
No, you will not loose your data when flashing a new kernel.
Long story short, the advantages are a much more effecient and optimised kernel that will allow for better performance, battery life or a balance between the two depending on what your after and how you setup the kernel... Read, read and when you think you've read enough, read somemore!
Click to expand...
Click to collapse
Thank you for your reply,
I did read up on this kernel but the info I found wasn't for this device and I didn't know there was anything specific to the Moto G.
3RAN7ON said:
Thank you for your reply,
I did read up on this kernel but the info I found wasn't for this device and I didn't know there was anything specific to the Moto G.
Click to expand...
Click to collapse
Yup sure is, check out his Google+ page and there is plenty of good info there specific to the Moto G.

[Q] Mahdi rom

Does the Mahdi Rom work with Franco Kernel R4? I have this kernel on my stock 1+1 64gb international version. Reading on the developer forums some say yes and some say no that it causes reboot issues. I am just trying to get some clarification on this issue. Thanks
elrey311 said:
Does the Mahdi Rom work with Franco Kernel R4? I have this kernel on my stock 1+1 64gb international version. Reading on the developer forums some say yes and some say no that it causes reboot issues. I am just trying to get some clarification on this issue. Thanks
Click to expand...
Click to collapse
Yes it works with it, but only the version posted in the mahdi rom thread
Few users have reboots, many don't
Mahdi Rom
Do I need to add the kernel off the op page or just use the one I already have in twrp, it is the Franco kernel r4. It is the same one that is on op page I think. I see some people talking about dr87 twrp. I just have the stock 2.7.1.0 twrp installed. Do I need the dr87 twrp? Sorry for the noob questions just trying to it get right. Thanks
elrey311 said:
Do I need to add the kernel off the op page or just use the one I already have in twrp, it is the Franco kernel r4. It is the same one that is on op page I think. I see some people talking about dr87 twrp. I just have the stock 2.7.1.0 twrp installed. Do I need the dr87 twrp? Sorry for the noob questions just trying to it get right. Thanks
Click to expand...
Click to collapse
Use dr87 twrp and dr87 franco kernel r4.
I'm using both on MAHDI and it works perfectly.
MAHDI ROM
zephiK said:
Use dr87 twrp and dr87 franco kernel r4.
I'm using both on MAHDI and it works perfectly.
Click to expand...
Click to collapse
Just one more question. Do you flash the dr87 twrp right over the stock twrp or do you have to remove the stock twrp? Thanks for the quick reply and all the help.
elrey311 said:
Just one more question. Do you flash the dr87 twrp right over the stock twrp or do you have to remove the stock twrp? Thanks for the quick reply and all the help.
Click to expand...
Click to collapse
It doesn't matter what recovery you have prior to flashing, flashing dr87 twrp will override whatever recovery you were using before. Fastboot flash it or use the flashable zip to flash it. Up to you.
MAHDI ROM
zephiK said:
It doesn't matter what recovery you have prior to flashing, flashing dr87 twrp will override whatever recovery you were using before. Fastboot flash it or use the flashable zip to flash it. Up to you.
Click to expand...
Click to collapse
Perfect! Thanks for all the help.
elrey311 said:
Perfect! Thanks for all the help.
Click to expand...
Click to collapse
Anytime help is always just around the corner. Enjoy MAHDI, I certainly do
MAHDI ROM
I flashed the dr87 Franco kernel today and never got past the one+ screen on boot up. I was just wondering if I needed to flash Mahdi rom first and then flash the dr87 Franco kernel? I did get the dr87 twrp installed and all is well with that. I re- flashed the Franco kernel r4 and I'm still on the stock cm rom and everything is good. After reading the MAHDI ROM forum it seems they are having problems with this.
elrey311 said:
I flashed the dr87 Franco kernel today and never got past the one+ screen on boot up. I was just wondering if I needed to flash Mahdi rom first and then flash the dr87 Franco kernel? I did get the dr87 twrp installed and all is well with that. I re- flashed the Franco kernel r4 and I'm still on the stock cm rom and everything is good. After reading the MAHDI ROM forum it seems they are having problems with this.
Click to expand...
Click to collapse
Simply follow the steps in the MAHDI OP post.
Its pretty much.
1. Factory Wipe
2. Flash MAHDI then gapps or kernel (doesnt matter if u flash gapps or kernel first).
MAHDI ROM
zephiK said:
Simply follow the steps in the MAHDI OP post.
Its pretty much.
1. Factory Wipe
2. Flash MAHDI then gapps or kernel (doesnt matter if u flash gapps or kernel first).
Click to expand...
Click to collapse
Sounds good my friend. Thanks for the help.
elrey311 said:
Sounds good my friend. Thanks for the help.
Click to expand...
Click to collapse
Let me know how it goes
edit: seems like the new version of mahdi just released doesnt work with the franco r4 that was posted in op post. works with the version prior to that though.
MAHDI ROM
zephiK said:
Let me know how it goes
edit: seems like the new version of mahdi just released doesnt work with the franco r4 that was posted in op post. works with the version prior to that though.
Click to expand...
Click to collapse
Are they getting all the bugs worked out of this and is it ready to roll? I kinda have been waiting a little while to see how everything is going to play out. It seems like it is getting better and better. Let me know how you feel about it. Thanks
elrey311 said:
Are they getting all the bugs worked out of this and is it ready to roll? I kinda have been waiting a little while to see how everything is going to play out. It seems like it is getting better and better. Let me know how you feel about it. Thanks
Click to expand...
Click to collapse
What do you mean by bugs? Check the third post in Mahdi, theres a working bootable Franco kernel again
MAHDI ROM
zephiK said:
What do you mean by bugs? Check the third post in Mahdi, theres a working bootable Franco kernel again
Click to expand...
Click to collapse
I saw that. It seems like it is working pretty smooth and everybody is is happy with the performance.
elrey311 said:
I saw that. It seems like it is working pretty smooth and everybody is is happy with the performance.
Click to expand...
Click to collapse
Yeah its good.
So does it mean if I have this phone, I can put "[ROM] [4.4.4] [HAMMERHEAD] Mahdi-Rom 2.7 [07/19]" on it ?
benzso63 said:
So does it mean if I have this phone, I can put "[ROM] [4.4.4] [HAMMERHEAD] Mahdi-Rom 2.7 [07/19]" on it ?
Click to expand...
Click to collapse
That's for Nexus 5, go to One Android development and get it from there.

[Q] flashing Ak kernel

Hi there,
i would love to try the AK kernel but the problem is it requires installation of a stock cm kernel first.
Currently im on PA so the stock kernel i have to flash is CM11. I jsut cant find the link to download the stock cm11 but i did find cm11s stock kernel. Any help?
Can i just extract boot.img from cm11 rom and flash it right away via fastboot?
vesparados150 said:
Can i just extract boot.img from cm11 rom and flash it right away via fastboot?
Click to expand...
Click to collapse
Yes, that's how I did it.
Edit: I meant, just fastboot AK kernel boot.img from the zip file.
You don't necessarily need to flash stock kernel. Just flash the kernel.
Sent from my One A0001 using Tapatalk
vesparados150 said:
Can i just extract boot.img from cm11 rom and flash it right away via fastboot?
Click to expand...
Click to collapse
you are also making way more difficult than it has to be. you can simply reflash rom then kernel if you want to do it that way but its not needed
Gamm86 said:
Yes, that's how I did it.
Edit: I meant, just fastboot AK kernel boot.img from the zip file.
Click to expand...
Click to collapse
zephiK said:
You don't necessarily need to flash stock kernel. Just flash the kernel.
Sent from my One A0001 using Tapatalk
Click to expand...
Click to collapse
playya said:
you are also making way more difficult than it has to be. you can simply reflash rom then kernel if you want to do it that way but its not needed
Click to expand...
Click to collapse
Thanks for the reply guys..so this means that i can just falsh the kernel straight right?i flashed it and i notice severe graphical glitches using with PA. A search suggested to turn off hardware overlay. um...
vesparados150 said:
Thanks for the reply guys..so this means that i can just falsh the kernel straight right?i flashed it and i notice severe graphical glitches using with PA. A search suggested to turn off hardware overlay. um...
Click to expand...
Click to collapse
Update your PA ROM and then it should be fine.

What should I be aware of after flashing a Kernel?

I've been researching about this for 30 minutes and still couldn't find anything that answered my question, I apologize in advance if the answers are obvious.
So the question is as the title states, what should I be aware of after flashing a Kernel on CM12.1? Will I have any issues when updating to another nightly? Or when flashing a stock-ROM ? Thanks in advance!
if you update your rom, your kernel will be replaced with one if the rom.
so you have to reflash your custom kernel
HelpMeruth said:
if you update your rom, your kernel will be replaced with one if the rom.
so you have to reflash your custom kernel
Click to expand...
Click to collapse
Thank you for the answer, but despites that is there anything I should be aware of when using a custom kernel? Xposed, going back to stock, etc
Nothing i know of, xposed doesnt give any problems to me when i flash a kernel so you should be good.
so its pretty save to flash a kernel
HelpMeruth said:
Nothing i know of, xposed doesnt give any problems to me when i flash a kernel so you should be good.
so its pretty save to flash a kernel
Click to expand...
Click to collapse
One more question if you don't mind, how can I custom my kernel settings? Currently on Squid Kernel (Moto g 2015), CM12.1
Install kernel adiutur from the playstore. With that app you change all your settings

Categories

Resources