mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
README: fix quickstart
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
5708bcb89a
commit
fdb17116f6
1 changed files with 27 additions and 0 deletions
27
README.md
27
README.md
|
|
@ -11,3 +11,30 @@ from source. It consists of the following projects:
|
|||
* **docs**: documentation on various aspects of Xous
|
||||
* **emulation**: Renode scripts used to emulate Xous
|
||||
* **xous-rs**: userspace library
|
||||
|
||||
## Generating an image
|
||||
|
||||
You can build all Xous packages by running:
|
||||
|
||||
```sh
|
||||
$ rustup target add riscv32imac-unknown-none-elf
|
||||
$ cargo build --target riscv32imac-unknown-none-elf
|
||||
$ cd kernel
|
||||
$ cargo build -p kernel --target riscv32imac-unknown-none-elf
|
||||
$ cd ..
|
||||
```
|
||||
|
||||
This will compile all runtime packages for `riscv32imac-unknown-none-elf`.
|
||||
|
||||
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
|
||||
--kernel target/riscv32imac-unknown-none-elf/debug/kernel \
|
||||
--init target/riscv32imac-unknown-none-elf/debug/shell \
|
||||
target/args.bin
|
||||
|
||||
$
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue