1:name: BeagleV-Fire
2:description: This is a sample script running HSS, U-Boot and Linux on BeagleV-Fire with PolarFire SoC
3
4$bootloader?=@https://dl.antmicro.com/projects/renode/hss-envm-wrapper.elf-s_3090016-1703473abada7b58db4af77d726b569962e28e3e
5$image?=@https://dl.antmicro.com/projects/renode/sdcard.img-s_126566400-406ae9e256ba0a8935156b6033e6b316b075f1ab
6$uboot?=@https://dl.antmicro.com/projects/renode/u-boot-s_7278264-f40c30543d63d91ecd65c731c217f4218b0a3ced
7
8using sysbus
9mach create
10
11machine LoadPlatformDescription @platforms/boards/beaglev-fire.repl
12machine SdCardFromFile $image mmc 0x100000000
13emulation SetGlobalSerialExecution True
14emulation SetGlobalQuantum "0.0008"
15
16showAnalyzer mmuart0
17
18gpio0.UserButton Pressed
19
20
21set hook
22"""
23# The e51 CPU continuously monitors the system, halting it significantly improves the speed of the simulation
24e51 = machine['sysbus.e51']
25e51.IsHalted = True
26print("halted management CPU")
27"""
28sysbus LoadSymbolsFrom $uboot
29u54_4 AddHook `sysbus GetSymbolAddress "_start"` $hook
30
31macro reset
32"""
33    sysbus LoadELF $bootloader
34"""
35runMacro $reset
36