ODROID-C4:修訂間差異
出自flip the world
Refactor: add [[Category:Boards and SoCs
]] |
|||
| (未顯示同一使用者於中間所作的 10次修訂) | |||
| 第11行: | 第11行: | ||
* UART signals are driven at 1.8V. | * UART signals are driven at 1.8V. | ||
== Build | == Build Android == | ||
=== Download Toolchains === | |||
; U-boot | |||
: http://releases.linaro.org/archive/14.09/components/toolchain/binaries/gcc-linaro-aarch64-none-elf-4.9-2014.09_linux.tar.xz | |||
: http://releases.linaro.org/archive/14.04/components/toolchain/binaries/gcc-linaro-arm-none-eabi-4.8-2014.04_linux.tar.xz | |||
; Linux kernel | |||
: https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/aarch64-linux-gnu/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz | |||
=== Set PATH === | |||
<pre> | |||
$ export PATH=$PATH:/opt/toolchains/gcc-linaro-aarch64-none-elf-4.9-2014.09_linux/bin | |||
$ export PATH=$PATH:/opt/toolchains/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin | |||
$ export PATH=$PATH:/opt/toolchains/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin | |||
</pre> | |||
=== Check out full source code === | |||
; 32 bit | |||
<pre> | |||
$ mkdir odroid-c4 | |||
$ cd odroid-c4 | |||
$ repo init -u https://github.com/hardkernel/android.git -b g12_9.0.0_master | |||
= | $ repo sync | ||
</pre> | |||
; 64 bit | |||
== | |||
<pre> | <pre> | ||
$ mkdir odroid-c4 | |||
$ cd odroid-c4 | |||
$ repo init -u https://github.com/hardkernel/android.git -b g12_9.0.0_64_master | |||
$ repo sync | |||
</pre> | </pre> | ||
== | === Build === | ||
<pre> | <pre> | ||
$ source build/envsetup.sh | |||
$ lunch odroidc4-eng | |||
$ make -j<core number> | |||
</pre> | |||
== One touch self install == | |||
; Create image | |||
: make -j<core number> selfinstall | |||
; Burn image | |||
<pre> | |||
$ sudo dd if=out/target/product/odroidc4/selfinstall-odroidc4.img of=/dev/sdd | |||
$ sync | |||
$ sudo eject /dev/sdd | |||
</pre> | </pre> | ||
== Android note == | == Android note == | ||
| 第94行: | 第66行: | ||
== Reference == | == Reference == | ||
* [https:// | * [https://wiki.odroid.com/odroid-c4/software/building_android, ODROID-C4 Building android] | ||
* [https:// | * [https://wiki.odroid.com/odroid-c4/odroid-c4, ODROID-C4] | ||
[[Category:Boards and SoCs]] | |||
2026年8月21日 (五) 13:17的最新修訂
Board Description
Pin definition
- UART signals are driven at 1.8V.
Build Android
Download Toolchains
- U-boot
- http://releases.linaro.org/archive/14.09/components/toolchain/binaries/gcc-linaro-aarch64-none-elf-4.9-2014.09_linux.tar.xz
- http://releases.linaro.org/archive/14.04/components/toolchain/binaries/gcc-linaro-arm-none-eabi-4.8-2014.04_linux.tar.xz
- Linux kernel
- https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/aarch64-linux-gnu/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz
Set PATH
$ export PATH=$PATH:/opt/toolchains/gcc-linaro-aarch64-none-elf-4.9-2014.09_linux/bin $ export PATH=$PATH:/opt/toolchains/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin $ export PATH=$PATH:/opt/toolchains/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin
Check out full source code
- 32 bit
$ mkdir odroid-c4 $ cd odroid-c4 $ repo init -u https://github.com/hardkernel/android.git -b g12_9.0.0_master $ repo sync
- 64 bit
$ mkdir odroid-c4 $ cd odroid-c4 $ repo init -u https://github.com/hardkernel/android.git -b g12_9.0.0_64_master $ repo sync
Build
$ source build/envsetup.sh $ lunch odroidc4-eng $ make -j<core number>
One touch self install
- Create image
- make -j<core number> selfinstall
- Burn image
$ sudo dd if=out/target/product/odroidc4/selfinstall-odroidc4.img of=/dev/sdd $ sync $ sudo eject /dev/sdd
Android note
- Disable ICMP for enable ping
- sysctl -w net.ipv4.icmp_echo_ignore_all=0
