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

Limit amount of code copierd by vpr launcher #2660

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nordic-krch
Copy link
Contributor

I've prepared a hacky solution that adds address of the end of relocation region to the beginning of the vpr binary. Vpr launcher decodes this address and copies only that part to RAM. This approach speeds up boot time and does not overwrite noinit section but it's hacky.

I'm not expecting that it will be merged. Its purpose is rather to trigger the discussion.

…nel ram region

There are cases when code is relocated and we want to copy code
and part of data (e.g. data section) but avoid copying noinit
section. To achieve that noinit section is placed at the end
of kernel_ram region.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
…code

In order to allow extract relocation code size from the binary
add dummy instruction at the beginning which will write address of
the end of the relocation part to the register. It is decoded by the
host core which copies riscv code.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Instead of copying whole partition dedicated for VPR decode end address
from the beginning of the binary code. Only code and certain portion of
data is copied (excluding noinit section). It reduces the boot time and
fixes issue where noinit section is overwritten after reset.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant