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

Boot Loop with RISC-V #299

Closed
retrage opened this issue Dec 7, 2023 · 0 comments · Fixed by #300
Closed

Boot Loop with RISC-V #299

retrage opened this issue Dec 7, 2023 · 0 comments · Fixed by #300

Comments

@retrage
Copy link
Contributor

retrage commented Dec 7, 2023

The latest RHF/RISC-V goes boot loop like:

Starting on RV64 0x0 0xbfe00000
Starting on RV64 0xbfe00000 0x0
PANIC: panicked at src/fdt.rs:31:27:
Failed to create device tree object: BadPtr

I found that the issue first appears after commit af0d3c7, which updates Rust toolchain to nightly-2023-08-11 from nightly-2023-05-26. I also found that the issue appears from nightly-2023-06-07 by bisecting the Rust nightly toolchain.

retrage added a commit to retrage/rust-hypervisor-firmware that referenced this issue Dec 9, 2023
As reported in issue cloud-hypervisor#299, the latest RHF goes boot loop since
`nightly-2023-06-07` Rust toolchain. This is because the recent Rust
generates code that includes F and V extensions, which we need to enable
these features on startup. This commit disables generation of these
extensions as a workaround.

Signed-off-by: Akira Moroo <[email protected]>
retrage added a commit to retrage/rust-hypervisor-firmware that referenced this issue Dec 12, 2023
As reported in issue cloud-hypervisor#299, the latest RHF goes boot loop since
`nightly-2023-06-07` Rust toolchain. This is because the recent Rust
generates code that includes F and V extensions, which we need to enable
these features on startup. This commit disables generation of these
extensions as a workaround.

Signed-off-by: Akira Moroo <[email protected]>
retrage added a commit to retrage/rust-hypervisor-firmware that referenced this issue Dec 13, 2023
As reported in issue cloud-hypervisor#299, the latest RHF goes boot loop since
`nightly-2023-06-07` Rust toolchain. This is because the recent Rust
generates code that includes F and V extensions, which we need to enable
these features on startup. This commit disables generation of these
extensions as a workaround.

Signed-off-by: Akira Moroo <[email protected]>
retrage added a commit that referenced this issue Dec 13, 2023
As reported in issue #299, the latest RHF goes boot loop since
`nightly-2023-06-07` Rust toolchain. This is because the recent Rust
generates code that includes F and V extensions, which we need to enable
these features on startup. This commit disables generation of these
extensions as a workaround.

Signed-off-by: Akira Moroo <[email protected]>
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 a pull request may close this issue.

1 participant