此示例演示了替换现有 PDI 中的 PLM 的步骤。
- 使用 Vivado 生成的 PDI (
base.pdi
)。 - 通过替换 base PDI 中的 PLM(启动加载程序)来创建新的 PDI。
new_bif: { image { { type = bootimage, file = base.pdi } { type = bootloader, file = plm_v1.elf } } }
Bootgen 会将启动加载程序 plm.elf 替换为新的 plm_v1.elf。
用于创建 PDI 的 Bootgen 命令示例
使用以下命令来创建 PDI。
bootgen -arch versal -image filename.bif -w -o boot.pdi