ROM's and kernels - Samsung Galaxy Nexus

I came from a Droid X2 that had a locked bootloader. All the ROM's for it didn't change the kernel and the ROM had to be on a certain kernel to function properly.
My question is do the ROM's on Galaxy nexus come with kernel when you flash them or do you need to be on a certain kernel first or flash a kernel With the ROM while still in recovery.
The ROM I'm looking at doesn't say anything about what kernel to be on so I assume it comes with one.
Thanks,
Troy
Sent from my DROID X2 using xda app-developers app

No need to flash a custom kernel unless you want to, or unless the directions for that specific ROM instruct you to. Personally I found that my device performs better if I stay with the packaged kernel and not flash a different kernel after flashing a ROM. But others have had different results with different kernels. I would recommend sticking with the kernel packaged with your ROM to start with, that way you would know how it should perform. Then if you flash a new kernel in the future, if you start having an issue you would know it could be due to the custom kernel and not the ROM.

tshelby73 said:
I came from a Droid X2 that had a locked bootloader. All the ROM's for it didn't change the kernel and the ROM had to be on a certain kernel to function properly.
My question is do the ROM's on Galaxy nexus come with kernel when you flash them or do you need to be on a certain kernel first or flash a kernel With the ROM while still in recovery.
The ROM I'm looking at doesn't say anything about what kernel to be on so I assume it comes with one.
Thanks,
Troy
Sent from my DROID X2 using xda app-developers app
Click to expand...
Click to collapse
Some come with a kernel some do not....and there's no need to wipe cache or dalvik when flashing a kernel (as per Mr imoyseon himself)....flashing a kernel could cause a boot loop when its not compatible so just take your battery out and reflash a different one....just try some out and make sure you read allllllll of the OP whenever you flash anything

Related

Question regarding the new 2.3 OTA kernal and rooted ZIP

So, there is Haus's thread which provides download links to the ROM, Kernel and Radios.
I am currently running Salvage Mod and a Tiamat kernel.
If I flash the 2.3 OTA ROM while still running the Tiamat kernel, will I run into issues?
Mindspin_311 said:
So, there is Haus's thread which provides download links to the ROM, Kernel and Radios.
I am currently running Salvage Mod and a Tiamat kernel.
If I flash the 2.3 OTA ROM while still running the Tiamat kernel, will I run into issues?
Click to expand...
Click to collapse
No because after you flash you will no longer be running the Tiamat kernel you will be running the new stock HTC kernel. Flashing the ROM flashes the kernel as well.
zone23 said:
No because after you flash you will no longer be running the Tiamat kernel you will be running the new stock HTC kernel. Flashing the ROM flashes the kernel as well.
Click to expand...
Click to collapse
Oh...
I was under the impression (based off the links provided in the other thread) that the ROM and kernel needed to be flashed separately.
Thanks for clarifying!!
Mindspin_311 said:
Oh...
I was under the impression (based off the links provided in the other thread) that the ROM and kernel needed to be flashed separately.
Thanks for clarifying!!
Click to expand...
Click to collapse
Generally no I flashed it on my EVO and didn't flash any thing else. You might want to go back and take another look I will as well but that generally not the case they come with the kernel.
To flash back to sense you don't have to do anything special. You don't have to nandroid back to sense or anything like that. The only thing you have to do is clear user data, cache, and dalvik cache then flash. You don't need to restore anything first. I saw your other post. Also I'm fairly positive that the ROM has the kernel but if you want to be safe download the kernel as well and just stick it on your storage card just in case.
Remember clearing user data will wipe all of your apps and data.
The kernel is a modified one just incase you have the brightness bug still I think.
When I flashed the new mikg v1.0 i know I still did but I flashed that kernel and it fixed it but I never flashed one of the new stock ROMs cause of the 1.0 sense on it.
Sent from my PC36100 using XDA App

Switch Kernels in Roms

In flashing roms, I notice that devs are including kernels in the .zip. It appears each dev has their favorites. Without debating which kernel is the "best", my question is can I switch a Zimage (which I assume is the kernel) with another of my liking? Or, if I'm running a particular kernel of my liking, can I flash the Rom without the included Zimage?
.....
Vegasden said:
In flashing roms, I notice that devs are including kernels in the .zip. It appears each dev has their favorites. Without debating which kernel is the "best", my question is can I switch a Zimage (which I assume is the kernel) with another of my liking? Or, if I'm running a particular kernel of my liking, can I flash the Rom without the included Zimage?
.....
Click to expand...
Click to collapse
You should be able to flash a kernel, either through CWM or ODIN without problem.
sk63 said:
You should be able to flash a kernel, either through CWM or ODIN without problem.
Click to expand...
Click to collapse
I realize that. My question was in reference to flashing a rom (which all have a kernel included). Can you switch the Zimage inside the rom .zip prior to flashing...or can I just delete the Zimage inside the rom and flash it without one? I'm trying to avoid the two steps of flashing a rom, then flashing a kernel I prefer.
Ah, I've always just flashed the ROM, then flashed the kernel then rebooted out of CWM. Be nice if there was a utility where you give it kernel and rom and tell it to go, might be a nice feature for ROM Manager to add.

How/When to install Kernel?

At what point do I install a new Kernel?
I'm about to flash a new ROM and it is recommended to use a particular Kernel. At which point do I do this? Just before the first boot? After the first boot?
Thanks!
Kernel comes with the ROM you are flashing. So my suggestion is to try the one that came along with the ROM. If for some reason you are not satisfied with it may it be high battery drain, undervolting, overclocking, or missing governor options, that's when you look for another kernel.
There are 2 types of kernel for Desire, Sense based or AOSP based. You can't use one with the ROM based with the other.
You install new kernels the same way you flash a ROM. Kernel comes in a flashable zip. ONLY wipe dalvik and cache before flashing a new kernel. No need to wipe system at this point. Yeah flash it after the first boot, although flashing it right after the rom wouldn't hurt I believe.
Just flash it right after you flashed the ROM.
MatDrOiD said:
Just flash it right after you flashed the ROM.
Click to expand...
Click to collapse
Okay thanks a bunch!
Cheers! That's what I was after! ;-)
Sent from my HTC Desire using xda premium

Gnex kernel picky?

Hi all,
Since installing cwm a week ago i started experimenting with different kernels and mods. However i noticed that my phone is somehow rejecting some mods/kernels. I run stock jb yakju image with cwm 6.1.1.0 and at the moment fugumod kernel 505 stable. I succeeded at running Franco and trinity 1420-535 previously but that's about it. Airkernel, tuna kernel, even the same version of trinity but with lower clock speeds was rejected. I always get a Google splash screen bootloop. Only way to get rid of it is flash another kernel over it or restore a nandroid. I always wipe the cache and the dalvik cache prior to install. Is there a way to make my phone accept that kernels? And is it my phone fault out the kernels. I'm using a gsm international version.
Thanks in advance!
Sent from my Galaxy Nexus using xda app-developers app
dont wipe anything when flashing kernels.. not your cache, nor your dalvik. if it wont pass the splash screen, i suggest that you reflash your rom and the kernel together then try to boot. sometimes if its not booting, taking your battery out for a minute then putting it back in and booting up works. also, sometimes you have to be a little more patient, giving it more time to boot. if you are flashing any kernel after flashing franco kernel, you have to flash your rom with the next kernel(for the first flash), because franco kernel uses its own ramdisk. most other kernels use anykernel which grabs the available ramdisk, you want it to grab your roms ramdisk. thats where franco kernel keeps franco kernel tweaks which would interfere with other kernels.
I indeed started with the franco kernel. So you are basically telling me that next time i should wipe nothing, reflash my Rom, then reflash my kernel hand reboot. But how do i flash a stock Rom? Is the Google image flashable? And do i get to keep all my stuff etc on my device?
Sent from my Galaxy Nexus using xda app-developers app
tobitronics said:
I indeed started with the franco kernel. So you are basically telling me that next time i should wipe nothing, reflash my Rom, then reflash my kernel hand reboot. But how do i flash a stock Rom? Is the Google image flashable? And do i get to keep all my stuff etc on my device?
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
there are a few stock plus root roms floating around, you can flash those over stock. yea, im telling you to wipe nothing. wiping cach/dalvik is like buying your child a swing set when preparing to fill your cars gas tank up. they have nothing to do with each other. btw, thats only with frano kernel, all the other kernels you can just flash on top of each otger and not worry about it. none of your stuff will get lost unless you wipe data/factory reset, and theres no need for that.
maybe that explains why trinity gave me battery drain after installing it after franco?
and to respond to OP no phone is built the same. Your phone won't accept EVERY kernel. Its just something you have to accept (from my experience)
For example every android phone i've owned has reacted poorly to undervolting but for those kernel devs who do it don't have a problem with it. U never know how your phone might react

Do I need a custom ROM to use a custom kernel?

Title says it all, really. I want to try custom kernels, but I am not sure if I need a custom ROM to do that, or if I can just flash them with a stock ROM
You can use stock.
Sent From My Old Epic 4g via XDA Premium
Matt08642 said:
Title says it all, really. I want to try custom kernels, but I am not sure if I need a custom ROM to do that, or if I can just flash them with a stock ROM
Click to expand...
Click to collapse
It depends.
You can run a custom kernel on the stock Rom, but you may be missing out without init.d support the stock Rom doesn't offer.
If you use a kernel with init.d script tweaks you should use a custom rom with support added. I know there are some very stock looking roms out there.
Sent from my Galaxy Nexus using xda premium
I ran Trinity on stock for a while. Worked great.
One more question about this:
To flash a custom kernel (specifically Franco kernel), do I just flash the small zip in CWM or the like? Also, if I want to back to 100% stock, can I just flash boot.img in fastboot mode, or will their be residual files? (I have a nandroid if I cannot do this)
Yes, flash the .zip using a custom recovery. When you flash a custom kernel, the update package may do more than just flash the kernel itself. So if you flash stock kernel (boot.img) back using fastboot, this doesn't have to be enough to fully return to the pre-custom kernel state. Restoring a nandroid will certainly do that, of course.
When you are willing to spend a few bucks, most popular kernels can be flashed using their control apps available in the play store. I know Franco's updater app allows you to fully backup the stock kernel + files before you flash a franco.kernel, and allows you to restore these backups.

Categories

Resources