mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
README: update info on running renode
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
17dd2dcd6f
commit
829570713f
3 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue