- Source the latest PetaLinux tool.
- Create plnx project with Versal template.
-
petalinux-config --get-hw-description <location of the HBM enabled design xsa file> - Go to Subsystem Auto Hardware Settings → Memory
Settings → select the memory region of DDR/HBM
- Save and exit.
- Go to Arm Trusted Firmware Configuration
→ change the BL33 addresses by adding selected region base address + 0x8000000
For example: In the previous HBM0_PC0 started at 0x3C000000000 + 0X8000000 = 0x3C008000000
- Go to
For this HBM0_PC0 example, it should be base address + 0x1000 ((0x3C000001000)
- petalinux-build
The built images works for all boot modes except for jtag.
U-Boot expects the boot.scr to be at 0x20000000, which is hard-coded. You can change this through only setenv from the U-Boot prompt or by defining the boot.scr address in platform-auto.h.
U-Boot can be rebuilt with an altered environment to deal with this. Such as in platform-top.h
For HBM0_PC0 boot.scr should be base address + 0x20000000 Versal> setenv scriptaddr 8C020000000 or define the same in platform-top.h
- Boot the images.