Add needed RAUC files & Layouts
This commit is contained in:
@@ -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
|
||||
}
|
||||
6
buildroot-external/board/ova/post-build.sh
Normal file
6
buildroot-external/board/ova/post-build.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
|
||||
cp "$BOARD_DIR/rauc.conf" "$TARGET_DIR/etc/rauc/system.conf"
|
||||
15
buildroot-external/board/ova/post-image.sh
Normal file
15
buildroot-external/board/ova/post-image.sh
Normal 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"
|
||||
21
buildroot-external/board/ova/rauc.conf
Normal file
21
buildroot-external/board/ova/rauc.conf
Normal 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
|
||||
Reference in New Issue
Block a user