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

qemu环境下运行问题 #208

Closed
Gilfoyle-code opened this issue Dec 4, 2024 · 4 comments
Closed

qemu环境下运行问题 #208

Gilfoyle-code opened this issue Dec 4, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Gilfoyle-code
Copy link

在运行make ARCH=riscv64 A=examples/helloworld run后,只能进入openSBI并打印其log。
Screenshot 2024-12-05 012227

@equation314
Copy link
Member

Please provide more information, like the QEMU version, Ubuntu version, and ArceOS commit ID.

@Gilfoyle-code
Copy link
Author

Ubuntu22.04
QEMU7.0.0
The latest version of ArceOS code

@equation314 equation314 added the bug Something isn't working label Dec 6, 2024
@equation314
Copy link
Member

It seems to not work on older versions of QEMU, you can build a newer version (>= 8.0.0) manually.

See https://www.qemu.org/download/ for build instructions.

@equation314
Copy link
Member

This is because #195 has deprecated legacy SBI console output. You can fix it by upgrading OpenSBI to at least v1.3 without rebuilding QEMU.

diff --git a/scripts/make/qemu.mk b/scripts/make/qemu.mk
index b7b8db6c..a296a967 100644
--- a/scripts/make/qemu.mk
+++ b/scripts/make/qemu.mk
@@ -29,7 +29,7 @@ qemu_args-x86_64 := \
 
 qemu_args-riscv64 := \
   -machine $(machine) \
-  -bios default \
+  -bios opensbi-1.3-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.elf \
   -kernel $(OUT_BIN)
 
 qemu_args-aarch64 := \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants