mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
emulation: load bootloader from ROM
By loading the bootloader from ROM instead of from ELF, we ensure that .bss and friends aren't overwritten. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
2979f4453f
commit
0992b519b5
1 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
# Boot Renode Script (boot.resc)
|
# Boot Renode Script (boot.resc)
|
||||||
|
|
||||||
i @emulation/linux-server.resc
|
|
||||||
|
|
||||||
# Add this script's path to the global path, so
|
# Add this script's path to the global path, so
|
||||||
# we can include files relative to ourselves.
|
# we can include files relative to ourselves.
|
||||||
|
|
@ -46,6 +45,9 @@ i @peripherals/wfi.cs
|
||||||
EnsureTypeIsLoaded "Antmicro.Renode.Peripherals.CPU.VexRiscv"
|
EnsureTypeIsLoaded "Antmicro.Renode.Peripherals.CPU.VexRiscv"
|
||||||
i @peripherals/vexriscv-aes.cs
|
i @peripherals/vexriscv-aes.cs
|
||||||
|
|
||||||
|
EnsureTypeIsLoaded "Antmicro.Renode.Peripherals.Timers.TickTimer"
|
||||||
|
i @peripherals/susres.cs
|
||||||
|
|
||||||
# Create the COM SPI bus
|
# Create the COM SPI bus
|
||||||
emulation CreateComConnector "com"
|
emulation CreateComConnector "com"
|
||||||
|
|
||||||
|
|
@ -90,10 +92,11 @@ connector Connect sysbus.com com
|
||||||
macro reset
|
macro reset
|
||||||
"""
|
"""
|
||||||
#sysbus LoadBinary @flash-formatted.bin 0x20000000
|
#sysbus LoadBinary @flash-formatted.bin 0x20000000
|
||||||
sysbus LoadELF @../target/riscv32imac-unknown-xous-elf/release/loader
|
sysbus LoadBinary @../target/riscv32imac-unknown-xous-elf/release/loader.bin 0x20500000
|
||||||
sysbus LoadBinary @../target/riscv32imac-unknown-xous-elf/release/xous.img 0x20980000
|
sysbus LoadBinary @../target/riscv32imac-unknown-xous-elf/release/xous.img 0x20980000
|
||||||
# Set $a0 to point at the args binary
|
# Set $a0 to point at the args binary
|
||||||
cpu SetRegisterUnsafe 10 0x20980000
|
cpu SetRegisterUnsafe 10 0x20980000
|
||||||
|
cpu PC 0x20501000
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Connect the serial port to an Ethernet port
|
# Connect the serial port to an Ethernet port
|
||||||
|
|
@ -130,9 +133,6 @@ macro reset
|
||||||
"""
|
"""
|
||||||
runMacro $reset
|
runMacro $reset
|
||||||
|
|
||||||
connector Connect wifi.wf200 switch
|
|
||||||
|
|
||||||
|
|
||||||
mach clear
|
mach clear
|
||||||
|
|
||||||
start
|
start
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue