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+