README: update info on running renode

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-03-12 13:33:37 +08:00
parent 17dd2dcd6f
commit 829570713f
3 changed files with 11 additions and 2 deletions

View file

@ -6,7 +6,7 @@ members = [
"xous-rs", "xous-rs",
"examples/shell", "examples/shell",
] ]
default-members = ["kernel", "loader", "xous-rs", "examples/shell"] default-members = ["xous-rs", "examples/shell"]
[profile.release] [profile.release]
codegen-units = 1 # 1 better optimizations codegen-units = 1 # 1 better optimizations

View file

@ -22,16 +22,21 @@ $ cargo build --target riscv32imac-unknown-none-elf
$ cd kernel $ cd kernel
$ cargo build -p kernel --target riscv32imac-unknown-none-elf $ cargo build -p kernel --target riscv32imac-unknown-none-elf
$ cd .. $ cd ..
$ cd loader
$ cargo build -p loader --target riscv32imac-unknown-none-elf
$ cd ..
``` ```
This will compile all runtime packages for `riscv32imac-unknown-none-elf`. This will compile all runtime packages for `riscv32imac-unknown-none-elf`.
Note that the kernel and loader must currently be built separately, due
to the fact that they have custom linker scripts.
These need to be packaged into a loadable binary. You can generate such These need to be packaged into a loadable binary. You can generate such
a binary by running the following: a binary by running the following:
```sh ```sh
$ cargo run -p tools --bin create-image -- \ $ cargo run -p tools --bin create-image -- \
--csv emulation/csr.csv --csv emulation/csr.csv \
--kernel target/riscv32imac-unknown-none-elf/debug/kernel \ --kernel target/riscv32imac-unknown-none-elf/debug/kernel \
--init target/riscv32imac-unknown-none-elf/debug/shell \ --init target/riscv32imac-unknown-none-elf/debug/shell \
target/args.bin target/args.bin

View file

@ -1,5 +1,9 @@
# Boot Renode Script (boot.resc) # Boot Renode Script (boot.resc)
# Add this script's path to the global path, so
# we can include files relative to ourselves.
path add $ORIGIN
using sysbus using sysbus
mach create mach create