1. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Getting Custom Kernels Running on the Droid X

Discussion in 'Droid X Roms' started by aliasxerog, Nov 2, 2010.

  1. aliasxerog
    Offline

    aliasxerog Premium Member Premium Member Developer

    Joined:
    Oct 24, 2010
    Messages:
    178
    Likes Received:
    0
    Trophy Points:
    0
    This is the thread that got this all started. Here mostly for historical reasons now that we have our own forum. This is still a very good read, and you always get something new out of it. It's kind of like your favourite book. :D



    I've been a linux kernel developer for years and recently got a Droid X. The first thing I did was root it and install a pretty unraped froyo ROM I found these forums. I really, really want to install cyanogenmod on the phone because it would be pretty sweet. My idea consists of booting up in to the standard kernel and having a custom init to use kexec(8) to bootstrap the custom kernel. This would completely bypass the whole locked-crazy-omg-efuse-killer thing. Even if the standard kernel doesn't have kexec(8) enabled you can still execute a linux kernel because it is a relocatable elf on most systems. The whole setup isn't ideal but it could get custom kernels running until there is a better solution.

    EDIT: If the are any android devs that know the system inside and out I would absolutely love your help.
    Last edited: Mar 30, 2011
  2. ArmyDude
    Offline

    ArmyDude New Member

    Joined:
    Aug 25, 2010
    Messages:
    374
    Likes Received:
    1
    Trophy Points:
    0
    :gotmyvote:
  3. Abe21599
    Offline

    Abe21599 Super Moderator

    Joined:
    Dec 22, 2009
    Messages:
    6,344
    Likes Received:
    29
    Trophy Points:
    48
    Location:
    Ohio
    id like to see what u can do! give it a go
  4. aliasxerog
    Offline

    aliasxerog Premium Member Premium Member Developer

    Joined:
    Oct 24, 2010
    Messages:
    178
    Likes Received:
    0
    Trophy Points:
    0
    Where can you download Motorola's Android sources?
  5. kennydied23
    Offline

    kennydied23 Member

    Joined:
    Mar 21, 2010
    Messages:
    595
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Cincinnati, OH
  6. mcsinfl
    Offline

    mcsinfl New Member

    Joined:
    Mar 9, 2010
    Messages:
    372
    Likes Received:
    0
    Trophy Points:
    0
    You should probably get in touch with koush, he ported cyanogen to d1 and was working on port to DX

    SSX-DX/Tapatalk/SlideIT
  7. aliasxerog
    Offline

    aliasxerog Premium Member Premium Member Developer

    Joined:
    Oct 24, 2010
    Messages:
    178
    Likes Received:
    0
    Trophy Points:
    0
    How do I get in touch with him?
  8. Abe21599
    Offline

    Abe21599 Super Moderator

    Joined:
    Dec 22, 2009
    Messages:
    6,344
    Likes Received:
    29
    Trophy Points:
    48
    Location:
    Ohio
    irc #koush probably the easiest way.
  9. aliasxerog
    Offline

    aliasxerog Premium Member Premium Member Developer

    Joined:
    Oct 24, 2010
    Messages:
    178
    Likes Received:
    0
    Trophy Points:
    0
    on what server?
  10. Abe21599
    Offline

    Abe21599 Super Moderator

    Joined:
    Dec 22, 2009
    Messages:
    6,344
    Likes Received:
    29
    Trophy Points:
    48
    Location:
    Ohio
    just connect to the koush channel
  11. aliasxerog
    Offline

    aliasxerog Premium Member Premium Member Developer

    Joined:
    Oct 24, 2010
    Messages:
    178
    Likes Received:
    0
    Trophy Points:
    0
    well I need a server to point irssi to you know :p
  12. Abe21599
    Offline

    Abe21599 Super Moderator

    Joined:
    Dec 22, 2009
    Messages:
    6,344
    Likes Received:
    29
    Trophy Points:
    48
    Location:
    Ohio
  13. aliasxerog
    Offline

    aliasxerog Premium Member Premium Member Developer

    Joined:
    Oct 24, 2010
    Messages:
    178
    Likes Received:
    0
    Trophy Points:
    0
    does anyone have any idea where the damn .kconfig file is store in the main android git tree? I can't find it anywhere.
  14. eulerphi8
    Offline

    eulerphi8 New Member

    Joined:
    Nov 2, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Have you also checked out the efforts to bypass the locked bootloader on the milestone? They tried using a kexec attack to initiate a second boot but couldn't get the radio to initialize correctly. The wiki is at www.droid–developers.org. Maybe some of the code there will be useful.

    Sent from my DROIDX using Tapatalk
  15. faxxer
    Offline

    faxxer New Member

    Joined:
    Sep 22, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
  16. aliasxerog
    Offline

    aliasxerog Premium Member Premium Member Developer

    Joined:
    Oct 24, 2010
    Messages:
    178
    Likes Received:
    0
    Trophy Points:
    0
    Well with the radio thing you just have to compile up some kernel extensions. For it then use modprobe to get them in. I think the cdma drivers are kernel extensions.

    Sent from my DROIDX
  17. fpatano
    Offline

    fpatano New Member

    Joined:
    Feb 11, 2010
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    0
    :yr1:
    Im with you all the way, I had CyanogenMod on my Droid and I miss it on my X. Im willing to help out in anyway possible, but you really need to talk to Koush, he has done a lot of development for the Droid. Hit him up on twitter: koush (koush) on Twitter

    :yr1:
  18. FSRBIKER
    Offline

    FSRBIKER New Member

    Joined:
    Dec 12, 2009
    Messages:
    645
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Oak Ridge, NJ
    Hmm watching this closely!
  19. aliasxerog
    Offline

    aliasxerog Premium Member Premium Member Developer

    Joined:
    Oct 24, 2010
    Messages:
    178
    Likes Received:
    0
    Trophy Points:
    0
    Ok so here's how I want to do this thing. Ideally I don't want to have to mess with anything that will make a phone possibly bricked. So that being said I was thinking possibly a userspace fix ala create a new init. The current init is fired up by the kernel and loads all of your crap that you want running. I want to add a few features and such into the new init that will allow it to load a new kernel on boot.

    1. Im going to add the ability to load up kernel modules so that we can load up a module with kexec and later the drivers for the radio hardware in the phone.

    2. I also want to make init be able to also function normally so we only need one init.

    3. I want to make it have some failsafe code in there to give you a working phone just in case the **** hits the fan.

    4. I want to make this fully configurable by the user with a pretty interface that i'm totally not programming because my idea of a pretty interface is ncurses with colour.

    If you have any questions or comments you can post them here or on my twitter (@aliasxerog). I'm also usually on irc.hak5.org #hak5. If you want to help please please contact me as I would love the help.

    Also thanks for all the support :)


    Sent from my DROIDX
  20. eulerphi8
    Offline

    eulerphi8 New Member

    Joined:
    Nov 2, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Woohoo this would be awesome.

    Sent from my DROIDX using Tapatalk
Search tags for this page

custom kernel droid x

,
custom kernels droid x
,

droid x custom kernel

,
droid x custom rom kernel
,

droid x kernel download

,

droid x kernels

,
how to upgrade kernel motorola droid x 2.3.4
,
kernel droid x
,
kexec load android
,
kexec-loader failed function not implemented
,
motorola droid x roms and kernels
,
new kernel motorola droid x
,
oot kernel droid x
,
suggested kernel for motorola droid x
,
where to download kernels for droid x