Skip to content

Commit

Permalink
Updated QEMU run command
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-x90 authored Aug 4, 2020
1 parent 0ca0f06 commit 58755f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ If you just want to run the operating system on actual hardware, you will need t
However, there is the option of using [QEMU](https://www.qemu.org/), which is the platform we do the majority of developing/testing on. Just install QEMU on your system (if your on Windows you will need to add it to your PATH), and run the following command:

```bash
qemu-system-x86_64 -drive format=raw,file=path/to/bootimage-os.bin -soundhw pcspk
qemu-system-x86_64 -drive format=raw,file=PATH/TO/bootimage-os.bin -drive if=ide,format=raw,index=1,file=os.tar -soundhw pcspk
```

If you would like to build this or add on to this project, you first will need [Rust](https://www.rust-lang.org/tools/install). There is also a .bat and .sh file located in the 'os' directory which you can run to install all the necessary rust components. As long as you are in the 'os' directory you can run the following commands:

To build:
```
cargo build
cargo build --release
```
This will build the rust project and create a bootimage-os.bin file located in `os/target/x86_64-os/debug/`

To run:
```
cargo run
cargo run --release
```
This will build the rust project and automatically run the QEMU command to run the operating system. For this to work you do need QEMU installed and added to your PATH.

Expand Down

0 comments on commit 58755f6

Please sign in to comment.