aspeed/ast2600: refuse to boot
Subsystems (3)
RFC PATCH 1/1 aspeed/ast2600: refuse to boot
This is a hack that purposefully causes the SPL to fail to boot. Enable with CONFIG_ASPEED_AST2600_SPL_REFUSE_TO_BOOT. Added a clone of configs/ast2600_openbmc_spl_emmc_defconfig with CONFIG_ASPEED_AST2600_SPL_REFUSE_TO_BOOT enabled.
The intent is to allow testing of a production signing process or keys with an image that refuses to do anything (and thus if it were to escape, cannot be used to do anything harmful).
Signed-off-by Brad Bishop <[email protected]>
--- arch/arm/mach-aspeed/ast2600/Kconfig | 7 + arch/arm/mach-aspeed/ast2600/spl.c | 4 + ..._openbmc_spl_emmc_refuse_to_boot_defconfig | 134 ++++++++++++++++++ 3 files changed, 145 insertions(+) create mode 100644 configs/ast2600_openbmc_spl_emmc_refuse_to_boot_defconfig
arch/arm/mach-aspeed/ast2600/Kconfig +7 -0
@@ -40,6 +40,13 @@ config TARGET_AST2600_INTEL endchoice +config ASPEED_AST2600_SPL_REFUSE_TO_BOOT + bool "Unconditionally hang in board_init_f" + default n + depends on SPL && ASPEED_AST2600 + help + Select this option to build an SPL that will never boot. + source "board/aspeed/evb_ast2600/Kconfig" source "board/aspeed/fpga_ast2600/Kconfig" source "board/aspeed/slt_ast2600/Kconfig"
arch/arm/mach-aspeed/ast2600/spl.c +4 -0
@@ -27,6 +27,10 @@ void board_init_f(ulong dummy)spl_early_init ();timer_init ();preloader_console_init (); +#ifdef CONFIG_ASPEED_AST2600_SPL_REFUSE_TO_BOOT +puts (SPL_TPL_PROMPT "development image, refusing to boot\n" ); +hang (); +#endif dram_init ();aspeed_mmc_init ();#endif
configs/ast2600_openbmc_spl_emmc_refuse_to_boot_defconfig new file +134 -0
134 lines not on this page · raw message
Signature · 1 line
2.34.0