Compare commits
No commits in common. "af5a366b59703b673ef4922470a4b86584a165d0" and "ba6f93e25ee850e11155591be6d4e78fd8815315" have entirely different histories.
af5a366b59
...
ba6f93e25e
1 changed files with 4 additions and 5 deletions
|
|
@ -60,17 +60,16 @@ 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 the qemu start script
|
after you do this, the filesystem should be ready for the kernel and you should be able to run a variant of the
|
||||||
like so: (note that it may also require root)
|
following to run the kernel
|
||||||
```shell
|
```shell
|
||||||
./qemurun.sh /dev/loop0 # or whatever the loopback device you created is called, see losetup -a
|
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
|
||||||
```
|
```
|
||||||
(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 the following:
|
in the shell you can currently do two things:
|
||||||
- `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