summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-07-23 15:35:59 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-07-24 07:38:59 +0200
commitbfeb8323e05852b960c84d49c5c2f34c8049e3e0 (patch)
treedbce0293e34bbfe24f2eec50d643dce43e036fd7 /package
parent91ea5f2d4db5a30c5d0557a0c0174e5288926a93 (diff)
add sample for orange-pi zero
Diffstat (limited to 'package')
-rw-r--r--package/u-boot/Makefile9
-rw-r--r--package/u-boot/files/boot.script.opi5
2 files changed, 13 insertions, 1 deletions
diff --git a/package/u-boot/Makefile b/package/u-boot/Makefile
index dd8f8868d..866f8a81a 100644
--- a/package/u-boot/Makefile
+++ b/package/u-boot/Makefile
@@ -16,7 +16,7 @@ PKG_SITES:= ftp://ftp.denx.de/pub/u-boot/
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SYSTEM_DEPENDS:= beaglebone-black raspberry-pi raspberry-pi2 raspberry-pi3 banana-pro solidrun-imx6 solidrun-clearfog raspberry-pi3-64
+PKG_SYSTEM_DEPENDS:= beaglebone-black orange-pi0 raspberry-pi raspberry-pi2 raspberry-pi3 banana-pro solidrun-imx6 solidrun-clearfog raspberry-pi3-64
include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk
@@ -49,6 +49,10 @@ ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y)
CONFIG:= Bananapro_defconfig
UBOOT:= u-boot-sunxi-with-spl.bin
endif
+ifeq ($(ADK_TARGET_SYSTEM_ORANGE_PI0),y)
+CONFIG:= orangepi_zero_defconfig
+UBOOT:= u-boot-sunxi-with-spl.bin
+endif
ifeq ($(ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK),y)
CONFIG:= am335x_evm_defconfig
UBOOT:= u-boot.img
@@ -101,6 +105,9 @@ endif
ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y)
$(INSTALL_BIN) ./files/boot.script.bpi $(FW_DIR)
endif
+ifeq ($(ADK_TARGET_SYSTEM_ORANGE_PI0),y)
+ $(INSTALL_BIN) ./files/boot.script.opi $(FW_DIR)
+endif
ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG),y)
$(INSTALL_BIN) ./files/boot.script.clearfog $(FW_DIR)
endif
diff --git a/package/u-boot/files/boot.script.opi b/package/u-boot/files/boot.script.opi
new file mode 100644
index 000000000..58dbf8fae
--- /dev/null
+++ b/package/u-boot/files/boot.script.opi
@@ -0,0 +1,5 @@
+setenv fdt_high ffffffff
+setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p1 rootwait
+ext4load mmc 0:1 $kernel_addr_r boot/kernel
+ext4load mmc 0:1 $fdt_addr_r boot/sun8i-h2-plus-orangepi-zero.dtb
+bootz $kernel_addr_r - $fdt_addr_r