Android platform build guide for Exynos-4412(odroid -X/X2/U2/U3/Q2/Q)

Android platform build guide for Exynos-4412(odroid -X/X2/U2/U3/Q2/Q)

How to download and build the Android source code
https://github.com/hardkernel/android

android-4.1.2

$ repo init -u https://github.com/hardkernel/android.git -b 4412_4.1.2_master
$ repo sync
$ repo start 4412_4.1.2_master --all
$ ./build_android.sh odroidu[x,x2,q,q2]

If you use ODROID-U3, the build option must be “./build_android.sh odroidu”.

$ repo forall -c git reset --hard 4412_v2.x

android-4.4.x

$ repo init -u https://github.com/hardkernel/android.git -b 4412_4.4.x_master
$ repo sync
$ repo start 4412_4.4.x_master --all
$ ./build.sh odroidxu platform

If you use ODROID-U3, the build option must be “./build.sh odroidu platform”.

$ repo forall -c git reset --hard 4412_v4.x

How to download the Kernel source code and build

https://github.com/hardkernel/linux/tree/odroid-3.0.y-android

Install cross compiler

http://www.mdrjr.net/odroid/toots/arm-2010q1.tar.xz or http://dn.odroid.com/toolchains/arm-2010q1.tar.xz

$ unxz arm-2010q1.tar.xz
$ tar xvf arm-2010q1.tar
$ sudo mkdir /opt/toolchains
$ sudo mv arm-2010q1 /opt/toolchains/
$ vi ~/.bashrc
export PATH=$PATH:/opt/toolchains/arm-2010q1/bin
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
$ source ~/.bashrc
$ arm-none-linux-gnueabi-gcc --version
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2010q1-202) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

anroid-4.1.2

$ git clone https://github.com/hardkernel/linux.git -b odroid-3.0.y-android
$ cd linux
$ make odroidu[x,x2,q,q2]_android_defconfig
$ make -j8

If you use ODROID-U3, the make option must be “make odroidu_android_defconfig”.

anroid-4.4.3

$ git clone https://github.com/hardkernel/linux.git -b odroid-3.0.y-android
$ cd linux
$ make odroidu[x,x2]_android_442_defconfig
$ make -j8

If you use ODROID-U3, the make option must be “make odroidu_android_defconfig”.

Write kernel

In the host PC.

#fastboot flash kernel arch/arm/boot/zIamge

Reboot system

In the host PC.

#fastboot reboot

转载自http://odroid.com/dokuwiki/doku.php?id=en:androidplatformbuildguideforexynos4412

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值