add support for orange-pi-lite device type

This commit is contained in:
Shaun Mulligan 2017-04-28 14:17:36 +02:00
parent 77147ba321
commit 5f4b8633a7
2 changed files with 54 additions and 0 deletions
layers/meta-resin-allwinner/recipes-core/images
orange-pi-lite.coffee

View file

@ -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
}

35
orange-pi-lite.coffee Normal file
View file

@ -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