1. Are you ready for the Galaxy S20? Here is everything we know so far!

Anyone have any experience in building kernels? :p

Discussion in 'Android Devices' started by Rxpert83, Aug 12, 2012.

  1. Rxpert83

    Rxpert83 Dr. Feelgood
    Thread Starter

    The fun begins..... :)

    So those of you who know me from the EVO 4G forums know I like to learn via experience. See my failed ROM building epic lol :rolleyes: (Never got that darn thing booting. I now know that the 3D ROM I was porting was simply too big to fit into the EVO's tiny partitions the way I was trying to do it.)

    Anyway, this is how I learn the inner workings of everything. So now that I'm fairly comfortable with ROMS its time to move onto kernels.

    Problem is, most tutorials I try to follow seem to do things differently. I've got to the point where I've actually started making changes to the kernels, and I've added things like different governors (ex-SmartassV2).

    Where I'm stuck is how to get this thing to compile :thinking: Most threads I'm reading about building from source do it differently, and differences in devices aren't exactly making this transition easy.

    At some point I hope to have a working kernel with at least a few customizations, so if you guys want to possibly brick your devices give me the heads up and you can be the first to test (kidding? :smokingsomb:)

    Once I figure out how to make I can research more additions.




    Time to start 'sperimentin

    Edit:
    Lithid may be to the rescue here. Forgot about his autocompiler. Lets see if I can make the changes to get it to compile my kernel
     



    1. Download the Forums for Android™ app!


      Download

       
  2. good luck let us know how if progresses.
     
  3. Rxpert83

    Rxpert83 Dr. Feelgood
    Thread Starter

    I gave up around 2:30 this morning and went to bed haha. I think I need to completely scrap the project and start over fresh. The thing about linux is, if the working environment isnt set up correctly your screwed from the get go.

    I think I need to backtrack, follow one of the guides for building a kernel from source and just use whatever source is in that guide and build the kernel for some other device without modifications. That way I at least know I have things set up properly.
     
  4. argedion

    argedion The TechnoFrog

    so whats the issue? how can we help? what distro are you running and why? if the sky was green would we really have trouble finding out where to stop mowing?
     
  5. Rxpert83

    Rxpert83 Dr. Feelgood
    Thread Starter

    I'm in the middle of completely reinstalling my Linux os right now to try and give me some more space to work with and a fresh start. I contacted ca1ne and he said 12.04 should work..
    It's my understanding that only 10.04 is officially supported by the guys at source.Android.Com


    My slow Internet connection is going to make this a long process
     
  6. Rxpert83

    Rxpert83 Dr. Feelgood
    Thread Starter

    I've at least got the build tools I think I need installed now, source is just finishing up. What it comes down to I guess is I dont know the correct terminal commands to build the physical kernel.

    I can untar it, make changes, and then thats the end of the line.

    Some guides reference cross compiling, some want me to pull the current kernel config via adb, ect. I'm trying to limit the posts I'm reading to HTC specific phones, but thats easier said than done.


    I was just wondering if anyone had any experience with this kind of thing. I'm such a linux noob haha
     
  7. Rxpert83

    Rxpert83 Dr. Feelgood
    Thread Starter

    I'm hacking my way through the errors and making (perceived) progress :)
     
  8. argedion

    argedion The TechnoFrog

    by all means keep hacking away. you'll learn both at once. It's the great thing with Linux no matter how bad you screw it up you can still fix it.
     
  9. EarlyMon

    EarlyMon The PearlyMon
    VIP Member

    My advice, take it steps.

    Create a virtual machine that you can use as a sandbox. Make backups of the virtual image as you go along.

    Try building a module and adding it to the desktop kernel inside your virtual sandbox.

    Work your way up to a full kernel build.

    After you're comfortable then turn to cross-building.

    Then turn to building a Linux kernel for Android.

    That's not the only way, but that's how I would proceed.

    Have you seen -

    http://en.wikipedia.org/wiki/Linux_From_Scratch

    http://www.linuxfromscratch.org/
     
    Rxpert83 likes this.

HTC EVO 4G LTE Forum

The HTC EVO 4G LTE release date was May 2012. Features and Specs include a 4.7" inch screen, 8MP camera, 1GB RAM, Snapdragon S4 Plus processor, and 2000mAh battery.

May 2012
Release Date
0
Reviews
Loading...

Share This Page

Loading...