From 7042e1cf0ad532fb4641136ba0f1f685cc140e1c Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Wed, 29 Nov 2023 18:21:03 +0100 Subject: [PATCH] Update Tiny RISCV SoC for RFU --- Tiny-RISCV-SoC-for-RFU.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Tiny-RISCV-SoC-for-RFU.md b/Tiny-RISCV-SoC-for-RFU.md index af7aa13..bd9ec56 100644 --- a/Tiny-RISCV-SoC-for-RFU.md +++ b/Tiny-RISCV-SoC-for-RFU.md @@ -15,6 +15,27 @@ ZephyrOS seems to also include some RSA implementations, so that's useful. SERVs demo drivers and stuff are old. Really old. ZephyrOS 2.4.0 old, which also requires an old compiler (old binutils). sdk-ng v0.14.2 works well: https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.14.2 +## More QuickNotes on this + +To init get new fusesoc workspace using `fusesoc init`. Then set manifest to SERV. Then `fusesoc update`. Then you can build. Play with code in `fusesoc_libraries/serv/`. + +Build this from here: +``` +/home/markus/zeph_orig/zephyr/samples/hello_world +[markus@737d440cb9bd hello_world]$ west build -b service +``` +convert to "hex": + +``` +python3 $SERV/sw/makehex.py /home/markus/zeph_orig/zephyr/samples/hello_world/build/zephyr/zephyr.bin 16384 > test.hex +``` + +and run using (in the fusesoc root): + +``` +fusesoc run --target=verilator_tb servant --uart_baudrate=57600 --firmware=test.hex +``` + ## Links * https://github.com/olofk/serv