How to compile your own kernel.

Discussion in 'Tech Guides for root users' started by adrynalyne, Mar 16, 2010.

  1. banderbe

    banderbe Member

    Joined:
    Feb 28, 2010
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I did

    git clone git://android.git.kernel.org/kernel/omap.git

    Downloaded the entire thing.. and I do not have a sholes_defconfig.

    Where is it? (Edit: It appears to have been removed from the 'Master' branch, but still resides in the other branches)

    I would really like to learn how to do this without copying your attaching config zip.
     
    #25 banderbe, Jun 4, 2010
    Last edited: Jun 4, 2010
  2. banderbe

    banderbe Member

    Joined:
    Feb 28, 2010
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Nevermind.. I skipped the 'checkout' step.. looks like it's compiling now.
     
  3. banderbe

    banderbe Member

    Joined:
    Feb 28, 2010
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Couldn't you just make an update.zip and put that on the root of the sd card and install it that way?
     
  4. banderbe

    banderbe Member

    Joined:
    Feb 28, 2010
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I'd just like to say thanks.. I just booted up my Droid running CyanogenMod 5.0.7.1 and MY KERNEL!!!

    Also I used Koush's AnyKernel format which is WAY easier than the way you described it (no offense).

    The AnyKernel format requires you to simply copy the kernel image and modules into folders, zip it up into update.zip and copy it to sd card, and viola.

    AWESOME.. I'm very excited about the possibilities from here on.. thanks again!!!!
     
    #28 banderbe, Jun 4, 2010
    Last edited: Jun 4, 2010
  5. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    Can somebody comment on what checkout tag should be used for the 2.6.32 froyo kernel? Any other important things to note for using these instructions on a newer kernel version?

    Also - is there a common location for information on various kernel hacks that become commonplace? I see overclocking listed in this thread, but are there other common tricks listed on a wiki somewhere?
     
  6. Drew408

    Drew408 New Member

    Joined:
    May 11, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I reboot into recovery (SPRecovery) mount the sd card, open terminal and type adb shell:

    I get back :
    Code:
    error:device not found
    any advice?
     
  7. jamezelle

    jamezelle Premium Member
    Premium Member Developer

    Joined:
    Apr 11, 2010
    Messages:
    620
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    i use clockworkmod recovery, its more advanced in my opinion. you can install it with rom manager free from the market, ive had NO problems getting adb shell in recovery with clockworkmod
     
  8. Drew408

    Drew408 New Member

    Joined:
    May 11, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I used clockworkmod and it worked but my recovery seems unstable. sometimes it wont mount the sd card. sometimes it reboots on its own back to normal.
    I got an error just now

    adb shell
    error: protocol fault (no status)

    then reboots
     
    #32 Drew408, Aug 4, 2010
    Last edited: Aug 4, 2010
  9. brando56894

    brando56894 Active Member

    Joined:
    Mar 9, 2010
    Messages:
    1,217
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New Jersey
    Ratings:
    +0
    Your kernel is probably buggy.
     
  10. ljbaumer

    ljbaumer Member

    Joined:
    Apr 2, 2010
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Unicorn Land
    Ratings:
    +0
    Hey sorry to bump an old thread but I just have 2 quick questions...


    1) Does this still work nowadays? I mean is all of the data still updated or should I download new kernel stuff or something? If so how?

    2) When I try and do this command:
    Code:
    git checkout --track -b android-omap-2.6.29-eclair origin/android-omap-2.6.29-eclair
    
    This always comes up:
    Code:
    ljbaumer@ubuntu:~/kernel/droid/ti$ git checkout --track -b android-omap-2.6.29-eclair origin/android-omap-2.6.29-eclair
    fatal: git checkout: updating paths is incompatible with switching branches.
    Did you intend to checkout 'origin/android-omap-2.6.29-eclair' which can not be resolved as commit?
    
    What should I do?


    Thanks a bunch,
    ljbaumer
     
  11. teddyearp

    teddyearp Senior Member

    Joined:
    Jan 13, 2010
    Messages:
    1,808
    Likes Received:
    12
    Trophy Points:
    83
    Location:
    Pinetop, AZ
    Ratings:
    +13
    Current Phone Model:
    Motorola XT1103 (Nexus 6)
    Although I don't have a complete answer for you, I can say with a fair amount of confidence that this thread is too old and is in serious need of maintenance. The kernel has been updated from 2.6.29 to 2.6.32 and the newest version is gingerbread, though you _might_ be able to still pull froyo source independant of the gingerbread commits.

    I personally gave up because the android gods just don't seem to want me to compile. Either my linux machine was always crashing and/or every time I asked a question it went unanswered.

    good luck

    edit: and the op hasn't even been signed into this site all year.
     
    #35 teddyearp, Mar 20, 2011
    Last edited: Mar 20, 2011
  12. ljbaumer

    ljbaumer Member

    Joined:
    Apr 2, 2010
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Unicorn Land
    Ratings:
    +0
    Thanks,

    teddyearp. Do you have any idea how I could download the gingerbread files?
     
Search tags for this page
android build mkbootimg
,
build android kernel
,
decompile android kernel windows
,
how to compile a kernel for android
,
how to make an overclock kernel android
,
how to make oc kernel
,
how to make overclock kernel android
,
make: arm-eabi-gcc: command not found make: *** [cpu/omap3/s
,

mkbootimg

,
mkbootimg ubuntu