Open
Conversation
Signed-off-by: jiaxiaoyu <xyyy1420@gmail.com>
shinezyy
reviewed
Apr 2, 2025
|
|
||
| - 在这种方式中 NEMU 在生成 Checkpoint 时,通常需要添加一段恢复程序 `gcpt.bin` ,在 `(0x80100000, 100000)`。因此在生成 workload 时,需要避开这一段空间,将起始地址设置在 `0x80100000` 。 | ||
| - 如果你使用的是 OpenSBI,那么不必考虑设置 OpenSBI 的起始地址,仅需考虑 OpenSBI 的负载(例如 Linux Kernel 就是一种 OpenSBI 的负载)的起始地址,你需要在 OpenSBI 构建时设置 `FW_PAYLOAD_OFFSET=0x100000` 或任意加上 0x80100000 后能够按照 2M 对齐的地址(例如 0x80100000 + 0x10000 或 0x80100000 + 0x300000)。 | ||
| - 此外,为了避免 Linux Kernel 意外的使用了我们给 `gcpt.bin` 预留的空间,我们需要给 OpenSBI 使用的设备树中使用的 `memory` 指定一段预留空间,这段空间的大小取决于你给 `gcpt.bin` 预留的空间的大小,也就是上述 `FW_PAYLOAD_OFFSET` 设置的值。 |
Contributor
There was a problem hiding this comment.
“指定一段预留空间” 的具体操作应该给一个链接?不知道这里的上下文是否有提供?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.