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

Running template in RISC-V #65

Closed
marcomaas1990 opened this issue May 19, 2024 · 1 comment
Closed

Running template in RISC-V #65

marcomaas1990 opened this issue May 19, 2024 · 1 comment

Comments

@marcomaas1990
Copy link

marcomaas1990 commented May 19, 2024

Hi,
I'm trying to use the template inside a emulated RISC-V Qemu Ubuntu 22.04.4
I was able to compile the project via cargo build --target riscv64gc-unknown-hermit inside the vm, but now I want to run the image.
Should I use qemu inside the vm, that's gonna be a terrible experience, or can I use the image on my host system via a qemu command directly?
On my x86_64 host I used qemu-system-x86_64 -cpu qemu64,apic,fsgsbase,fxsr,rdrand,rdtscp,xsave,xsaveopt -smp 1 -m 128M -device isa-debug-exit,iobase=0xf4,iosize=0x04 -display none -serial stdio -kernel release/hermit-loader-x86_64 -initrd x86_64-unknown-hermit/debug/hermit-rs-template to succesfully run the HelloWorld example
Thanks

@mkroening
Copy link
Member

Thanks for raising this issue!

Should I use qemu inside the vm, that's gonna be a terrible experience, or can I use the image on my host system via a qemu command directly?

You can use qemu-system-riscv64 on any host.

I have added some instructions to the loader's README in hermit-os/loader#345. Is this sufficient for a newcomer such as you, or should we be more explicit about other architectures in this project's README too?

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

2 participants