diff --git a/layers/meta-resin-allwinner/recipes-core/images/resin-image.bbappend b/layers/meta-resin-allwinner/recipes-core/images/resin-image.bbappend index b2f2169..2e64e19 100644 --- a/layers/meta-resin-allwinner/recipes-core/images/resin-image.bbappend +++ b/layers/meta-resin-allwinner/recipes-core/images/resin-image.bbappend @@ -16,3 +16,22 @@ 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 } + +# +# orange-pi-lite +# + +IMAGE_FSTYPES_append_orange-pi-lite = " resinos-img" + +# Customize resinos-img +RESIN_IMAGE_BOOTLOADER_orange-pi-lite = "u-boot" +RESIN_BOOT_PARTITION_FILES_orange-pi-lite = " \ + ${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin:/${KERNEL_IMAGETYPE} \ + uImage-sun8i-h3-orangepi-lite.dtb:/sun8i-h3-orangepi-lite.dtb \ + boot.scr:/boot.scr \ + " + +IMAGE_CMD_resinos-img_append_orange-pi-lite () { + # 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 +} \ No newline at end of file diff --git a/orange-pi-lite.coffee b/orange-pi-lite.coffee new file mode 100644 index 0000000..8e6af73 --- /dev/null +++ b/orange-pi-lite.coffee @@ -0,0 +1,35 @@ + +deviceTypesCommon = require '@resin.io/device-types/common' +{ networkOptions, commonImg, instructions } = deviceTypesCommon + +module.exports = + version: 1 + slug: 'orange-pi-lite' + name: 'Orange Pi Lite' + arch: 'armv7hf' + state: 'experimental' + + instructions: commonImg.instructions + gettingStartedLink: + windows: 'http://docs.resin.io/#/pages/installing/gettingStarted.md#windows' + osx: 'http://docs.resin.io/#/pages/installing/gettingStarted.md#on-mac-and-linux' + linux: 'http://docs.resin.io/#/pages/installing/gettingStarted.md#on-mac-and-linux' + supportsBlink: false + + options: [ networkOptions.group ] + + yocto: + machine: 'orange-pi-lite' + image: 'resin-image' + fstype: 'resinos-img' + version: 'yocto-morty' + deployArtifact: 'resin-image-orange-pi-lite.resinos-img' + compressed: true + + configuration: + config: + partition: + primary: 1 + path: '/config.json' + + initialization: commonImg.initialization