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 mpfs toc #821

Merged
merged 2 commits into from
Nov 21, 2024
Merged

Update mpfs toc #821

merged 2 commits into from
Nov 21, 2024

Conversation

jlaitine
Copy link

This changes the MPFS TOC to have similar structure as IMX9;

  • START and END addresses are indexies to the file
  • There is a separate load address into where the part of the file is loaded
  • It is no longer necessary to load TOC into memory
  • Removed RDCT TOC entries; these don't quite work, but fixed a small issue enabling to load RDCT from a separate file later.

The current bootloader, which has been in use for some time, supports this change already. This allows cleaning up the bootloader later, by removing some MPFS specific ifdefs.

 TOC_FLAG2_USE_SBI           - boot via SBI
 TOC_FLAG2_RELATIVE_ADRESSES - TOC start and end are file offsets, copy-to address is separate

Signed-off-by: Jukka Laitinen <[email protected]>
@jlaitine jlaitine requested review from eenurkka and pussuw November 21, 2024 11:28
Copy link

@eenurkka eenurkka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@jlaitine
Copy link
Author

Oops, there was some fumble with nxp. Will fix that still

@jlaitine
Copy link
Author

Cleaned up and re-tested also nxp93 TOC

@jlaitine jlaitine merged commit 2001f2f into main Nov 21, 2024
26 checks passed
@jlaitine jlaitine deleted the update_mpfs_toc branch November 21, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants