Bootgen supports replacing PLM, PMC CDO, and PSM for Monolithic devices, by taking the PDI as input.
Keeping in view the SSI technology devices and future requirements, the replace functionality is now done by taking the bif as input, instead of boot image.
This example shows the steps to replace PLM and PMC DATA.
- Take a Vivado generated bif (
base.bif
). - Create a new PDI by replacing the PLM (bootloader) from the base
bif.
include: base.bif replace_image: { image { partition { type = bootloader, slr = 0, file = plm-v1.elf } partition { type = pmcdata, slr = 0, file = pmc_data-v1.cdo } } image { partition { type = bootloader, slr = 1, file = plm-v1.elf } partition { type = pmcdata, slr = 1, file = pmc_data-v1.cdo } } image { partition { type = bootloader, slr = 2, file = plm-v1.elf } partition { type = pmcdata, slr = 2, file = pmc_data-v1.cdo } } }
Bootgen replaces respective slr bootloader plm.elf with a new plm_v1.elf and pmcdata with pmc_data-v1.cdos.
Example Bootgen Command to Create a PDI
Use the following command to create a PDI.
bootgen -arch versal -image filename.bif -w -o boot.pdi