Author Topic: So you wanna dev Kernels?  (Read 2868 times)

0 Members and 1 Guest are viewing this topic.

So you wanna dev Kernels?

« on: April 21, 2012, 10:05:26 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • jcole20

    Posts: 545
    User Rating: +120/-0
    Offline
    • Co-Admin
    • *
    • Hero Member
    • Personal Text
      I LOVE TO ARGUE
    lol alright...

    Alright... lemme start off by saying this is for the Q (L55C)

    I've noticed a lot of people in the Android Community do not like to share how-to's. And a lot of people are interested in Kernel Dev... while I won't be teaching you how to compile a kernel, I'll show you how to modify a kernel. YOU NEED LINUX (I USE UBUNTU 11.04) TO DO THIS.

    Attached below is a .zip of the mkbootimg, unbootimg, and 2 cheat sheets/guides I made to help you out... ENJOY

    K,

    here's basic kernel devving 101

    First off extract the mkbootimg and unbootimg to a directory (I use the Desktop and put it in /home/username/Desktop/Kernel

    Then you need to put the boot.img in there with it.

    Next you need to cd into that directory eg cd /home/username/Desktop/Kernel

    next run this command just like this
    Code: You are not allowed to view links. Register or Login
    ./unbootimg boot.img
    this will split the boot.img into a ramdisk file and everything else...

    Next in /home/username/Desktop/Kernel create a new file named ramdisk or whatever will help you remember it.

    Put the boot.img-ramdisk.cpio.gz file in there. Then cd to that directory

    eg cd /home/username/Desktop/Kernel/ramdisk

    Now run this command to split the ramdisk archive open...
    Code: You are not allowed to view links. Register or Login
    zcat boot.img-ramdisk.cpio.gz | cpio -idv
    Now delete the boot.img-ramdisk.cpio.gz file from the */ramdisk folder.

    Do your kernel edits...

    Then to re archive the ramdisk run this command
    Code: You are not allowed to view links. Register or Login
    find . | cpio -o -H newc | gzip > ../boot.img-ramdisk.cpio.gz
    This will make a boot.img-ramdisk.cpio.gz file in /home/username/Desktop/Kernel with all of your edits. So delete your ramdisk folder.

    Next to rebuild the kernel delete the boot.img from /home/username/Desktop/Kernel and then cd into that directory

    Code: You are not allowed to view links. Register or Login
    cd /home/username/Desktop/Kernel
    then to rebuild the kernel run this command..
    Code: You are not allowed to view links. Register or Login
    ./mkbootimg --cmdline 'mem=477m console=ttyMSM2,115200n8 androidboot.hardware=gelato' --kernel boot.img-kernel --ramdisk boot.img-ramdisk.cpio.gz -o boot.img --base 12200000 --pagesize 2048
    It will create a boot.img file...and there you go. You've made your own Kernel... congrats :)

    • Custom
    • HTC One M8
    • TWRP
    • Rooted-Rom
    Innovation comes from being as stubborn as possible...





    Re: So you wanna dev Kernels?

    « Reply #1 on: December 14, 2012, 02:23:48 AM »
  • Thank You
  • -Given: 7
  • -Receive: 7
  • prepaidguy9081

    Posts: 744
    User Rating: +64/-1
    Offline
    • Board Moderator
    • *
    • Postaholic
    • Personal Text
      Ducksauce
      • King David @ Promodj.com
    kernel edits? how to for good ones?
    You are not allowed to view links. Register or Login
    • Custom
    • LG Risio/Samsung Note II/Samsung Precedent/Samsung Prevail
    • Clock Work Mod Touch
    • CM7-Precedent
    • Rooted-Rom
    You are not allowed to view links. Register or Login

    Re: So you wanna dev Kernels?

    « Reply #2 on: November 25, 2013, 10:24:28 PM »
  • Thank You
  • -Given: 0
  • -Receive: 2
  • redfield88

    Posts: 72
    User Rating: +14/-0
    Offline
    • *
    • Full Member
    Shouldn't this be considered editing the RAM Disk and nothing more? O.o
    • Custom
    • Samsung Galaxy Centura ( S738C )
    • AreaRom CWM v6
    • Arearom Centura
    • Rooted-Rom
    "This is my dream you are a figment of my inquisitive imagination."

    Re: So you wanna dev Kernels?

    « Reply #3 on: November 26, 2013, 12:24:51 AM »
  • Thank You
  • -Given: 0
  • -Receive: 32
  • Motorhead

    Posts: 1286
    User Rating: +393/-5
    Offline
    • Co-Admin
    • *
    • PostMaster General
    • Personal Text
      Global Moderator ** IRC Server Administrator ** Project Head ** Development Staff
    This thread is really dead :D.

    And yes Redfield, that's exactly what it is.
    • Custom
    • Samsung Galaxy Rugby Pro (comanche)
    • TWRP
    • Rooted-Rom
    Paypal: You are not allowed to view links. Register or Login

    You are not allowed to view links. Register or Login




    Re: So you wanna dev Kernels?

    « Reply #4 on: November 26, 2013, 03:27:16 AM »
  • Thank You
  • -Given: 0
  • -Receive: 1
  • cmac57

    Posts: 601
    User Rating: +53/-1
    Offline
    • VIP Member
    • *
    • Postaholic
    Thanks for the file, will print the instructions and try it on this centura...

    Area51 Customized Centura...

    • Stock
    • Stock
    • n/a

    Tags:
     

    Related Topics

      Subject / Started by Replies Last post
    0 Replies
    4317 Views
    Last post July 22, 2012, 06:14:29 PM
    by dlongnasty
    2 Replies
    1581 Views
    Last post September 06, 2012, 05:37:21 AM
    by kway
    1 Replies
    2109 Views
    Last post December 14, 2012, 02:49:48 AM
    by prepaidguy9081
    5 Replies
    2853 Views
    Last post January 17, 2013, 09:02:25 AM
    by goofytim
    21 Replies
    9004 Views
    Last post September 14, 2016, 08:26:56 PM
    by donhiser