-
Notifications
You must be signed in to change notification settings - Fork 10
Running linux kernel #2
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
Comments
Could you try without specifying the firmware field? Currently R2VM has limited support custom memory layout, so the firmware "feature" isn't really working unless you tweak the linker script to place it to a certain location. |
Oh, and previously firmware can only be ELF but not binary.. This is now fixed in 83c240f, so you can give your firmware another try if that is position-independent (but I'll recommend just boot Linux in supervisor mode without extra firmware). |
Appreciate the prompt response and the fix! I gave it a shot with the firmware again but still get the error I also tried booting Linux without the extra firmware (removed the firmware line from my I also just wanted to confirm that the |
You can do Currently the lockstep mode is just in order model plus a simple memory model. You can tweak |
I am attempting to run a linux kernel on r2vm. The linux kernel, block device, and firmware images (https://cs.binghamton.edu/~marss-riscv/marss-riscv-images.tar.gz) are the 64-bit versions from the MARSS-RISCV simulator (https://github.com/bucaps/marss-riscv). I run the following command
~/r2vm/target/release/r2vm config.toml
and myconfig.toml
is as follows:When running this, I get the error which seems to indicate an operation has not been implemented:
thread 'main' panicked at 'not implemented: 7fff0006523e Cmp(dword [rdx], +0x1)', src/emu/signal.rs:193:14
The backtrace seems to indicate the problem is with loading the kernel:
This simulator's speed is remarkable so any advice you can provide on what the error may be (the images seemed to work on the MARSS-RISCV simulator) or if the images are formatted incorrectly would be very helpful. Thanks!
The text was updated successfully, but these errors were encountered: