I'm having trouble using the script for 2019.2. I only have 2019.2 installed in my machine. There is an error when creating a project in vivado related to current_design_bd that the block design must be open or created when running a certain command. But it's just still creating the project.
But, anyway, I tried adding debug information in the build of FSBL (still via petalinux). This time I build with my project with the full 32-bit width.
--------------------------------------------------------------------------------
TE0820 TE_XFsbl_HookPsuInit_Custom
Configure PLL: SI5338-B
Si5338 Init Registers Write.
Si5338 Init Complete
PLL Status Register 218:0x8
USB Reset Complete
ETH Reset Complete
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Xilinx Zynq MP First Stage Boot Loader (TE modified)
Release 2019.2 Oct 4 2021 - 13:34:51
Device Name: XCZU4EV
Reset Mode : System Reset
Platform: Silicon (4.0), Cluster ID 0x80000000
Running on A53-0 (64-bit) Processor, Device Name: XCZU4EV
--------------------------------------------------------------------------------
TE0820 TE_XFsbl_BoardInit_Custom
--------------------------------------------------------------------------------
Processor Initialization Done
================= In Stage 2 ============
QSPI 32 bit Boot Mode
QSPI is in Dual Parallel connection
QSPI is using 4 bit bus
FlashID=0x20 0xBB 0x20
MICRON 512M Bits
Multiboot Reg : 0x0
QSPI Reading Src 0x0, Dest FFFF0040, Length EC0
....
This has no problem. but one thing I noticed is that in the half-ram build, the TE0820 TE_XFsbl_HookPsuInit_Custom was not there. In the half-ram, it prints directly to Xilinx Zynq MP First Stage Boot Loader (TE modified).
I checked the code and it's the USE_TE_PSU_FOR_SI_INIT that causes the TE_XFsbl_HookPsuInit_Custom to be ran. Next time I'll force this to be defined from the -D flags during compilation and update you if this fixes my issues.
Thank you very much.