Add needed RAUC files & Layouts

This commit is contained in:
Pascal Vizeli
2018-03-19 23:19:23 +01:00
parent e217ccf3aa
commit a9a3cabf96
5 changed files with 77 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ image boot.vfat {
files = {
"bzImage"
}
file EFI/BOOT/BOOTx64.EFI {
image = "barebox.bin"
}
@@ -35,13 +35,13 @@ image sdcard.img {
image = "boot.vfat"
}
partition root0 {
partition system0 {
partition-type = 0x83
image = "rootfs.squashfs"
size = 256M
}
partition root1 {
partition system1 {
partition-type = 0x83
size = 256M
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -e
BOARD_DIR="$(dirname $0)"
cp "$BOARD_DIR/rauc.conf" "$TARGET_DIR/etc/rauc/system.conf"

View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -e
BOARD_DIR="$(dirname $0)"
GENIMAGE_CFG="$BOARD_DIR/genimage.cfg"
GENIMAGE_TMP="$BASE_DIR/genimage.tmp"
rm -rf "$GENIMAGE_TMP"
genimage \
--rootpath "$TARGET_DIR" \
--tmppath "$GENIMAGE_TMP" \
--inputpath "$BINARIES_DIR" \
--outputpath "$BINARIES_DIR" \
--config "$GENIMAGE_CFG"

View File

@@ -0,0 +1,21 @@
[system]
compatible=HassIO-OS OVA
bootloader=barebox
[keyring]
path=/etc/rauc/keyring.pem
[slot.boot.0]
device=/dev/sda0
type=vfs
bootname=boot
[slot.rootfs.0]
device=/dev/sda1
type=raw
bootname=system0
[slot.rootfs.1]
device=/dev/sda2
type=raw
bootname=system1