DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: The TRUTH about kernels

  1. Senior Droid
    banderbe's Avatar
    Member #
    42260
    Join Date
    Feb 2010
    Posts
    148
    Phone
    A855
    #1

    The TRUTH about kernels

    This post is the product of seeing over the last six to nine months endlessly repeated claims by people that this kernel or that kernel is more stable, runs cooler, has better battery life, runs faster, etc.

    This post isn't meant to knock those who like to build kernels. I like to build kernels. The guys who build kernels like Chevy and Jdlfg are nice guys. It seems like the end users who don't work on these kernels have no idea what actually goes into building a kernel. Well, to be honest, not that much goes into building a kernel. It's pretty easy to do and the kernels by Bekit, Chevy, AdamZ, P3Droid, Jdlfg, are all more or less the same.

    While many of you may already know some of what will follow, many don't. My hope is that with this post I can at least to some degree put an end to all the hype surrounding kernels and kernel development.

    The Life of A Kernel

    A stock kernel for the Droid is born when a person downloads the kernel source code from the Android Open Source Project.

    That person then builds the kernel against a generic kernel configuration (sholes_defconfig) that comes as part of the download and is compatible with the Droid.

    Customizing The Generic Kernel

    The customization that may be done to the kernel is fairly limited. The developer may change the available frequencies, the voltages used for those frequencies, and they may modify some of the configuration options to enable or disable certain features.

    Voltage -
    Each frequency has a corresponding voltage so the developer can try to use a lower voltage or a higher voltage depending on what kind of kernel he's making. Some Droids can run low voltage and some can't due to tolerances allowed by the semiconductor manufacturer during production of the ARM Cortex CPU. The voltage is represented in code as a hexadecimal value, and some kernel developers do not know what this value represents in mV (millivolts). Lower voltage means a cooler phone and longer battery life.

    Short of actually seeing the voltages used by the kernel, there's no way to know if your "low voltage" kernel is lower than another "low voltage" kernel. I've seen "low voltage" kernels that used stock voltages and in fact had top frequency voltages beyond the Vmax of 1.8 volts specified in the ARM Cortex technical reference manual.

    Frequency -
    The generic kernel has seven slots and maxes out at 800 mhz. The developer can change the frequencies in these seven slots but as of kernel 2.6.32, they cannot change the number of slots. This is why all Froyo kernels have seven slots. The higher the frequency, the more voltage is needed to boot the phone and remain stable under load.

    Modules -
    The developer can modify the generic configuration to include things like:

    TUN
    EXT2/3/4
    LZO compression (Swap/Compcache support)

    These can be built as part of the kernel or as loadable modules.

    Beyond these standard modules most of the more popular kernels on the market today are almost identical to the generic configuration.

    The exception that I'm aware of are the configuration files of Bekit's Eclair kernels which had a large number of changes but these changes were simply based off of changes in the CyanogenMod kernel. Bekit himself would freely tell you that he didn't know what most of them did.

    Kernel Code Changes

    99% of the kernels available for the Droid have no source code changes beyond the changes to the frequency list mentioned above.

    There is one small patch some developers have applied to support swap/compcache but this amounts to three or four lines of code modified by a script.

    The one exception that I'm aware of are Jake Day's Droid kernels which contain (according to Jake) some 30,000 lines of modified code.

    Conclusion

    Outside of choosing a kernel because you need TUN, or because you want to use the new changes to read the OMAP sensor to track real time CPU temperatures, the only real difference that exists is how stable a kernel is on your hardware - getting back to the fact that some phones run better on higher voltage.

    Remember the next time you see someone claiming that this kernel or that kernel seems faster, or smoother. It isn't.
    Last edited by banderbe; 08-05-2010 at 08:22 AM.
  2.  
     
     
     
  3. Droid Ninja
    brando56894's Avatar
    Member #
    45165
    Join Date
    Mar 2010
    Location
    New Jersey
    Posts
    1,217
    Phone
    HTC Incredible
    #2
    Great post, very informative. I was just thinking "why dont I start to build my own kernels? I build my own linux kernels already" That way I'd know exactly what works best for my phone.
    How To: Compiling a Custom Version of Clockwork Mod Recovery
    <-- Lockscreen

    ROM: Incredibly Re-Engineered v2.3
  4. Senior Droid
    banderbe's Avatar
    Member #
    42260
    Join Date
    Feb 2010
    Posts
    148
    Phone
    A855
    #3
    Thanks. That's exactly what I have ended up doing is building my own kernels. That way I can crank the voltage down as low as my phone will allow. Plus I can build in the modules I want, and experiment with other settings when time allows. It's a great way to learn about the linux kernel.
  5. Senior Droid
    DeeMat's Avatar
    Member #
    25310
    Join Date
    Jan 2010
    Posts
    245
    Liked
    3 times
    Phone
    Galaxy S4
    #4
    Good write up banderbe.
  6. Droid Sensei
    ilikemoneygreen's Avatar
    Member #
    56291
    Join Date
    Apr 2010
    Location
    AZ, Superstition MTNs!
    Posts
    2,586
    Liked
    206 times
    Phone
    OG D1/G-Nex
    #5
    Awesome writeup
    Turtle bit me.I thought they were slow....they snap so fast. ................. <3
  7. Senior Droid
    banderbe's Avatar
    Member #
    42260
    Join Date
    Feb 2010
    Posts
    148
    Phone
    A855
    #6
    bump!!!!!!!!!!!!
  8. Master Droid
    giant25's Avatar
    Member #
    23608
    Join Date
    Jan 2010
    Location
    CA
    Posts
    299
    Liked
    6 times
    Phone
    Droid Bionic, retired D1
    #7
    What's the "bump" for?!?! All kidding aside, thanks for the write up. I think battery life, voltage, and temperature are all very important reasons for the various kernels out there. I think these variations account for an overall feel of performance between these kernels. I understand your point about the limited number of configurable parameters, but they are important ones nonetheless. Great info. Thanks.
  9. Developer Relations
    tp7six's Avatar
    Member #
    61666
    Join Date
    Apr 2010
    Posts
    11,512
    Liked
    361 times
    Twitter
    DroidForums
    Phone
    [MDK] S4
    Premium Member
    #8
    I have answered a lot of kernel questions today, sometimes a Bump is necessary for the good of the Forum

  10. Master Droid
    giant25's Avatar
    Member #
    23608
    Join Date
    Jan 2010
    Location
    CA
    Posts
    299
    Liked
    6 times
    Phone
    Droid Bionic, retired D1
    #9
    Quote Originally Posted by tparker76 View Post
    I have answered a lot of kernel questions today, sometimes a Bump is necessary for the good of the Forum
    I was mostly kidding about the bump. Just thought I missed a question in there somewhere....
  11. Beta Team
    Tanknspank's Avatar
    Member #
    27138
    Join Date
    Jan 2010
    Location
    North Carolina
    Posts
    3,548
    Phone
    Droid 1
    Premium Member
    #10
    Wow, glad it did get bumped. This will be a useful link to post to those who say certain things.

    Sent from my Droid
    -----------------------------------
    Rom: CyanogenMod 7 Winner00's Nightly #85
    Recovery: ClockworkMod 3.1.0.2
    Kernel: Prime's deprimed_test
    Theme: Stock
    Launcher: ADW EX 1.2.2
    Launcher Theme: Gingerbread
    Twitter: http://twitter.com/ihaztehwingz

    -----------------------------------
Page 1 of 2 12 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Replies: 11
    Last Post: 03-26-2011, 07:04 AM
  2. Truth or Rumor about Twitroyd
    By spauldingfan in forum Android Applications
    Replies: 2
    Last Post: 07-23-2010, 03:14 PM
  3. Any truth to this security issue?
    By Jim 777 in forum Android General Discussions
    Replies: 8
    Last Post: 04-21-2010, 09:39 PM
  4. Cyanogenmod/UD Truth
    By TheMarkness in forum Android Roms
    Replies: 356
    Last Post: 04-15-2010, 05:28 PM
  5. Any truth to this rumor?
    By daveo64 in forum Off Topic Forum
    Replies: 14
    Last Post: 02-15-2010, 11:02 PM

Search tags for this page

a855 kernel
,

a855 kernels

,

android generic kernel

,
android kernel voltage table
,
best kernel for a855
,
droid a855 kernel
,
frequency tables android kernel
,
kernel ??? droid a855
,

sholes defconfig

,
voltage table android
Click on a term to search our site for related topics.
Find us on Google+