2010年10月7日星期四

Android Porting: Make Kernel (Example: MSM)

1. Get Android kernel source code
   git clone git://android.git.kernel.org/kernel/common.git

2. Set Environment Variables for ARM Compiler
 in ~/.bashrc, add
export ARCH=arm
export CROSS_COMPLIE=arm-eabi-
export PATH=$PATH:~/android/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin

3.  Set Kernel Configuration
*Based on ~/Documentation/android.txt
*Use MSM as default config
 hmtsay@ubuntu:~/kernel/froyo$ make msm_defconfig
 Then, customized by  $make menuconfig
Device Drivers  ---> 
Network device support  --->
 Wireless LAN  --->
    [*] Wireless LAN (IEEE 802.11)   
    [*] IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)   
    [*]   Support downloading firmware images with Host AP driver  
    [*]     Support for non-volatile firmware download

  [*] Power supply class support  --->
    [*]   Generic PDA/phone power driver
  [*] MMC/SD card support  --->


4. add Options in Makefile
ARCH=arm
CROSS_COMPILE=../../android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-

5. make
hmtsay@ubuntu:~/kernel/froyo/arch/arm/boot$ ls -l -a
...
-rwxr-xr-x  1 hmtsay hmtsay 1159504 2010-10-07 06:38 zImage
[] http://nemustech.blogspot.com/2009/04/android-on-s3c6410-target-board.html

沒有留言:

張貼留言