mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-26 22:46:32 +00:00
Add overlay for state to rpi
This commit is contained in:
parent
9e141e782f
commit
d784ba8c36
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
for i in /env/overlay/*.dbto; do
|
||||
for i in /env/overlay/*.dtbo; do
|
||||
oftree -o $i
|
||||
done
|
||||
|
BIN
buildroot-external/board/rpi2/barebox-env/barebox-state-rpi.dtbo
Normal file
BIN
buildroot-external/board/rpi2/barebox-env/barebox-state-rpi.dtbo
Normal file
Binary file not shown.
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
of_fixup_status /soc/mmc@7e202000/
|
@ -37,9 +37,10 @@ CONFIG_CMD_GETOPT=y
|
||||
CONFIG_CMD_MENUTREE=y
|
||||
CONFIG_CMD_TIMEOUT=y
|
||||
CONFIG_CMD_DETECT=y
|
||||
CONFIG_CMD_OF_FIXUP_STATUS=y
|
||||
CONFIG_CMD_OFTREE=y
|
||||
CONFIG_CMD_STATE=y
|
||||
CONFIG_CMD_BOOTCHOOSER=y
|
||||
CONFIG_OFTREE_OVERLAY=y
|
||||
CONFIG_SERIAL_AMBA_PL011=y
|
||||
# CONFIG_SPI is not set
|
||||
CONFIG_MCI=y
|
||||
|
Binary file not shown.
BIN
buildroot-external/fdt/barebox-state-rpi.dtbo
Normal file
BIN
buildroot-external/fdt/barebox-state-rpi.dtbo
Normal file
Binary file not shown.
37
buildroot-external/fdt/barebox-state-rpi.dtso
Normal file
37
buildroot-external/fdt/barebox-state-rpi.dtso
Normal file
@ -0,0 +1,37 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
|
||||
fragment@0 {
|
||||
target = <&sdhci>;
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&sdhost>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
partitions {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "fixed-partitions";
|
||||
|
||||
backend_state_sdhost: partition@22100000 {
|
||||
label = "state";
|
||||
reg = <0x22100000 0x800000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&state>;
|
||||
__overlay__ {
|
||||
backend = <&backend_state_sdhost>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
dtc -O dtb -o buildroot-external/fdt/barebox-state-efi.dtb buildroot-external/fdt/barebox-state-efi.dts
|
||||
dtc -I dts -O dtb -o buildroot-external/fdt/barebox-state-efi.dtb buildroot-external/fdt/barebox-state-efi.dts
|
||||
|
||||
dtc -@ -I dts -O dtb -o buildroot-external/fdt/barebox-state-rpi.dtbo buildroot-external/fdt/barebox-state-rpi.dtso
|
||||
|
Loading…
x
Reference in New Issue
Block a user