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",
"examples/shell",
]
default-members = ["kernel", "loader", "xous-rs", "examples/shell"]
default-members = ["xous-rs", "examples/shell"]
[profile.release]
codegen-units = 1 # 1 better optimizations

View file

@ -22,16 +22,21 @@ $ cargo build --target riscv32imac-unknown-none-elf
$ cd kernel
$ cargo build -p kernel --target riscv32imac-unknown-none-elf
$ cd ..
$ cd loader
$ cargo build -p loader --target riscv32imac-unknown-none-elf
$ cd ..
```
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
a binary by running the following:
```sh
$ cargo run -p tools --bin create-image -- \
--csv emulation/csr.csv
--csv emulation/csr.csv \
--kernel target/riscv32imac-unknown-none-elf/debug/kernel \
--init target/riscv32imac-unknown-none-elf/debug/shell \
target/args.bin

View file

@ -1,5 +1,9 @@
# 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
mach create