Merge pull request 'bring readme updates to develop' (#4) from mommy into develop
Reviewed-on: #4
This commit is contained in:
commit
af5a366b59
1 changed files with 5 additions and 4 deletions
|
|
@ -60,16 +60,17 @@ and then run the `./copy_to_fs.sh` script to copy the built files to the filesys
|
||||||
```
|
```
|
||||||
note that the script will likely need to be run as root because of linux's requirements for fat32 filesystems; and more
|
note that the script will likely need to be run as root because of linux's requirements for fat32 filesystems; and more
|
||||||
importantly that the script expects the binary files to be in the directories above in the build section.
|
importantly that the script expects the binary files to be in the directories above in the build section.
|
||||||
after you do this, the filesystem should be ready for the kernel and you should be able to run a variant of the
|
after you do this, the filesystem should be ready for the kernel and you should be able to run the qemu start script
|
||||||
following to run the kernel
|
like so: (note that it may also require root)
|
||||||
```shell
|
```shell
|
||||||
qemu-system-riscv32 -machine virt -bios none -drive if=none,format=raw,file=/dev/loop0,id=disk1 -device virtio-blk-device,drive=disk1 -serial mon:stdio -m 5M -kernel target/riscv32imac-unknown-none-elf/release/lbos
|
./qemurun.sh /dev/loop0 # or whatever the loopback device you created is called, see losetup -a
|
||||||
```
|
```
|
||||||
(note that this will take over your terminal and steal CTRL+C, so you'll need to kill it by closing the terminal or
|
(note that this will take over your terminal and steal CTRL+C, so you'll need to kill it by closing the terminal or
|
||||||
manually killing the process)
|
manually killing the process)
|
||||||
|
|
||||||
in the shell you can currently do two things:
|
in the shell you can currently do the following:
|
||||||
- `ls` will list files in the root directory
|
- `ls` will list files in the root directory
|
||||||
|
- `cd <dir>` will change the current directory to `<dir>`
|
||||||
- `<file>` will run the program `<file>` in the root directory, always capitalize your file name!
|
- `<file>` will run the program `<file>` in the root directory, always capitalize your file name!
|
||||||
|
|
||||||
## developing programs
|
## developing programs
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue