mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 12:13:01 +02:00
Generate a boot menu, accessible with C-c during a short window, where a user can interactively select a custom boot source and/or trigger a factory reset of the device. With this in place, we should always be able to unbrick a device, as the image can be fed over the network, and local data can be ignored by opting in to a factory reset.
27 lines
634 B
Devicetree
27 lines
634 B
Devicetree
/ {
|
|
config {
|
|
env: environment {
|
|
};
|
|
};
|
|
};
|
|
|
|
&env {
|
|
vendor = "infix";
|
|
preboot = "run ixpreboot";
|
|
ixbootdelay = "0.5";
|
|
bootdelay = "-2";
|
|
bootmenu_delay = "10";
|
|
boot_targets = "virtio mmc";
|
|
bootcmd = "run ixboot";
|
|
|
|
ixpreboot = /incbin/("scripts/ixpreboot.sh");
|
|
ixbtn-devmode = /incbin/("scripts/ixbtn-devmode.sh");
|
|
ixbtn-factory = /incbin/("scripts/ixbtn-factory.sh");
|
|
ixfactory = /incbin/("scripts/ixfactory.sh");
|
|
|
|
ixboot = /incbin/("scripts/ixboot.sh");
|
|
ixbootslot = /incbin/("scripts/ixbootslot.sh");
|
|
ixprepblk = /incbin/("scripts/ixprepblk.sh");
|
|
ixprepdhcp = /incbin/("scripts/ixprepdhcp.sh");
|
|
};
|