Mittwoch, 11. August 2010

How To Patch Google's Android 2.6.32 Kernel

Just a short write-up for anyone who is interested in porting/playing with the current android kernel on their GW620/eve.

DISCLAIMER:
This patch only contains the bare minimum to get the kernel booted.
Only serial console and usb/adb works.
No (and i really mean _NO_) additional hardware beside board/cpu/serial/usb is supported (yet).
This is only useful for developers try to help porting!

you have been warned ;-)
  • First of all, get the sources:
    # mkdir android-msm-2.6.32 && cd android-msm-2.6.32
    # git clone git://android.git.kernel.org/kernel/msm.git .
  • Now get my patch:
    # wget http://github.com/maldn/eve/raw/master/google-32-eve-minimal.patch
  • And apply the patch:
    # cat google-32-eve-minimal.patch | patch -p1
  • Configure kernel:
    add CONFIG_MACH_EVE to your kernel-config (or if you use menuconfig, select System Type -> [*] eve)
  • Build:
    i use ccache, so my cmd-line looks like this:
    # make -j3 ARCH=arm CROSS_COMPILE="ccache /home/maldn/android/eclair/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-"
... that's it. How to get this running is subject to another post, so stay tuned :-)


maldn

1 Kommentar:

  1. Can you please post the .config you used? It seems that the stock one (from menuconfig + enable EVE) will give linker errors.

    AntwortenLöschen