Skip to content

Instantly share code, notes, and snippets.

Embed
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 settings.sh of Vivado, SDK or PetaLinux in Bash
# xsct
# XSCT% source load.tcl
# XSCT% disconnect # when rerun needed or complete
connect
# 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
con
# Run FSBL
target -set -filter {name =~ "Cortex-A53 #0"}
rst -processor
dow zynqmp_fsbl.elf
after 2000
con
after 2000
exec sleep 2
stop
# Run U-boot
targets -set -nocase -filter {name =~ "*A53*#0"}
dow u-boot.elf
dow bl31.elf
con
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.