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

Updated instructions for Linux and Windows operating systems #22

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions INSTALL-xv6.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,28 @@ CPUS := 1
Now, time to go do the projects!


## Linux
## Linux distributions

*[Prerequisite for Makefile script]*
- **Perl programming language** must be installed. https://learn.perl.org/installing/unix_linux.html

**QEMU package** installation for simulating x86 architecture hardware:
- *e.g. Debian package `qemu-system-i386`, which will install `qemu-system-x86_64` command too.*
```sh
sudo apt update -y && sudo apt upgrade -y
sudo apt install -y qemu-system-i386
```
- To test QEMU emulator installation:
*This will run the emulator with the default BIOS and no OS kernel to boot.*
```sh
prompt> qemu-system-x86_64 -nographic
```

**Compile & Run** xv6 code using Makefile: *It will detect the correct gcc cross-compilation toolchain (e.g. `elf32-i386`)*
```sh
make qemu-nox
```

TBD.
## Windows
Your option is more envolving and time consuming.
This would involve install WSL2 (which creates a hyper-v VM running Linux kernel that is integrated into Widnows OS), and then following the instruction for Linux installation.