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

fw_start and fw_rw_offset not aligned #345

Open
CodingVoid opened this issue Feb 26, 2024 · 0 comments
Open

fw_start and fw_rw_offset not aligned #345

CodingVoid opened this issue Feb 26, 2024 · 0 comments

Comments

@CodingVoid
Copy link

CodingVoid commented Feb 26, 2024

I pulled the recent master of OpenSBI and I now get the following error:
fw_start and fw_rw_offset not aligned

I checked and the error comes from here:

if ((scratch->fw_start & (scratch->fw_rw_offset - 1)) != 0) {

My values are as follows:
scratch->fw_start: 0x80020000
scratch->fw_rw_offset: 0x40000

The alignment is I guess checked in order to make a NAPOT PMP region out of it. But I think that is something that should be checked in build time rather then runtime.
So I guess my only option is to put OpenSBI at either address 0x80000000 or 0x80040000 (text segment). Or is there another solution?

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

No branches or pull requests

1 participant