Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Use XSCT to load FSBL, PMUFW, ATF and U-boot on MPSoC via JTAG
# How to use load.tcl
# source of Vivado, SDK or PetaLinux in Bash
# xsct
# XSCT% source load.tcl
# XSCT% disconnect # when rerun needed or complete
# connect -host <IP> if using SmartLync or remote debug
after 2000
# show PMU MicroBlaze on JTAG chain
targets -set -nocase -filter {name =~ "*PSU*"}
mwr 0xFFCA0038 0x1FF
# Download PMUFW to PMU
target -set -filter {name =~ "MicroBlaze PMU"}
dow pmufw.elf
after 2000
# Run FSBL
target -set -filter {name =~ "Cortex-A53 #0"}
rst -processor
dow zynqmp_fsbl.elf
after 2000
after 2000
exec sleep 2
# Run U-boot
targets -set -nocase -filter {name =~ "*A53*#0"}
dow u-boot.elf
dow bl31.elf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment