DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 48

Thread: How to compile your own kernel.

  1. Developer
    jamezelle's Avatar
    Member #
    57783
    Join Date
    Apr 2010
    Posts
    620
    Phone
    Motorola Droid
    DroidForums.net Developer
    Premium Member
    #21
    Quote Originally Posted by imwwwy View Post
    Hi all,
    I'm trying to build the ext2.ko and unionfs.ko for my Milestone to able to use APP2SD ..
    I followed the instructions to get the omap source and patch the unionfs source into the kernel source then build. It can be built without problem, then I try to put the ext2.ko and unionfs.ko to the phone and try to load them using "insmod", it gives me an error of "Exec format error"

    Do I have change anything in the "make menuconfig" in order to build binary compatible with my Milestone? I already checked that it's ARM system type has set to "TI OMAP" and "OMAP34xx Based System" is selected.

    Is there anything else to pay attention?

    (I'm using stock OTA Milestone 2.1update1 ROM with root access)

    Thanks a lot!!!
    --Patrick
    why are you adding unionFS as a module, cant you just merge the unionFS source code with the omap kernel then set it in menuconfig as "built-in" or if the option is not available in menuconfig then just add the config setting to enable it as built-in in the .config?

    also ext2 support is built into the kernel from the start and should just be enabled in menuconfig as built-in
  2. Droid Newbie
    imwwwy's Avatar
    Member #
    69751
    Join Date
    May 2010
    Posts
    3
    #22
    Thank you very much for your response!!
    I want to build modules because I want to stick to the stock kernel instead of a custom one ... is there any method to do that?
    Thanks!!


    Quote Originally Posted by jamezelle View Post
    why are you adding unionFS as a module, cant you just merge the unionFS source code with the omap kernel then set it in menuconfig as "built-in" or if the option is not available in menuconfig then just add the config setting to enable it as built-in in the .config?

    also ext2 support is built into the kernel from the start and should just be enabled in menuconfig as built-in
  3. Developer
    jamezelle's Avatar
    Member #
    57783
    Join Date
    Apr 2010
    Posts
    620
    Phone
    Motorola Droid
    DroidForums.net Developer
    Premium Member
    #23
    Quote Originally Posted by imwwwy View Post
    Thank you very much for your response!!
    I want to build modules because I want to stick to the stock kernel instead of a custom one ... is there any method to do that?
    Thanks!!


    Quote Originally Posted by jamezelle View Post
    why are you adding unionFS as a module, cant you just merge the unionFS source code with the omap kernel then set it in menuconfig as "built-in" or if the option is not available in menuconfig then just add the config setting to enable it as built-in in the .config?

    also ext2 support is built into the kernel from the start and should just be enabled in menuconfig as built-in
    THIS WOULD ONLY WORK IF THE STOCK KERNEL HAS EXTERNEL MODULE SUPPORT ENABLED, CHECK THE DEFAULT MILESTONE DEFCONFIG

    yea there is a way to build modules for the stock kernel, you would need the stock kernel EXACT version, check by doing:
    Code:
    adb shell uname -a
    you would need to merge your sources if needed
    then this will make the kernel with the local version you got from uname -a (replace -gf922713 with your version
    ) it also links the modules make to that local version so the stock kernel should accept them as their own.
    Code:
    $ make LOCALVERSION=-gf922713 #example use your local version though, ie. the hyphin and numbers after it
    then try loading those modules, let me know if it works
    Last edited by jamezelle; 05-30-2010 at 11:40 AM.
  4. Droid Newbie
    imwwwy's Avatar
    Member #
    69751
    Join Date
    May 2010
    Posts
    3
    #24
    Thanks a lot!
    Yes, the stock kernel do support module loading, cause I managed to download an ext2.ko on the web and got it loaded on my phone.
    I will try to build my own with your hints and upload the results here!

    Cheers!

    Quote Originally Posted by jamezelle View Post
    THIS WOULD ONLY WORK IF THE STOCK KERNEL HAS EXTERNEL MODULE SUPPORT ENABLED, CHECK THE DEFAULT MILESTONE DEFCONFIG

    yea there is a way to build modules for the stock kernel, you would need the stock kernel EXACT version, check by doing:
    Code:
    adb shell uname -a
    you would need to merge your sources if needed
    then this will make the kernel with the local version you got from uname -a (replace -gf922713 with your version
    ) it also links the modules make to that local version so the stock kernel should accept them as their own.
    Code:
    $ make LOCALVERSION=-gf922713 #example use your local version though, ie. the hyphin and numbers after it
    then try loading those modules, let me know if it works
  5. Senior Droid
    banderbe's Avatar
    Member #
    42260
    Join Date
    Feb 2010
    Posts
    148
    Phone
    A855
    #25
    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.
    Last edited by banderbe; 06-04-2010 at 01:56 PM.
  6. Senior Droid
    banderbe's Avatar
    Member #
    42260
    Join Date
    Feb 2010
    Posts
    148
    Phone
    A855
    #26
    Nevermind.. I skipped the 'checkout' step.. looks like it's compiling now.
  7. Senior Droid
    banderbe's Avatar
    Member #
    42260
    Join Date
    Feb 2010
    Posts
    148
    Phone
    A855
    #27
    Quote Originally Posted by adrynalyne View Post
    Part 6
    Flashing kernel and hosing your phone


    You cannot do this from within Android, so reboot to recovery mode.
    You will also need adb setup for this. In SPRecovery, go to mount options and mount the sd card.

    Code:
    adb shell
    flash_image boot /sdcard/boot.img
    Reboot.

    Once back up (assuming you booted), install the wifi driver.
    Code:
    adb shell
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    busybox cp /sdcard/tiwlan.ko /system/lib/modules/tiwlan.ko
    sync
    reboot
    Thats the main meat of it. Many things can be added and modified that go beyond this tutorial. The sky is the limit.

    Here is a sample kernel I made. Its not meant for regular use, just an example
    Couldn't you just make an update.zip and put that on the root of the sd card and install it that way?
  8. Senior Droid
    banderbe's Avatar
    Member #
    42260
    Join Date
    Feb 2010
    Posts
    148
    Phone
    A855
    #28
    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!!!!
    Last edited by banderbe; 06-04-2010 at 09:30 PM.
  9. Droid Ninja
    Se7enLC's Avatar
    Member #
    5148
    Join Date
    Nov 2009
    Posts
    1,263
    Liked
    6 times
    Phone
    Samsung Galaxy Nexus
    #29
    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?
    Cool CM Tricks
    custom_backup_list.txt - make a list of files in /system that will survive a nightly install (ringtones, notifications, system apps, wallpapers, whatever)
    in Terminal Emulator, set this as your shell command: "/system/xbin/su -c /system/xbin/bash". You get all the features of bash, root access, and you can still use the initial command field for whatever you want (default is adding /data/local/bin to your path)
  10. Junior Droid
    Drew408's Avatar
    Member #
    67482
    Join Date
    May 2010
    Posts
    18
    Phone
    Motorola Droid
    #30
    Quote Originally Posted by adrynalyne View Post
    Part 6
    Flashing kernel and hosing your phone


    You cannot do this from within Android, so reboot to recovery mode.
    You will also need adb setup for this. In SPRecovery, go to mount options and mount the sd card.

    Code:
    adb shell
    flash_image boot /sdcard/boot.img
    Reboot.)
    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?
Page 3 of 5 FirstFirst 12345 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. Tun kernel module for BB.9 w/Adamz kernel
    By tkcrabtree in forum Android Roms
    Replies: 1
    Last Post: 03-20-2010, 11:27 PM
  2. OC kernel
    By alm0614 in forum Android Hacks and Help
    Replies: 11
    Last Post: 03-15-2010, 09:31 AM
  3. Which OC kernel should i use??
    By meishkov in forum Android Roms
    Replies: 4
    Last Post: 03-13-2010, 06:20 PM

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 overclock kernel android
,
make arm-eabi-gcc command not found ubuntu
,
make: arm-eabi-gcc: command not found make: *** [cpu/omap3/s
,

mkbootimg

,
mkbootimg ubuntu
Click on a term to search our site for related topics.
Find us on Google+