基本步骤:
• Program the Programmable Logic (PL) bitstream
• Load the PMU firmware (PMUFW) image
• Load the FSBL binary
• Load U-Boot
• Load ARM Trusted Firmware (ATF)
2tcl脚本
targets -set -nocase -filter {name=~"*PL*"}
fpga design.bit
targets -set -filter {name=~"PSU"}
#disable security gates for DAP PLTAP and PMU
mwr 0xFFCA0038 0x1FF
after 500
#load and run pmufw
targets -set -filter {name=~"MicroBlaze PMU"}
dow pmufw.elf
con
after 500
targets -set -filter {name=~"Cortex-A53 #0"}
rst -processor
dow fsbl.elf
con
after 10000
stop
dow u-boot.elf
dow bl31.elf
con
after 5000
stop
#dow u-boot.elf
#con
#rrd pc display pc address
#rwr pc 0x100000 set pc point to 0x100000
#dow -data BOOT.bin 0x8000