offset - 2023.2 简体中文

Bootgen 用户指南 (UG1283)

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

语法

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

描述

用于设置启动镜像中的分区的绝对偏移。

实参

指定的值和分区。

示例

  • 对于 Zynq 器件和 Zynq UltraScale+ MPSoC
    all:                                                     
    {                                                        
         [bootloader] fsbl.elf                               
         u-boot.elf                                          
         [load=0x3000000, offset=0x500000] uImage.bin        
         [load=0x2A00000, offset=0xa00000] devicetree.dtb    
         [load=0x2000000, offset=0xc00000] uramdisk.image.gz 
    }
  • 对于 AMD Versal™  自适应 SoC:
    new_bif:
    {
    	image
    	{
    		{ type = bootimage, file = base.pdi }
    	}
    	image
    	{
    		name = apu_ss, id = 0x1c000000
    		{ offset = 0x8000, file = data.bin }
    	}
    }
    
注释: *base.pdi 即为 Vivado 所生成的 PDI。