Skip to content

Commit

Permalink
added a readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gameboo authored Mar 7, 2022
1 parent c950a88 commit 1dffcc5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions readme.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
= Device tree for the cheri-bgas soft-core riscv system

The cheri-bgas system uses a riscv soft-core. The devices accessible to this soft-core can be exposed to software using this device tree.
To build the device tree, you will need `dtc` installed. You will also need a riscv linker to wrap the device tree in an elf container.

After cloning this repository, you can run `make devicetree.dtb` to build a device tree binary from the device tree source.
You can also run `make devicetree.wrapped.elf` (or simply `make`) to wrap the device tree in an elf container.

*Note:*

__Wrapping the device tree in an elf container is usefull to simplify loading it in the riscv soft-core system's memory using gdb from the ARM HPS system.
The provided `script.ld` will have the device tree loaded at address `0x80000000`.__

__See https://github.com/CTSRD-CHERI/DE10Pro-cheri-bgas for more details.__

0 comments on commit 1dffcc5

Please sign in to comment.