Android I9100 源码编译 Step.7----编译内核

到三星OSRC下载ICS源代码,解压"GT-I9100_Kernel.tar.gz"后,放置到任意目录.(举例,我的目录在:"root/bin/i9cs/i9k").

具体编译过程请参考源码目录中的:"README_Kernel.txt"文件.

以下是我简短的翻译:

HOW TO BUILD KERNEL 3.0.15 FOR GT-I9100
(如何编译I9100的3.0.15内核)

1. How to Build
(如何编译)
    - get Toolchain
       (获取编译器)
    download and install arm-eabi-4.4.3 toolchain for ARM EABI.
        (下载并安装arm-eabi-4.4.3编译器)
    Extract kernel source and move into the top directory.
        (解压内核源代码,并进入源码根目录)

       [译著:以下开头含"$",意思均为在普通帐戶下,在控制台输入的内容,故不做翻译.]

    $ export CROSS_COMPILE=/opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-
    $ export ARCH=arm
    $ export USE_SEC_FIPS_MODE=true
    $ cd Kernel/
    $ make u1_defconfig
    $ make

2. Output files
(输出文件)
    - Kernel : Kernel/arch/arm/boot/zImage
       (内核为:Kernel/arch/arm/boot/zImage)
    - module : Kernel/drivers/*/*.ko
       (基带为:Kernel/drivers/*/*.ko)
    
3. How to make .tar binary for downloading into target.
(如何打包为".tar"文件并刷机)
    - change current directory to Kernel/arch/arm/boot
       (进入Kernel/arch/arm/boot目录中)
    - type following command
       (在控制台输入以下内容,即可打包)
    $ tar cvf GT-I9100_Kernel.tar zImage
posted @ 2012-06-10 11:34  成宫结伊  阅读(965)  评论(0编辑  收藏  举报