Commit e5c1876a authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

adding scripts to generate simple helloworld app

parent 7c61268c
To generate FSBL, PMUFW and helloworld application follow these steps:
1. Copy your *.xsa file exported from Vivado to hardware/
2. Execute: xsct gen_platform.tcl
the_ROM_image:
{
[bootloader, destination_cpu = a53-0] xsct_ws/diot_fsbl/Release/diot_fsbl.elf
[destination_cpu = pmu] xsct_ws/diot_pmufw/Release/diot_pmufw.elf
[destination_device = pl] xsct_ws/diot_wr_platform/hw/diot_wr_mpsoc.bit
[destination_cpu = a53-0] xsct_ws/hello_world/Release/hello_world.elf
}
setws xsct_ws
platform create -name diot_wr_platform -hw hardware/diot_wr_mpsoc.xsa -no-boot-bsp
# create domain for FSBL
domain create -name "fsbl_domain" -os standalone -proc psu_cortexa53_0
bsp setlib xilffs
bsp setlib xilsecure
bsp setlib xilpm
bsp config zynqmp_fsbl_bsp true
# create domain for PMU firmware
domain create -name "pmufw_domain" -os standalone -proc psu_pmu_0
bsp setlib xilfpga
bsp setlib xilsecure
bsp setlib xilskey
# create standalone sw domain
domain create -name "standalone_domain" -os standalone -proc psu_cortexa53_0
# generate platform
platform generate
# Generate FSBL APP
app create -name diot_fsbl -template {Zynq MP FSBL} -platform diot_wr_platform -domain fsbl_domain -sysproj diot_wr_system
# Generate PMU FW APP
app create -name diot_pmufw -template {ZynqMP PMU Firmware} -platform diot_wr_platform -domain pmufw_domain -sysproj diot_wr_system
# Generate Hello World APP
app create -name hello_world -template {Hello World} -platform diot_wr_platform -domain standalone_domain -sysproj diot_wr_system
# Configure applications
app config -name diot_fsbl build-config release
app config -name diot_pmufw build-config release
app config -name hello_world build-config release
exec cp my_src/helloworld.c xsct_ws/hello_world/src/
exec cp my_src/Si5341-RevD-diot_sb-Registers.h xsct_ws/hello_world/src/
# Building all apps
app build -name diot_fsbl
app build -name diot_pmufw
app build -name hello_world
# Generate BOOT.BIN
exec bootgen -image bootgen.bif -arch zynqmp -w -o BOOT.bin
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment