mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Use states
This commit is contained in:
parent
264c62d38d
commit
8a44103558
BIN
buildroot-external/board/ova/barebox-state.dtb
Normal file
BIN
buildroot-external/board/ova/barebox-state.dtb
Normal file
Binary file not shown.
61
buildroot-external/board/ova/barebox-state.dts
Normal file
61
buildroot-external/board/ova/barebox-state.dts
Normal file
@ -0,0 +1,61 @@
|
||||
/dts-v1/;
|
||||
/ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
aliases {
|
||||
state = &state_sd;
|
||||
};
|
||||
|
||||
backend_state_sd: bootstate@0x111000 {
|
||||
reg = <0x111000 0x418>;
|
||||
label = "state-sd";
|
||||
};
|
||||
|
||||
state_sd: state_memory {
|
||||
magic = <0xef784236>;
|
||||
compatible = "barebox,state";
|
||||
backend-type = "raw";
|
||||
backend = <&backend_state_sd>;
|
||||
backend-stridesize = <1024>;
|
||||
|
||||
bootstate {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
system0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
remaining_attempts@0 {
|
||||
reg = <0x0 0x4>;
|
||||
type = "uint32";
|
||||
default = <3>;
|
||||
};
|
||||
priority@4 {
|
||||
reg = <0x4 0x4>;
|
||||
type = "uint32";
|
||||
default = <10>;
|
||||
};
|
||||
};
|
||||
system1 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
remaining_attempts@8 {
|
||||
reg = <0x8 0x4>;
|
||||
type = "uint32";
|
||||
default = <3>;
|
||||
};
|
||||
priority@c {
|
||||
reg = <0xc 0x4>;
|
||||
type = "uint32";
|
||||
default = <20>;
|
||||
};
|
||||
};
|
||||
last_chosen@10 {
|
||||
reg = <0x10 0x4>;
|
||||
type = "uint32";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -5,6 +5,9 @@ image boot.vfat {
|
||||
file EFI/BOOT/BOOTx64.EFI {
|
||||
image = "barebox.bin"
|
||||
}
|
||||
file EFI/barebox/state.dtb {
|
||||
image = "barebox-state.dtb"
|
||||
}
|
||||
}
|
||||
size = 32M
|
||||
}
|
||||
@ -32,6 +35,11 @@ image sdcard.img {
|
||||
size = 256M
|
||||
}
|
||||
|
||||
partition bootstate {
|
||||
partition-type = 0x83
|
||||
size = 2M
|
||||
}
|
||||
|
||||
partition overlay {
|
||||
partition-type = 0x83
|
||||
image = "overlay.ext4"
|
||||
|
@ -16,6 +16,8 @@ dd if=/dev/zero of="$DATA_IMG" bs=4k count=16000
|
||||
mkfs.ext4 "$OVERLAY_IMG" && tune2fs -L "overlay" -c0 -i0 "$OVERLAY_IMG"
|
||||
mkfs.ext4 "$DATA_IMG" && tune2fs -L "data" -c0 -i0 "$DATA_IMG"
|
||||
|
||||
cp "$BOARD_DIR/barebox-state.dtb" "$BINARIES_DIR/"
|
||||
|
||||
genimage \
|
||||
--rootpath "$TARGET_DIR" \
|
||||
--tmppath "$GENIMAGE_TMP" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user