[Q] Flashing Kernels and Roms - Galaxy S II Q&A, Help & Troubleshooting

I'm trying to flash a stock Rom onto my GS2 but i have a question. Does each ROM include a kernel with it or do i have flash a kernel first and then a rom? And does each kernel have certain roms that go with it or can i flash mix-and-match different kernels and roms?

Are you talking about stock roms or the modded ones in the dev section? Each rom does have a kernel that goes with it, however i wouldn't flash a 2.3.3 kernel on a 2.3.5 firmware.

In any case, the kernel has to be flashed at last, after the ROM

I'm talking about stock roms. My phone is on 2.3.4. If i flash a ROM, do i have to flash a kernel?

blazebomb said:
I'm talking about stock roms. My phone is on 2.3.4. If i flash a ROM, do i have to flash a kernel?
Click to expand...
Click to collapse
No, they already come with one.

Related

[Q] kernel for custom rom

I just got the sgs2 from amazon, I checked the baseband and kernel, which says that I have UHKG7 (firmware) and UHKG4 (baseband).
I know this corresponds to the UH_MUL_KG7 version when I do the CF-Root. However, I was looking through the custom rom's section and most of the ROM's seem to be built off of "KI3"
Does this mean I should flash the KI3 version of CF-Root instead of the KG7 one? I want to be able to play around and try a bunch of custom rom's later. does it matter which CF-Root I flash at this point or do I HAVE to have the KI3 CF-Root to be able to flash the KI3-based custom roms?
Also, would flashing the KI3-based stuff mess up my phone?
Not new to flashing custom roms but I've never had a phone with this many kernel options/versions. Any help is appreciated guys, thanks.
zeotrope said:
I just got the sgs2 from amazon, I checked the baseband and kernel, which says that I have UHKG7 (firmware) and UHKG4 (baseband).
I know this corresponds to the UH_MUL_KG7 version when I do the CF-Root. However, I was looking through the custom rom's section and most of the ROM's seem to be built off of "KI3"
Does this mean I should flash the KI3 version of CF-Root instead of the KG7 one? I want to be able to play around and try a bunch of custom rom's later. does it matter which CF-Root I flash at this point or do I HAVE to have the KI3 CF-Root to be able to flash the KI3-based custom roms?
Also, would flashing the KI3-based stuff mess up my phone?
Not new to flashing custom roms but I've never had a phone with this many kernel options/versions. Any help is appreciated guys, thanks.
Click to expand...
Click to collapse
It would make more sense to flash KI3 stock firmware root with KI3 followed by custom rom of choice .
jje
JJEgan said:
It would make more sense to flash KI3 stock firmware root with KI3 followed by custom rom of choice .
jje
Click to expand...
Click to collapse
thanks for the reply. if i switch to ki3 stock firmware should everything (theoretically) work properly?
zeotrope said:
thanks for the reply. if i switch to ki3 stock firmware should everything (theoretically) work properly?
Click to expand...
Click to collapse
Yes all should work .
jje
JJEgan said:
Yes all should work .
jje
Click to expand...
Click to collapse
OK, sorry for being so dense but one more question.
Say I go that way and flash KI3 stock then CF-Root for KI3....
then i flash a custom ROM, am I limited to custom roms that only work with KI3 kernel?
in other words, do i have to keep switching to different stock kernels as I try different custom roms?
zeotrope said:
OK, sorry for being so dense but one more question.
Say I go that way and flash KI3 stock then CF-Root for KI3....
then i flash a custom ROM, am I limited to custom roms that only work with KI3 kernel?
in other words, do i have to keep switching to different stock kernels as I try different custom roms?
Click to expand...
Click to collapse
Usually when you flahs a custom rom it comes with it´s own kernel so you dont have to worry. If the rom doesn´t come with it´s own kernel you may be able to use it with any kernel (few exceptions)
rj.camargo said:
Usually when you flahs a custom rom it comes with it´s own kernel so you dont have to worry. If the rom doesn´t come with it´s own kernel you may be able to use it with any kernel (few exceptions)
Click to expand...
Click to collapse
awesome, do i have to worry about the custom rom overwriting the CWM from cf-root?
Cwm is built into the kernel in samsung land, and most custom roms come with a kernel with Cwm.
Kernel version should be the same as rom version for stock roms/cf root. Custom roms often come with a recommended kernel.
You can move between newer and older stock roms via odin or restoring cwm backup, generally without wipe.
Sent from my GT-I9100 using xda premium

[Q] ICS ROM??

i got my repaired gs2 back now want to try a good aosp ics rom??
which one is best without any issues???
& will i have to flash a stock ics leaked rom by ODIN before flashing a ICS custom rom??
or can i flash it normally by cwm??
Currently m' using stock rooted gingbread rom by cf-root
nitindeck said:
i got my repaired gs2 back now want to try a good aosp ics rom??
which one is best without any issues???
& will i have to flash a stock ics leaked rom by ODIN before flashing a ICS custom rom??
or can i flash it normally by cwm??
Currently m' using stock rooted gingbread rom by cf-root
Click to expand...
Click to collapse
ICS roms are beta at best, I wouldn't advise flashing one.
There is CM9 which is AOSP and there is Samsung leaks, all need ICS bootloaders, search and read before you even consider flashing any of the ICS roms.
how to get ics bootloader?? will it be automatically there if i flash a ics leaked rom??
nitindeck said:
how to get ics bootloader?? will it be automatically there if i flash a ics leaked rom??
Click to expand...
Click to collapse
Read me and search in me
all ics rom flashing instructions are just flash by cwm & a full wipe???
nitindeck said:
all ics rom flashing instructions are just flash by cwm & a full wipe???
Click to expand...
Click to collapse
Depends on the rom, stock ones will come with ICS bootloaders, you *may* need them first for CM9. Also if you want to go back to gingerbread from ICS you will most than likely need to flash back to the old bootloaders from this thread.

can i flash KERNEL over STOCK rom

Hi all
can i flash kernel over stock rom
let say LeeDroid kernel
a7ad67 said:
Hi all
can i flash kernel over stock rom
let say LeeDroid kernel
Click to expand...
Click to collapse
You can, but not every kernel supports every Rom. So I suggest make a nandroid and flash the kernel . If you face issues then restore nandroid.
I have tried many kernels on stock Rom , and never had issues till now.....
Yeah it works fine.
I don't know why you would want to stay with stock, because there are rom's like anryl's which is 99% stock, but with slight speed enhancements.

[Q] rooting/bootloader

Hi I would like to ask whether rooting the phone is the same as unlocking bootloader. Thanks!
No, it's not.
Rooting allows you to view and edit system files.
Unlocking the bootloader allows you to install custom (non-official) kernels.
So rooting my phone and unlocking the bootloader is 2 different issue?
Or does rooting my phone actually unlocks my bootloader as well?
Rooting does not unlock bootloader.
Unlocking bootloader can help root your phone (installing a pre-rooted kernel, for example).
Is it then possible to install a custom firmware without unlocking the bootloader or will there be problems if I install a custom firmware without unlocking the bootloader.
These two custom ROMs are the only ones that can be installed without unlocking the bootloader.
http://forum.xda-developers.com/showthread.php?t=1705255
http://forum.xda-developers.com/showthread.php?t=1578109
OK THANKS! SHALL GO CHECK IT OUT And can I ask, does the phone by itself already have a kernel? If it has, what is the use of installing another one?
Stock ROMs have their stock kernels.
Custom kernels can add some features, such as (for example) the chance to overclock the CPU. Almost every custom ROM needs a custom kernel to work properly.
Feanor88 said:
Stock ROMs have their stock kernels.
Custom kernels can add some features, such as (for example) the chance to overclock the CPU. Almost every custom ROM needs a custom kernel to work properly.
Click to expand...
Click to collapse
Wrong. Custom ROMs do not need custom kernel to *function or work properly*.
The custom ROMs are installed at the Read Only Memory of your phone.
For that, you need to use an installer which has to be somewhere outside the Read Only Memory. Only such location on your phone is the kernel. So a custom kernel does nothing but adds an installer outside the Read Only Memory (that is the CWM Recovery).
Now to intall a kernel, you need an installer outside of your Read Only Memory as well as the kernel. That's the PC, and the installer is Flashtool. So, flashtool is used to install custom kernels on your phone.
Note: The two ROMs which can be installed on locked bootloaders are exceptions to this rule.
Thanks,
Rick
Sent from my SK17i using XDA
If it were like you said, any custom kernel could work with any custom ROM, as long as it has a Recovery to flash the ROM. There are different custom kernels because there are different ROMs, and each custom ROM works only with one or more custom kernels, but not with everyone. If you were right, one single kernel with recovery would be usable for every custom ROM.
Feanor88 said:
If it were like you said, any custom kernel could work with any custom ROM, as long as it has a Recovery to flash the ROM. There are different custom kernels because there are different ROMs, and each custom ROM works only with one or more custom kernels, but not with everyone. If you were right, one single kernel with recovery would be usable for every custom ROM.
Click to expand...
Click to collapse
Yea. It would be. Infact it is.
However, ROMs like CM9, which are NOT based on the stock ROM will not be able to work on the stock kernel. It will require a kernel which has been designed specifically for CM9. On the other hand, we had seen MiniCMSandwich, which looks like CM, but is based on stock ROM. This will work on any kernel that has a custom recovery. MESA, Rage, X, Stock Exteneded and so on...
So, to put it in other words, suppose you plan to flash an HTC Phone ROM as it came in the HTC device on your Xperia Device. You plan to just change the drivers. You will need a kernel which is designed for the HTC ROM.
But, if you, on the other hand, start with the Xperia ROM and change the aspects of this ROM into the HTC ROM's, you can make the ROM work on any of MESA, X, Rage or extended.
Thanks,
Rick
Sent from my SK17i using XDA
DragonClawsAreSharp said:
Yea. It would be. Infact it is.
However, ROMs like CM9, which are NOT based on the stock ROM will not be able to work on the stock kernel. It will require a kernel which has been designed specifically for CM9. On the other hand, we had seen MiniCMSandwich, which looks like CM, but is based on stock ROM. This will work on any kernel that has a custom recovery. MESA, Rage, X, Stock Exteneded and so on...
Click to expand...
Click to collapse
Stock extended, yeah. Try to run MiniCMSandwich on Gingerbread stock extended kernel. Will it work? Of course not. All the kernels you named are based on stock ICS kernel, so it's simple to run ICS based ROMs on them. This doesn't mean that every kernel with recovery can make them work
Feanor88 said:
Stock extended, yeah. Try to run MiniCMSandwich on Gingerbread stock extended kernel. Will it work? Of course not. All the kernels you named are based on stock ICS kernel, so it's simple to run ICS based ROMs on them. This doesn't mean that every kernel with recovery can make them work
Click to expand...
Click to collapse
Stock GB is to Stock ICS is same as Stock Xperia ICS is to Stock HTC ICS. They are different ROMs. Completely.
The ROMs have instructions according to which it behaves with the kernel. These instructions are all same for kernels that are based on stock ICS. So if you want to try any ROM that is based on stock ICS and such kernel will do.
But CM, GB, HTC ROMs and so on, are completely different.
Say you want to port an HTC ROM to Xperia ICS. You can do the following (I am taking example of the bootanimation file)
1. Simply change the bootanimation.zip file at /system/media of the stock ICS ROM.
So your ROM is based on the stock ROM itself. You just change the files, not the way the files are accessed. You do not even change the way the kernel is accessed. So any kernel based on stock ICS *with recovery* will do.
2. Change the whole Read Only Memory Partition.
This makes all the files replaced, the way HTC has made the ROM. This time you will need a kernel *again with recovery*, built to be accessed by the very specific ROM.
Thanks,
Rick
Sent from my SK17i using XDA

[Q] Xperia P - How to choose a Kernel

While on my old Sensation, i often flashed diffrend roms, but never a Kernel that was not includet in the rom.
From what i have read in this forum, youd could increase the batterie time, if a custom kernel is flashed.
The tutorials for flashing a kernel are well writen, so i don't see a problem here. And yes, i am aware, that i nee to unlook the bootloader to flash a custom kernel.
My question is, how to chose a kernel? For what information do i have to look?
And for understanding. Do i have to flash another rom to get a custom kernel running, or could i stay on the stock rom and try the kernel itself?
Does a custom Kernel mean, i loose some of the functions that are in the stock kernel /rom or do have all kernel the"basic" functions of the stock kernel and just have addional functions and optimization?
Thanks for your time and help.
eismaus said:
While on my old Sensation, i often flashed diffrend roms, but never a Kernel that was not includet in the rom.
From what i have read in this forum, youd could increase the batterie time, if a custom kernel is flashed.
The tutorials for flashing a kernel are well writen, so i don't see a problem here. And yes, i am aware, that i nee to unlook the bootloader to flash a custom kernel.
My question is, how to chose a kernel? For what information do i have to look?
And for understanding. Do i have to flash another rom to get a custom kernel running, or could i stay on the stock rom and try the kernel itself?
Does a custom Kernel mean, i loose some of the functions that are in the stock kernel /rom or do have all kernel the"basic" functions of the stock kernel and just have addional functions and optimization?
Thanks for your time and help.
Click to expand...
Click to collapse
You don't need to flash custom kernel to increase battery life.
All you need to flash a custom kernel is unlocked bootloadr. Be sure to save DRM keys if bravia engine is important to you.
Then look for a custom kernel for stock roms, and custom stock tom too if you wish, or you can choose a non-stock based rom abd kernel.

Categories

Resources