- Source the latest PetaLinux tool.
- Create plnx project with Versal template.
- Point the HBM/higher ddr/lp ddr enabled design xsa
file.
petalinux-config --get-wh-description <xsa file>
Note: The current VHK158 Prod BSP has HBM enabled design. - Go to Subsystem Auto Hardware Settings
→ Memory Settings → select the memory region of DDR/HBM
-
- Save and Exit
- petalinux-build
- Boot the images.
The above-built images, by default, boot out of HBM/Higher DDR/LP DDR based on your selection for all boot modes except for jtag and pxe boot.
For jtag, U-Boot is expecting boot.scr at 0x20000000, and this was hardcoded. PetaLinux does not have any U-Boot config option to change this. But U-Boot is providing a mechanism soon to configure the boot script address.
For now, you have the following workaround to work with jtag boot for HBM:petalinux-boot --jtag --kernel --bootscr-addr 0x20000000 --hw_server-url <hostname:3121>
For PXE boot, still the default, the images boot from Lower DDR. This will be enhanced in future releases.