From e0a46306ead28ad834b81f61163f583442618eca Mon Sep 17 00:00:00 2001 From: Stephen Date: Sun, 24 Feb 2019 16:42:55 +0100 Subject: [PATCH] resin-image.inc: add support for Orange Pi One device This adds the possibility to build balenaOS for the Orange Pi One device. Changelog-entry: add support for Orange Pi One device Signed-off-by: Stephen Sorriaux --- .../recipes-core/images/resin-image.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/layers/meta-resin-allwinner/recipes-core/images/resin-image.inc b/layers/meta-resin-allwinner/recipes-core/images/resin-image.inc index 5742e5a..aa6fa1e 100644 --- a/layers/meta-resin-allwinner/recipes-core/images/resin-image.inc +++ b/layers/meta-resin-allwinner/recipes-core/images/resin-image.inc @@ -16,6 +16,24 @@ IMAGE_CMD_resinos-img_append_orangepi-plus2 () { dd if=${DEPLOY_DIR_IMAGE}/u-boot-sunxi-with-spl.bin of=${RESIN_RAW_IMG} conv=notrunc seek=8 bs=1024 } +# +# Orange Pi One +# + +IMAGE_FSTYPES_append_orange-pi-one = " resinos-img" + +# Customize resinos-img +RESIN_IMAGE_BOOTLOADER_orange-pi-one = "u-boot" +RESIN_BOOT_PARTITION_FILES_orange-pi-one = " \ + ${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin:/${KERNEL_IMAGETYPE} \ + uImage-sun8i-h3-orangepi-one.dtb:/dtb/sun8i-h3-orangepi-one.dtb \ + u-boot-sunxi-with-spl.bin: \ +" +IMAGE_CMD_resinos-img_append_orange-pi-one () { + # Orange Pi One needs uboot written at a specific location + dd if=${DEPLOY_DIR_IMAGE}/u-boot-sunxi-with-spl.bin of=${RESIN_RAW_IMG} conv=notrunc seek=8 bs=1024 +} + # # bananapi-M1+