Using custom kernel - G2 and Desire Z Q&A, Help & Troubleshooting

Hello,
I've lurked at xda for a while, but I'm slightly confused about the concept of flashing a kernel.
I'm currently using the CM7 stable, with (what I can assume is) the cyanogen custom kernel.
With regards to flashing a kernel, what is some helpful information? What are some advantages? Is it just like flashing a rom? Do you need a certain rom? Any suggestions on kernels?
Many thanks
denbeigh2000
Sent from my HTC Vision using XDA App

If you have RomManager installed flashing Kernels is pretty much like flashing roms. Only faster

Usually kernels are grouped as being for AOSP/CM or for Sense ROMs. Kernels are like the bridge between the phone software and hardware (CPU, Wi-Fi, LED, sensors, etc). Most people care about the CPU control part. Some kernels offer unique CPU governors or undervolting for better battery life. Yes, it is similar to flashing a ROM, except the ONLY things you should wipe are cache and Dalvik cache. This may be obvious, but do not wipe system or data, that has your ROM and all data on it.
Just take a look around in the development section for threads with [Kernel] in the title.

c00ller said:
Usually kernels are grouped as being for AOSP/CM or for Sense ROMs. Kernels are like the bridge between the phone software and hardware (CPU, Wi-Fi, LED, sensors, etc). Most people care about the CPU control part. Some kernels offer unique CPU governors or undervolting for better battery life. Yes, it is similar to flashing a ROM, except the ONLY things you should wipe are cache and Dalvik cache. This may be obvious, but do not wipe system or data, that has your ROM and all data on it.
Just take a look around in the development section for threads with [Kernel] in the title.
Click to expand...
Click to collapse
So which popular kernals will work with CM7 stable? I'm having a hard time seeing which work best with what ROMs. I am on the stock CM7 kernal which is 2.6.32.28 , and I see a few kernals here starting with 2.6.32.xx , are these the ones that will work best? Like pershoot for example, his second to last kernal is Kernel 2.6.32.41 – OC-UV-NEON_FP (1.516GHZ) – G2 , will that work fine? Or would his newest one work fine?

Related

[Q]Savaged-Zen Issue, or recommend a kernel for stock rom

I tried the latest Savaged-Zen froyo kernel and the speed is excellent but I get random horizontal lines on the screen. Especially on anything that loads or refreshes like the notification bar or facebook loading icon.
Never really flashed a custom ROM or anything, the only thing I did was install Rom Manager and added a recovery. I just want to be able to boost up the speed safely and I read kernels are the best way.
That's called screen tearing, so you should change. I recommend the savaged-zen froyo kernel, or since you're on sense, the net-archy kernels have good reviews.
And you flash a kernel just like a rom > wipe cache and dalvik, then flash the kernel.
I used to have screen tearing all the time but on tiamat I got none.
Sent from my PC36100 using XDA App
teh roxxorz said:
That's called screen tearing, so you should change. I recommend the savaged-zen froyo kernel, or since you're on sense, the net-archy kernels have good reviews.
And you flash a kernel just like a rom > wipe cache and dalvik, then flash the kernel.
Click to expand...
Click to collapse
I already tried the Savaged-zen and i tried a few of their older froyo builds. I just realized that since I never flashed any custom ROMS my phone is still sense based and these kernals are AOSP based, is that the reason?
dickpills said:
I already tried the Savaged-zen and i tried a few of their older froyo builds. I just realized that since I never flashed any custom ROMS my phone is still sense based and these kernals are AOSP based, is that the reason?
Click to expand...
Click to collapse
Absolutely, I was just about to inform you of that. Those kernels are only for AOSP roms. If you stay on sense, you need to try a Sense kernel. I have great luck with Netarchy's or Ziggy's kernels. Good luck
www.ziggy471.com
http://forum.xda-developers.com/showthread.php?t=719763
Edit, and to OP, your SN is hilarious. LOL. 'dickpills'
k2buckley said:
Absolutely, I was just about to inform you of that. Those kernels are only for AOSP roms. If you stay on sense, you need to try a Sense kernel. I have great luck with Netarchy's or Ziggy's kernels. Good luck
www.ziggy471.com
http://forum.xda-developers.com/showthread.php?t=719763
Edit, and to OP, your SN is hilarious. LOL. 'dickpills'
Click to expand...
Click to collapse
Cool, that makes sense. Netarchy's seems to pop up a lot in my research so I'll give it a go. And thanks for the comment, haha.
*Update: so far so good, I'm seeing much better frame rate but not as good as I was experiencing with Savaged-Zen. I never really used a benchmark to get actual numbers I'm mostly going by eye. I'm actually considering trying out various ROM's just to be able to use Savaged-Zen. What I love about Android is that I can easily customize the scrub way through apps, trying out custom Roms, themes or if I'm feeling brave I can go in and edit anything myself by replacing files. The community is great so new things are always coming out and I'm never bored with my phone.

[Q] Question about ROMS , Kernels, and stuff like that...

So I've been doing this stuff for a while now and have become very fluent in the droid rooting lingo but I am getting mixed messages on a few things.
ROMS and Kernels...
I understand that Kernel changes how different pieces of the hardware are utilized and the ROM is more or less how to interact with the hard ware but can a ROM ( such as CM# ) have it's own kernel. Meaning if I installed such and such a kernel, then did a clean install with CM7, would the such and such be wiped out and replaced with CM7's own kernel?
Correct, when you flash Rom B, the kernel you had with Rom A is gone, but does exist in the backup, if you made one. Hence, when you restore Rom A, you get the kernel that was backed up with it.
Sent from my ADR6300 using XDA Premium App
Alrighty. Second little question...can't seem to find a clear answer for this... Is CyanogenMod a "Sense" rom or AOSP?
AOSP
CM is an AOSP ROM. It is based on the android open source project rather than the HTC Sense coding. If you are using CM7 or any other AOSP ROM you will not have any of the HTC widgets or lockscreen or any of the touches that are sense. However there are lots of apps in the market that will mimick Sense pretty well. To include people widgets that are scrollable.
The allure of alot of the AOSP ROM's is that they run faster or smoother. This would be due to them having a smaller file size.
You can always give it a try and if you don't like it jump back to a backup... I always recommend a back up.
Hope this helps
Reizvoller said:
So I've been doing this stuff for a while now and have become very fluent in the droid rooting lingo but I am getting mixed messages on a few things.
ROMS and Kernels...
I understand that Kernel changes how different pieces of the hardware are utilized and the ROM is more or less how to interact with the hard ware but can a ROM ( such as CM# ) have it's own kernel. Meaning if I installed such and such a kernel, then did a clean install with CM7, would the such and such be wiped out and replaced with CM7's own kernel?
Click to expand...
Click to collapse
My knowledge of CM7 is pretty limited, but in my experience, most (if not all) ROMS come with their own kernal that the developer likes best for his ROM.

What is a kernal

I am running the mik ROM 3.0 and I am not sure what a custom kernal is or how to flash a kernal is it the same as a rom?? How do I apply a kernal while using my ROM?? I have searched the forums and couldn't find an answer plz help me out thanx
Sent from my PC36100 using Tapatalk
reaper559 said:
I am running the mik ROM 3.0 and I am not sure what a custom kernal is or how to flash a kernal is it the same as a rom?? How do I apply a kernal while using my ROM?? I have searched the forums and couldn't find an answer plz help me out thanx
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
A custom kernel lets you overclock and under clock. So you can actually choose what speed you want your phone to run. First download the kernel put it on the root of your sdcard (not in any folders) go to recovery wipe cache and dalvik cache then flash kernel then reboot
Sent from my PC36100 using XDA App
The kernel controls certain hardware functions such as process scheduling, CPU clock speeds and voltages, frames per second, battery charge/discharge behaviors, etc. The best possible "layman's" analogy that I can think of is that a kernel is similar to hardware drivers that you install onto a computer. The drivers tell your system how to use whatever hardware components you've got installed.
There are a few rules with kernels though. You can't just download any kernel, flash it, and go on your way.
1. Sense kernels ONLY work with Sense ROMs. AOSP kernels ONLY work with AOSP ROMs.
2. Don't use a HAVS kernel if you're using setcpu.
3. Don't bother flashing a kernel if you don't know what a kernel is or are incapable of reading the sticky, at the top of this forum, whose sole purpose is to explain everything about kernels. Because chances are you're just going to screw up your phone.
Threads about kernels are one of the most common questions on this site, next to battery life issues and ROM preferences. Use the search feature. I guarantee there are a million threads that have already answered your question. If all else fails.....Google.
Edit: kernels do more than just letting you overclock your cpu like evo4gnoob said. If you don't know what a kernel is then you probably shouldn't be overclocking your phone anyway. And no, overclocking your Evolution is not like overclocking your computer. Again, you're likely to damage your phone if you just go and start tinkering without a clue as to what you're actually doing.

[Q] About custom Kernels and overclock, some questions

Hi,
After some weeks with my GN i think i'm ready to try a new kernel.
Currently i'm using the AOKP M4. My question is : to flash the new kernel, i just put in the SDcard and install it in recovery mode ? Do i need to wipe anything ? Will i loose any data ?
If anything goes wrong, i all need is to restore the last backup, right ?
What kernel do you guys recommend with AOKP ? I'd like to have options to overclock ; they said the 'normal' clock o GN would be 1.5ghz, so i can run in this clock without risks, is this true ?
Thanks in advance !
You are correct - drop the kernel's .zip onto your SD card and flash it in recovery. There is no need to wipe (in fact, DO NOT WIPE). You won't lose anything. If you have issues with the kernel, you can always revert back to the "stock" kernel by reflashing the AOKP .zip
I've had great results with faux's kernel: http://rootzwiki.com/topic/11552-gn-gsmhybrid-3024-ics40234pre-uvoctuncifsotgfiopsv014mar-22
All hardware is created differently so you may or may not be able to OC to 1.5GHz. For stability and battery life I usually OC to 1350MHz... but I also usually run an underclock at 1060MHz for even better battery life. 1060MHz is plenty powerful for everyday use, calls, web browsing, etc, and I've got a Tasker widget set up to instantly toggle between the two clocks for gaming and such.
codesplice said:
There is no need to wipe (in fact, DO NOT WIPE).
Click to expand...
Click to collapse
That is not true, you need to wipe cache and dalvik-cache when flashing a kernel or you could run into bootloops or crashing issues.
If you are on a 4.0.3 or 4.0.4 ROM then use a kernel from either of those versions. Dont use a kernel designed for 4.0.2 or earlier with any later ROM versions
Glados kernel has the best overclocking by far
Popcorn kernel seems to be the fastest with stability
Minimalistic kernel (forget the actual name) is the best on stability but is a bit slower than others
Franco has random experimental features that sometimes work really well, and sometimes you have lots of problems, his has least stability of anyone.
Tuna kernel seems just all around average in all areas, not excelling at any one thing but not bad in any areas.
EniGmA1987 said:
That is not true, you need to wipe cache and dalvik-cache when flashing a kernel or you could run into bootloops or crashing issues.
Click to expand...
Click to collapse
Eh, it really depends on the kernel you're flashing. I very rarely do any wipes when flashing a kernel... the only kernel that's ever given me problems with that is GLaDOS - probably due to how different its ramdisk is from stock.
EniGmA1987 said:
Franco has random experimental features that sometimes work really well, and sometimes you have lots of problems, his has least stability of anyone.
Click to expand...
Click to collapse
lol are you serious? his kernel is one of the most stable kernels ive ever used. r121 and r161 are both nightly builds and have been EXTREMELY stable with amazing battery life. his kernel just gets better and better.
i have yet to get a sod or reboot on this kernel
codesplice said:
Eh, it really depends on the kernel you're flashing. I very rarely do any wipes when flashing a kernel... the only kernel that's ever given me problems with that is GLaDOS - probably due to how different its ramdisk is from stock.
Click to expand...
Click to collapse
Glados kernel has no RAMdisk, its creator believes the RAMdisk should belong to the ROM and not the kernel. So you have issues when flashing to Glados from another kenerl because you still are running the old kernel's RAMdisk with the different, new kernel. If everyone follows this proper procedure we would have no issues and higher compatibility with ROMs and kernels. Unfortunately most custom kernels like to use their own RAMdisk and so issues arise.
zephiK said:
lol are you serious? his kernel is one of the most stable kernels ive ever used. r121 and r161 are both nightly builds and have been EXTREMELY stable with amazing battery life. his kernel just gets better and better.
i have yet to get a sod or reboot on this kernel
Click to expand...
Click to collapse
Franco is quick to fix problems so you probably dont notice, however if you read through his thread there are often releases with bugs in it. Things from Wakelock issues, sleep of death, and broken wifi. He fixes these of course usually within a few hours but you never want to grab the latest kernel when it is first released. Always wait to see who has problems and for a fix to be released. Usually the last release of the night has no real bugs. Franco's quick releases are both the cause and solution to the bugs in his kernel. Other people test more so release with less bugs. Also Franco likes to put experimental stuff like 512MHz and 480MHz GPU clocks in, which dont even run on some peoples phones.
Try popcorn kernel. I'm running it since day one without a problem, it's snappier than stock and battery lasts much longer.
EniGmA1987 said:
Glados kernel has no RAMdisk
Click to expand...
Click to collapse
So that would be quite different from stock then
I couldn't remember what exactly it was that made GLaDOS so different; I've been off that kernel for a while. It seemed to have a lot of really cool ideas put into it, but it didn't work well overall for me (yes, even after flashing faux's reset kernel and wiping cache and dalvik). I had a lot of SOD issues (with "stock" clock and voltage settings), and I could never get the logcat module to work properly. I break enough applications that I can't really get by without logcat.
EniGmA1987 said:
Franco is quick to fix problems so you probably dont notice, however if you read through his thread there are often releases with bugs in it. Things from Wakelock issues, sleep of death, and broken wifi. He fixes these of course usually within a few hours but you never want to grab the latest kernel when it is first released. Always wait to see who has problems and for a fix to be released. Usually the last release of the night has no real bugs. Franco's quick releases are both the cause and solution to the bugs in his kernel. Other people test more so release with less bugs. Also Franco likes to put experimental stuff like 512MHz and 480MHz GPU clocks in, which dont even run on some peoples phones.
Click to expand...
Click to collapse
That is why there are TWO builds. Milestone and nightly builds.
Milestone are for people who want stability, nightly builds are for people who want the newest and latest things.
Wakelock issues come from apps, the wakelock issue was already fixed. This is the purpose of nightlies, they are there to report bugs. If you don't like that then stick to Milestone builds. That is why these two releases are separated.
Sleep of Death is mainly caused by users who undervolt their phones. This is no way franco or the kernel dev's fault.
Broken wifi? Never had that bug. People experience this bug on other kernels as well. This isn't caused by franco's kernel.
512 MHz.. that is why there are TWO releases for nightlies. One is in 384 and one is in 512 MHz. Milestone builds are ALWAYS on stock clock because stability is #1 priority in those builds.
http://minooch.com/franciscofranco/Galaxy Nexus/nightlies/ (384 mhz folder at the bottom).
There is a reason why franco's kernel is the most popular kernel in Galaxy Nexus and he is a very well respected and known developer.
Thanks everybody for the returns.
But now i'm confused : should i wipe or not wipe ? If i wipe, will i loose my apps and data ?
If anything goes wrong, when i restore a nandroid backup, will the kernel be restored as well ?
Thanks !
thefunkyjoint said:
Thanks everybody for the returns.
But now i'm confused : should i wipe or not wipe ? If i wipe, will i loose my apps and data ?
If anything goes wrong, when i restore a nandroid backup, will the kernel be restored as well ?
Thanks !
Click to expand...
Click to collapse
You don't need to wipe your data partition. You may wipe your cache or dalvik-cache, but you won't lose any data doing that.
If anything goes wrong, you can just reflash your existing ROM's update.zip - it will restore the stock kernel without losing any information, and will be a lot quicker than a nandroid restore.

[Q] franco.kernel vs stock 3.0.8

What are the differences?
I'm using Android Revolution HD 3.0.0 now and in the description mike1986 claims that stock 3.0.8 kernel is the best so far but with so many people using franco's kernel it must be better or am i wrong?
Also, will flashing franco.kernel on Android Revolution cause any bugs etc? (I'm kinda new to this whole flashing kernels part)
(If there are better roms do not hesitate to recommend me one and please tell me what's better if thats the case )
Thanks in advance!
dreamz0r said:
What are the differences?
I'm using Android Revolution HD 3.0.0 now and in the description mike1986 claims that stock 3.0.8 kernel is the best so far but with so many people using franco's kernel it must be better or am i wrong?
Also, will flashing franco.kernel on Android Revolution cause any bugs etc? (I'm kinda new to this whole flashing kernels part)
Click to expand...
Click to collapse
I can not list the differences for you exactly just go to franco's thread. There are many advantages to flashing a custom kernel. The kernel devs work hard to make the kernel's better than stock in many ways. You'll get extra features and extended battery life for sure out of a custom kernel. Stock better? I dont think so! Flashing a kernel after a rom is the way you have to do it but, ya some settings might not work if the kernel dev had done things differently from the rom dev.
give it a shot if you dont like it you can always reflash your rom package to restore the roms kernel.
before flashing a kernel (or reflashing your rom after flashing a custom kernel) wipe your dalvik cache
so many people around here have a boner for franco but I always highly recommend GLaDOS kernel its imo the best and most advance but to each his own
blowtorch said:
I can not list the differences for you exactly just go to franco's thread. There are many advantages to flashing a custom kernel. The kernel devs work hard to make the kernel's better than stock in many ways. You'll get extra features and extended battery life for sure out of a custom kernel. Stock better? I dont think so! Flashing a kernel after a rom is the way you have to do it but, ya some settings might not work if the kernel dev had done things differently from the rom dev.
give it a shot if you dont like it you can always reflash your rom package to restore the roms kernel.
before flashing a kernel (or reflashing your rom after flashing a custom kernel) wipe your dalvik cache
so many people around here have a boner for franco but I always highly recommend GLaDOS kernel its imo the best and most advance but to each his own
Click to expand...
Click to collapse
Installing it now, let's see if you're right about GLaDOS
Thanks for the reply

Categories

Resources