Skip to content

Conversation

@xyyy1420
Copy link
Contributor

@xyyy1420 xyyy1420 commented Apr 1, 2025

No description provided.

@xyyy1420 xyyy1420 requested a review from shinezyy April 1, 2025 09:19

- 在这种方式中 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` 设置的值。
Copy link
Contributor

Choose a reason for hiding this comment

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

“指定一段预留空间” 的具体操作应该给一个链接?不知道这里的上下文是否有提供?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

在下文有提供

Copy link
Contributor Author

Choose a reason for hiding this comment

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

紧接着这段描述有一个设备树代码块

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.

3 participants