alignment - alignment - 2026.1 简体中文 - UG1283

Bootgen 用户指南 (UG1283)

Document ID
UG1283
Release Date
2026-06-23
Version
2026.1 简体中文

语法

  • 对于 Zynq 器件和 Zynq UltraScale+ MPSoC
    [alignment= <value>] <partition>
  • 对于 Versal 自适应 SoC:
    { alignment=<value>, file=<partition> }

设置字节对齐。通过填充来对齐分区。它使字节数为该值的整数倍。您不能将此属性与 offset 一起使用。

实参

按此字节数对齐。

示例

  • 对于 Zynq 器件和 Zynq UltraScale+ MPSoC
    all:
    {
    	[bootloader]fsbl.elf
    	[alignment=64] u-boot.elf
    }
  • 对于 Versal 自适应 SoC:
    new_bif:
    {
    	image
    	{
    		{ type = bootimage, file = base.pdi }
    	}
    	image
    	{
    		name = apu_ss, id = 0x1c000000
    		{ core = a72-0, alignment=64, file = apu.elf }
    	}
    }
    
注释: *base.pdi 即为 Vivado 所生成的 PDI。