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

How to boot xv6 OS on my own emulator #250

Open
HirunaVishwamith opened this issue Aug 9, 2024 · 1 comment
Open

How to boot xv6 OS on my own emulator #250

HirunaVishwamith opened this issue Aug 9, 2024 · 1 comment

Comments

@HirunaVishwamith
Copy link

I have built a RISC-V multicore emulator. Is it possible to run this OS on my own emulator rather than QEMU? At this stage, it can run a binary file designed for multicore programs by checking mhartid. I'm just wondering if I need to implement any other functionality to run this OS. Also, how do I run an image of this OS on my emulator?

@jrmenzel
Copy link

I believe you need a RV64imac core with zicsr, zifencei and sstc extensions, a Sv39 MMU, a 16550 compatible UART (most common one), a virtio disk and a PLIC interrupt controller.

The C extension can be avoided by changing the compile flags, a virtio disk can be avoided by adding a RAM disk.

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

3 participants
@jrmenzel @HirunaVishwamith and others