最終更新:2012-10-11 (木) 15:01:07 (4214d)  

ODROID-X/カーネル/ビルド
Top / ODROID-X / カーネル / ビルド

http://dev.odroid.com/projects/odroid-xq/

.config

  • BSPの.configはkernel_4412/arch/arm/configs/にある
    • odroidx_android_emmc_defconfig
    • odroidx_android_sdmmc_defconfig
    • odroidx_ubuntu_defconfig

Android

toolchain

ビルド

  • デフォルト設定の読み込み
    # make ARCH=arm odroidx_android_sdmmc_defconfig ====> ODROID-X (SD Boot)
    # make ARCH=arm odroidx_android_emmc_defconfig ====> ODROID-X(eMMC Boot)
  • パラメータの変更
    # make ARCH=arm menuconfig
  • ビルド
    # make ARCH=arm CROSS_COMPILE=arm-none-eabi-
  • If you build kernel successfully, you will have "arch/arm/boot/zImage" (compressed kernel image).
    arch/arm/boot/zImage

Android/fastboot

  • fastboot flash kernel ./zImage

カーネルだけ

参考

Ubuntu

toolchain

  • Linaro Toolchain
    sudo add-apt-repository ppa:linaro-maintainers/toolchain
    sudo apt-get update
    sudo apt-get install gcc-4.7
  • ネイティブのGCCでもビルド可能。

ビルド

  • export ARCH=arm 
    export CROSS_COMPILE=arm-linux-gnueabi
    
    git clone https://github.com/hardkernel/linux.git
    cd linux
    # Optional. Can be omitted because "odroidx-next" is the default branch.
    git checkout odroidx-next -b odroidx-next
    make odroidx_defconfig
    make uImage
    make modules
    make modules_install INSTALL_MOD_PATH=/media/rootfs

ARCH=arm

参考