diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-07-23 15:35:59 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-07-24 07:38:59 +0200 |
commit | bfeb8323e05852b960c84d49c5c2f34c8049e3e0 (patch) | |
tree | dbce0293e34bbfe24f2eec50d643dce43e036fd7 /target/arm | |
parent | 91ea5f2d4db5a30c5d0557a0c0174e5288926a93 (diff) |
add sample for orange-pi zero
Diffstat (limited to 'target/arm')
-rw-r--r-- | target/arm/Makefile | 10 | ||||
-rw-r--r-- | target/arm/kernel/orange-pi0 | 9 | ||||
-rw-r--r-- | target/arm/systems/orange-pi0 | 24 |
3 files changed, 43 insertions, 0 deletions
diff --git a/target/arm/Makefile b/target/arm/Makefile index d613e23f3..4e600888f 100644 --- a/target/arm/Makefile +++ b/target/arm/Makefile @@ -78,6 +78,12 @@ ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y) @echo "Use following command to install with a writable data partition" @echo "sudo ./scripts/install.sh -d 256 banana-pro /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" endif +ifeq ($(ADK_TARGET_SYSTEM_ORANGE_PI0),y) + @echo "Use following command to install it on SD card:" + @echo "sudo ./scripts/install.sh orange-pi0 /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "Use following command to install with a writable data partition" + @echo "sudo ./scripts/install.sh -d 256 orange-pi0 /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" +endif endif ifeq ($(ADK_TARGET_FS),initramfs) targethelp: @@ -182,6 +188,10 @@ ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y) env $(KERNEL_MAKE_ENV) $(MAKE) -C "${LINUX_DIR}" $(KERNEL_MAKE_OPTS) \ sun7i-a20-bananapro.dtb $(MAKE_TRACE) endif +ifeq ($(ADK_TARGET_SYSTEM_ORANGE_PI0),y) + env $(KERNEL_MAKE_ENV) $(MAKE) -C "${LINUX_DIR}" $(KERNEL_MAKE_OPTS) \ + sun8i-h2-plus-orangepi-zero.dtb $(MAKE_TRACE) +endif ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y) env $(KERNEL_MAKE_ENV) $(MAKE) -C "${LINUX_DIR}" $(KERNEL_MAKE_OPTS) \ imx6q-cubox-i.dtb imx6dl-cubox-i.dtb imx6dl-hummingboard.dtb imx6q-hummingboard.dtb $(MAKE_TRACE) diff --git a/target/arm/kernel/orange-pi0 b/target/arm/kernel/orange-pi0 new file mode 100644 index 000000000..6fc00e228 --- /dev/null +++ b/target/arm/kernel/orange-pi0 @@ -0,0 +1,9 @@ +CONFIG_ARM=y +CONFIG_ARM_PATCH_PHYS_VIRT=y +CONFIG_ARCH_MULTI_V7=y +CONFIG_ARCH_SUNXI=y +CONFIG_MACH_SUN8I=y +CONFIG_ATAGS=y +CONFIG_ARM_APPENDED_DTB=y +CONFIG_ARM_ATAG_DTB_COMPAT=y +CONFIG_CMDLINE_FORCE=y diff --git a/target/arm/systems/orange-pi0 b/target/arm/systems/orange-pi0 new file mode 100644 index 000000000..9abc2100d --- /dev/null +++ b/target/arm/systems/orange-pi0 @@ -0,0 +1,24 @@ +config ADK_TARGET_SYSTEM_ORANGE_PI0 + bool "Orange PI Zero" + depends on ADK_TARGET_LITTLE_ENDIAN + select ADK_TARGET_CPU_ARM_CORTEX_A7 + select ADK_TARGET_CPU_WITH_NEON + select ADK_TARGET_WITH_SERIAL + select ADK_TARGET_WITH_CPU_FREQ + select ADK_TARGET_WITH_USB + select ADK_TARGET_WITH_INPUT + select ADK_TARGET_WITH_SD + select ADK_TARGET_WITH_I2C + select ADK_TARGET_WITH_SPI + select ADK_TARGET_WITH_SMP + select ADK_TARGET_WITH_ROOT_RW + select ADK_TARGET_WITH_NET + select ADK_TARGET_WITH_NETDEVICE + select ADK_TARGET_WITH_BLOCK + select ADK_TARGET_KERNEL_ZIMAGE + select ADK_TARGET_KERNEL_WITH_COMPRESSION + select ADK_PACKAGE_U_BOOT + select ADK_HOST_BUILD_U_BOOT + help + Orange PI Zero + |