alignment - 2023.2 简体中文

Bootgen 用户指南 (UG1283)

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

语法

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

设置字节对齐。将对此分区进行填充以对齐到该值的倍数。该属性不能配合偏移使用。

实参

要对齐的字节数。

示例

  • 对于 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。