Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RoT memory map to reserve RAM for updates #1043

Closed
labbott opened this issue Dec 23, 2022 · 1 comment · Fixed by #1675
Closed

Update RoT memory map to reserve RAM for updates #1043

labbott opened this issue Dec 23, 2022 · 1 comment · Fixed by #1675
Labels
lpc55 Has specific implications for LPC55 processors
Milestone

Comments

@labbott
Copy link
Collaborator

labbott commented Dec 23, 2022

Due to system constraints there is no alternate image for the stage0 bootloader. This makes updating it a riskier proposition than Hubris since a broken stage0 may be equivalent to a bricked board. To reduce risk, we can reserve a region of RAM for staging an update before committing to flash.

Section 2.1.8 of the LPC55 manual gives a table of RAM layouts. The final product will use the 320 KB layout. We have a size limit of 64K for stage0. We've been testing with the 256KB layout which lacks RAM3 and we aren't running into any limitations so reserving RAM3 looks plausible.

@labbott labbott added the lpc55 Has specific implications for LPC55 processors label Dec 23, 2022
@cbiffle
Copy link
Collaborator

cbiffle commented Apr 27, 2023

Currently what we're planning on doing here is allocating enough of a buffer in the update-server task to store all of stage0 before beginning an update. Since stage0 is now ~4 kiB with signature that has become much easier.

I'm not sure the work is done so I'm leaving this open and marking MVP.

@cbiffle cbiffle added this to the MVP milestone Apr 27, 2023
@lzrd lzrd closed this as completed in 0c001d4 Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lpc55 Has specific implications for LPC55 processors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants