使用“Offset”属性拆分 - 2023.2 简体中文

Bootgen 用户指南 (UG1283)

Document ID
UG1283
Release Date
2023-10-18
Version
2023.2 简体中文

此示例有助于理解 offset 属性的拆分方式。

the_ROM_image:
{    
  [split]mode=slaveboot,fmt=bin
  [bootloader, destination_cpu = a53-0] fsbl.elf   
  [destination_cpu = pmu, offset=0x3000000] pmufw.elf    
  [destination_device = pl, offset=0x4000000] design_1_wrapper.bit
  [destination_cpu = a53-0, exception_level = el-3, trustzone, offset=0x6000000]\ hello.elf 
}

对分区指定偏移 (offset) 时,启动镜像中该分区的地址即从给定偏移开始。为弥合当前分区注明的偏差与先前分区之间的间隙,Bootgen 会向先前分区追加 0xFF。因此,现在对同一个分区尝试执行拆分时,启动镜像应根据该分区的地址进行拆分,即此例中所提及的偏移。因此,您可在拆分后的分区输出中看到填充后的 0xFF。