mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix permissible function code on altboot
this allows recovery from revoked keys and trying to load a dev-boot signed image from alt-boot loader
This commit is contained in:
parent
6bb94a148e
commit
97df81de44
1 changed files with 6 additions and 2 deletions
|
|
@ -72,12 +72,16 @@ pub const BOOT0_TO_BOOT1: SecurityConfiguration = SecurityConfiguration {
|
|||
};
|
||||
|
||||
/// This is different from a jump directly to loader/baremetal because the
|
||||
/// function codes *must* be for Boot1.
|
||||
/// function codes *must* be for Boot1 or Baremetal. Loader is not a valid option.
|
||||
pub const BOOT0_TO_ALTBOOT1: SecurityConfiguration = SecurityConfiguration {
|
||||
image_ptr: crate::LOADER_START as *const u32,
|
||||
pubkey_ptr: crate::BOOT0_START as *const u32,
|
||||
revocation_owc: crate::BOOT0_REVOCATION_OFFSET,
|
||||
function_codes: &[FunctionCode::Boot1 as u32, FunctionCode::UpdatedBoot1 as u32],
|
||||
function_codes: &[
|
||||
FunctionCode::Boot1 as u32,
|
||||
FunctionCode::UpdatedBoot1 as u32,
|
||||
FunctionCode::Baremetal as u32,
|
||||
],
|
||||
};
|
||||
|
||||
pub const BOOT1_TO_LOADER_OR_BAREMETAL: SecurityConfiguration = SecurityConfiguration {
|
||||
|
|
|
|||
Loading…
Reference in a new issue