mirror of
https://github.com/jhbruhn/moonboot.git
synced 2025-03-14 17:45:50 +00:00
Finish rename
This commit is contained in:
parent
ea8b062ad5
commit
970aad565c
3 changed files with 5 additions and 6 deletions
1
TODO.md
1
TODO.md
|
@ -1,7 +1,6 @@
|
|||
* Add optional copy which is protected against power failure without spearate flash bank
|
||||
* Implement power-interrupt safe exchange operation with a temporary flash page sdtorage
|
||||
* More hooks?
|
||||
* Properly rename to moonboot from moonshine/moonboots
|
||||
* Use MPU to protect memory regions from invalid access https://github.com/helium/cortex-mpu
|
||||
* => use pow2::Pow2 for linker scripts?
|
||||
* Implement signature check in Bootloader
|
||||
|
|
|
@ -23,12 +23,12 @@ fn generate_linker_script(
|
|||
MEMORY {{
|
||||
FLASH : ORIGIN = 0x{flash_origin:08x}, LENGTH = {flash_length}
|
||||
RAM : ORIGIN = 0x{ram_origin:08x}, LENGTH = {ram_length}
|
||||
MOONSHINE_STATE: ORIGIN = 0x{state_origin:08x}, LENGTH = {state_section_length}
|
||||
MOONBOOT_STATE: ORIGIN = 0x{state_origin:08x}, LENGTH = {state_section_length}
|
||||
}}
|
||||
|
||||
_moonshine_state_crc_start = ORIGIN(MOONSHINE_STATE);
|
||||
_moonshine_state_len_start = ORIGIN(MOONSHINE_STATE) + {crc_length};
|
||||
_moonshine_state_data_start = ORIGIN(MOONSHINE_STATE) + {crc_length} + {data_len_length};
|
||||
_moonboot_state_crc_start = ORIGIN(MOONBOOT_STATE);
|
||||
_moonboot_state_len_start = ORIGIN(MOONBOOT_STATE) + {crc_length};
|
||||
_moonboot_state_data_start = ORIGIN(MOONBOOT_STATE) + {crc_length} + {data_len_length};
|
||||
PROVIDE(_moonboots_pre_jump = __moonboots_default_pre_jump);
|
||||
",
|
||||
flash_origin = flash_origin,
|
||||
|
|
|
@ -67,7 +67,7 @@ impl<
|
|||
/// Execute the update and boot logic of the bootloader
|
||||
pub fn boot(&mut self) -> Result<void::Void, ()> {
|
||||
// TODO: consider error handling
|
||||
log::info!("Booting with moonshine!");
|
||||
log::info!("Booting with moonboot!");
|
||||
|
||||
self.processor.setup(&self.config);
|
||||
|
||||
|
|
Loading…
Reference in a new issue