1:name: UP Squared (x86_64)
2:description: This script runs Zephyr hello_world sample on a UP Squared platform.
3
4$name?="UP Squared"
5using sysbus
6mach create $name
7
8$bin?=@https://dl.antmicro.com/projects/renode/up_squared--zephyr-hello_world.elf-s_5247080-e38ef496b86f337bd8592dccdc85cb059a961339
9machine LoadPlatformDescription @platforms/cpus/up_squared_x86_64.repl
10
11showAnalyzer sysbus.uart
12
13macro reset
14"""
15    sysbus GenerateACPITable 0xe0000
16
17    # set the D flag for Executable code segment
18    cpu0 SetDescriptor CS 0x0 0x0 0x0 0x400000
19
20    # enable protected mode
21    cpu0 CR0 0x60000011
22
23    cpu1 IsHalted true
24
25    sysbus LoadELF $bin
26"""
27runMacro $reset
28