Attention is currently required from: Julius Werner, Zheng Bao.
Hello Zheng Bao,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/85645?usp=email
to review the following change.
Change subject: abrecovery: Add setting boot status and corrupt type ......................................................................
abrecovery: Add setting boot status and corrupt type
Change-Id: I55a379b9c9f85fabbd8a1f98fbef3f57d7d8118d Signed-off-by: Zheng Bao fishbaozi@gmail.com --- M src/lib/cbfs.c M src/lib/prog_loaders.c 2 files changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/85645/1
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index 84ba894..703d709 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -182,8 +182,10 @@ && vboot_logic_executed()) vboot_fail_and_reboot(vboot_get_context(), VB2_RECOVERY_FW_BODY, rv); - if (CONFIG(PSP_AB_RECOVERY)) + if (CONFIG(PSP_AB_RECOVERY)) { + set_corrupt_entry(0x62); toggle_bootpartition(); + } return true; } } diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c index 49056cc..f101ed7 100644 --- a/src/lib/prog_loaders.c +++ b/src/lib/prog_loaders.c @@ -14,6 +14,7 @@ #include <stage_cache.h> #include <symbols.h> #include <timestamp.h> +#include <soc/amd/common/block/psp/psp_def.h>
void run_romstage(void) { @@ -191,6 +192,7 @@
/* Reset to booting from this image as late as possible */ boot_successful(); + set_boot_status(1);
printk(BIOS_DEBUG, "Jumping to boot code at %p(%p)\n", prog_entry(payload), prog_entry_arg(payload));