Skip to content

Instantly share code, notes, and snippets.

@imrickysu
Created February 13, 2018 06:35
Show Gist options
  • Save imrickysu/b911be34cf7fffc1b9259610095973fd to your computer and use it in GitHub Desktop.
Save imrickysu/b911be34cf7fffc1b9259610095973fd to your computer and use it in GitHub Desktop.
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
@hemanthr28
Copy link

hemanthr28 commented Feb 1, 2022

Hi, I am working on booting the elf's to my fpga. I have a very similar script, when I download the u-boot.elf, it gives an error saying - Memory write error at 0x8000000. MMU fault at VA 0x8000000. Translation fault, second level. What could be the reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment