mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-14 08:03:34 +00:00
These are still not connected, however their existence is starting to solidify the API. Signed-off-by: Sean Cross <sean@xobs.io>
37 lines
985 B
Text
37 lines
985 B
Text
# 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
|
|
|
|
# Add peripherals that are defined in C#. You must restart Renode
|
|
# if you modify these files.
|
|
i @peripherals/LiteX_Timer_32.cs
|
|
i @peripherals/memlcd.cs
|
|
i @peripherals/keyboard.cs
|
|
|
|
# Load the Betrusted Renode Platform file
|
|
machine LoadPlatformDescription @betrusted.repl
|
|
|
|
machine StartGdbServer 3333 true
|
|
showAnalyzer uartkernel
|
|
showAnalyzer uart
|
|
showAnalyzer uartlog
|
|
#showAnalyzer memlcd
|
|
|
|
# The macro `reset` gets called implicitly when running `machine Reset`
|
|
macro reset
|
|
"""
|
|
# sysbus LoadELF @../target/riscv32imac-unknown-none-elf/release/loader
|
|
sysbus LoadELF @../target/riscv32imac-unknown-none-elf/debug/loader
|
|
sysbus LoadBinary @../target/args.bin 0x40800000
|
|
# Set $a0 to point at the args binary
|
|
cpu SetRegisterUnsafe 10 0x40800000
|
|
# cpu PC 0x20500000
|
|
"""
|
|
|
|
runMacro $reset
|
|
start
|