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

td shim tools support large payload #695

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gaojiaqi7
Copy link
Member

Use FfsFileHeader2 and CommonSectionHeader2 for payload FV.

If payload binary is larger than the Payload region size, then it
will be treated as a large payload and it will be packaged in the
start of the image and loaded into physical memory as indicated by
metadata.

@gaojiaqi7 gaojiaqi7 force-pushed the 0510/td_shim_tools_support_large_payload branch 2 times, most recently from 7d44e98 to 5db8fa8 Compare May 10, 2024 09:22
@gaojiaqi7 gaojiaqi7 changed the title 0510/td shim tools support large payload td shim tools support large payload May 13, 2024
@gaojiaqi7 gaojiaqi7 force-pushed the 0510/td_shim_tools_support_large_payload branch 2 times, most recently from 34e3aaa to 6654b98 Compare May 15, 2024 08:44
+----------------------------------------+ <- 0x40000
| MAILBOX | (0x1000) 4 KB
| MAILBOX | (0x1000) 4 kB
Copy link
Member

Choose a reason for hiding this comment

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

why change KB to kB?

Align the definition, implementation and derive of the `FfsFileHeader2`
and `CommonSectionHeader2` with `FfsFileHeader` and `CommonSectionHeader`.

Signed-off-by: Jiaqi Gao <[email protected]>
Add support for parsing ffs and sections that have size larger than
16MiB.

Signed-off-by: Jiaqi Gao <[email protected]>
Update the `td-layout` with `td-layout-config`.

Signed-off-by: Jiaqi Gao <[email protected]>
Use `FfsFileHeader2` and `CommonSectionHeader2` for payload FV.

If payload binary is larger than the `Payload` region size, then it
will be treated as a large payload and it will be packaged in the
start of the image and loaded into physical memory as indicated by
metadata.

Signed-off-by: Jiaqi Gao <[email protected]>
@gaojiaqi7 gaojiaqi7 force-pushed the 0510/td_shim_tools_support_large_payload branch 2 times, most recently from 36a587b to 6efea8c Compare May 21, 2024 01:15
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