Nike Kernel Build

跳转至: 导航搜索

Compiling your own kernel for the Nike

First of all, you can find a log of the git tree here Here you have some instructions (thanks to kvstrein)

  1. Create working dir:
    mkdir /android-kernel
  2. Go to the dir:
    cd /android-kernel
  3. Clone the Linuxtogo GIT:
    git clone git://
  4. Go into newly created dir:
    cd /android-kernel/kernel
  5. Create a new branch, call it htc-vogue and link it to the official htc-vogue development branch:
    git checkout -b htc-vogue origin/htc-vogue
  6. Descend into the "main" android dir:
    cd /android-kernel
  7. Get toolchain:
  8. Unpack the toolchain:
    tar -xjf arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
  9. Ascend again into the 'kernel' directory:
    cd /android-kernel/kernel
  10. Make the kernel (by now we use either the polaris or vogue defconfig):
    make ARCH=arm vogue_defconfig
  11. Export path so the newly downloaded toolchain will be used instead of your default compiler (which would compile for your computer instead of your phone):
    export PATH=~/android-kernel/arm-2008q3/bin:$PATH
    1. If you want this to be permanent, type:
      cd ; export PATH=~/android-kernel/arm-2008q3/bin:$PATH >> .bashrc
    Now make whatever changes you want to the code. Everything for the htc nike is located at
  12. Make the zImage-file:
    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
    1. People with a multi-core processor can use the -j argument, in this example: dual-core. (syntax: make -j <number of cores / processors>):
      make -j 2 ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

Back to Niki Android or Back to Xanadux