执行 petalinux-boot --jtag --prebuilt 3报错
问题现象:
NOTICE: ATF running on XCZU19EG/silicon v4/RTL5.1 at 0xfffea000
ERROR: BL31: invalid ATF handoff structure at fffe9e00
概念:ATF(ARM Trusted firmware)
解决方法:
先检查启动模式拨码是否正确
如果正确再进行如下操作
write 0x100 in the BOOT_MODE_USER register (0x00FF5E0200) and issue a system reset to apply the change
用xsdb修改寄存器值,来切换jtag模式
$ source Vivado/2020.2/setting.sh
$ xsdb
xsdb% connect
xsdb% targets
xsdb% targets 11 这里11是选A53核
xsdb% mrd 0xff5E0200 1
xsdb% mwr 0xff5E0200 0x100 1
xsdb% mrd 0xff5E0200 1
修改完成,重新boot即可