HBM Build and Boot Steps - 2023.1 English - UG1144

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2023-05-16
Version
2023.1 English
  1. Source the latest PetaLinux tool.
  2. Create plnx project with Versal template.
  3. petalinux-config --get-hw-description <location of the HBM enabled design xsa file>
  4. Go to Subsystem Auto Hardware Settings → Memory Settings → select the memory region of DDR/HBM
  5. Save and exit.
  6. 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

  7. Go to petalinux-config -c u-boot → ARM architecture → Default DTB pickup address → Save

    For this HBM0_PC0 example, it should be base address + 0x1000 ((0x3C000001000)

  8. 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

  9. Boot the images.