From 56c1230b2ee0bc9b2f084c01d7697e33880a7ae5 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 3 Feb 2026 03:23:07 +0800 Subject: [PATCH] add error printing on boot0 signature failure this will at least give us a hint as to why a boot1 failed to boot. It does hand an attacker some information, but we also need information to debug e.g. RMA and field failures. --- bao1x-boot/boot0/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bao1x-boot/boot0/src/main.rs b/bao1x-boot/boot0/src/main.rs index d446621ef..0f91baaba 100644 --- a/bao1x-boot/boot0/src/main.rs +++ b/bao1x-boot/boot0/src/main.rs @@ -312,7 +312,11 @@ pub unsafe extern "C" fn rust_entry() -> ! { bollard!(die, 4); jump_to((target ^ u32::from_le_bytes(tag)) as usize); } - _ => {} + Err(e) => { + crate::println!("Sigcheck err: {:?}", e); + csprng.random_delay(); + bollard!(die, 4); + } } }