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

RISC-V qemu support #6

Closed
daxmc99 opened this issue Feb 6, 2020 · 5 comments · Fixed by #7
Closed

RISC-V qemu support #6

daxmc99 opened this issue Feb 6, 2020 · 5 comments · Fixed by #7

Comments

@daxmc99
Copy link
Contributor

daxmc99 commented Feb 6, 2020

It appears as though RISC-V is supported by QEMU.

https://wiki.qemu.org/Documentation/Platforms/RISCV

Would it be possible to add support in this docker image?

@DieterReuter
Copy link
Contributor

Why not just give it a try and file a PR, can you do it?

@daxmc99
Copy link
Contributor Author

daxmc99 commented Feb 6, 2020

More than happy to add it. I'm very new to QEMU though.
Would you mind explaining what these magical strings do?
https://github.com/hypriot/qemu-register/blob/master/register.sh#L33

@StefanScherer
Copy link
Member

Maybe this docker/binfmt@86203db helps a bit.

@daxmc99
Copy link
Contributor Author

daxmc99 commented Feb 6, 2020

docker run --rm hypriot/qemu-register sh -c 'ls -al /qemu*'
-rwxr-xr-x    1 root     staff      6292296 Feb  6 21:17 /qemu-aarch64
-rwxr-xr-x    1 root     staff      5702696 Feb  6 21:17 /qemu-arm
-rwxr-xr-x    1 root     staff      5984808 Feb  6 21:17 /qemu-ppc64le
-rwxr-xr-x    1 root     staff      5115848 Feb  6 21:17 /qemu-riscv64

I am able to get this far but when I go run

docker run --rm --privileged hypriot/qemu-register
sh: write error: No such file or directory

I am running this on mac though. Not sure how that might affect this

EDIT: Whoops, fat finger in the qemu magic string.

@daxmc99
Copy link
Contributor Author

daxmc99 commented Feb 6, 2020

PR is up here
#7

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.

3 participants