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

failed to run rusty-hermit on QEMU qemu-system-aarch64 #425

Closed
hky1999 opened this issue May 23, 2023 · 1 comment
Closed

failed to run rusty-hermit on QEMU qemu-system-aarch64 #425

hky1999 opened this issue May 23, 2023 · 1 comment

Comments

@hky1999
Copy link

hky1999 commented May 23, 2023

Hello, I tried to run Rusty-hermit of aarch64.

As procedure on github ci, I built rusty-demo with cmd :
cargo build -Zbuild-std=std,panic_abort --target aarch64-unknown-hermit --package rusty_demo

I built rusty-loader with cmd:
cargo xtask build --target aarch64
Then "rusty-loader" is copy to rusty-hermit dir as file named "rusty-loader-aarch64"

I try to boot rusty-demo on qemu with cmd

qemu-system-aarch64 -semihosting \
            -kernel rusty-loader-aarch64 -machine virt,gic-version=max \
            -m 512M -cpu max -smp 1 -display none -serial stdio -kernel rusty-loader-aarch64 \
            -device guest-loader,addr=0x48000000,initrd=target/aarch64-unknown-hermit/debug/rusty_demo

But the QEMU says that:
qemu-system-aarch64: -device guest-loader,addr=0x48000000,initrd=target/aarch64-unknown-hermit/debug/rusty_demo: 'guest-loader' is not a valid device model name

How can I fix that, which QEMU version do you guys use?
Looking forward for your reply, thanks a lot!

@hky1999
Copy link
Author

hky1999 commented May 23, 2023

BTW, my QEMU version is 5.0.0

➜  rusty-hermit git:(master) ✗ qemu-system-aarch64 -version             
QEMU emulator version 5.0.0 (v5.0.0-1-gd1f9ed8ea7-dirty)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers

Do I need a newer QEMU?

@hky1999 hky1999 closed this as completed Jun 7, 2023
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