mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +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",
|
"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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue