bootimage - 2022.1 Chinese

Vitis 统一软件平台文档 嵌入式软件开发 (UG1400)

Document ID
UG1400
Release Date
2022-04-26
Version
2022.1 简体中文

语法

  • 对于 Zynq 器件和 Zynq UltraScale+ MPSoC
    [bootimage] <partition>
  • 对于 Versal® ACAP:
    { type=bootimage, file=<partition> }

描述

用于指定以下文件规格为 Bootgen 所创建的启动镜像,并作为输入来加以复用。

实参

指定的文件名。

示例

  • 对于 FSBL:
    all:
    {
    	[bootimage]fsbl.bin
    	[bootimage]system.bin
    }

    在以上示例中,fsbl.binsystem.bin 均为使用 Bootgen 生成的镜像。

    • 对于 fsbl.bin 生成:
      image: 
      { 
      	[pskfile] primary.pem 
      	[sskfile] secondary.pem 
      	[bootloader, authentication=rsa, aeskeyfile=encr_key.nky, encryption=aes] fsbl.elf 
       } 
      

      请使用以下命令:

      bootgen -image fsbl.bif -o fsbl.bin -encrypt efuse
    • 对于 system.bin 生成:
      image: 
      { 
      	[pskfile] primary.pem 
      	[sskfile] secondary.pem 
      	[authentication=rsa] system.bit 
      }
      

      请使用以下命令:

      bootgen -image system.bif -o system.bin
  • 对于 Versal® ACAP:
    new_bif:
    {
    	image
    	{
    		{ type = bootimage, file = base.pdi }
    	}
    	image
    	{
    		name = apu_ss, id = 0x1c000000
    	    { load = 0x1000, file = system.dtb }
             { exception_level = el-2, file = u-boot.elf }
             { core = a72-0, exception_level = el-3, trustzone, file = bl31.elf }
    	}
    }
注释: *base.pdi 即为 Vivado 所生成的 PDI。