authentication - 2025.1 简体中文 - UG1283

Bootgen 用户指南 (UG1283)

Document ID
UG1283
Release Date
2025-09-10
Version
2025.1 简体中文

语法

  • 对于 ZynqZynq UltraScale+ MPSoC 器件:
    [authenication = <options>] <partition> 
  • 对于 Versal 自适应 SoC、第二代 Versal AI Edge 系列第二代 Versal Prime 系列Spartan UltraScale+
    {authentication=<options>, file=<partition>} 

描述

指定要进行身份验证的分区。

实参

  • none:分区不执行身份验证。这是默认值。
  • rsa:分区使用 RSA 算法执行身份验证。
  • ecdsa-p384:分区使用 ECDSA p384 曲线执行身份验证。
  • ecdsa-p521:分区使用 ECDSA p521 曲线执行身份验证。
  • hss-sha256:分区使用 hss-sha256 执行身份验证。仅适用于第二代 Versal AI Edge 系列第二代 Versal Prime 系列
  • hss-shake256:分区使用 hss-shake256 执行身份验证。仅适用于第二代 Versal AI Edge 系列第二代 Versal Prime 系列、SU10P、SU25P、SU35P、SU50P、SU55P、SU65P、SU100P、SU150P 和 SU200P。
  • lms-sha256:分区使用 lms-sha256 执行身份验证。仅适用于第二代 Versal AI Edge 系列第二代 Versal Prime 系列
  • lms-shake256:分区使用 lms-sha256 执行身份验证。仅适用于第二代 Versal AI Edge 系列第二代 Versal Prime 系列、SU50P、SU55P、SU65P、SU100P、SU150P 和 SU200P。

示例

  • 对于 Zynq 器件和 Zynq UltraScale+ MPSoC
    all:                                                          
    {                                                             
        [ppkfile] ppk.txt                                         
        [spkfile] spk.txt                                         
        [bootloader, authentication=rsa] fsbl.elf                 
        [authentication=rsa] hello.elf                            
    } 
  • 对于 Versal 自适应 SoC:
    all:
    {
    	id_code = 0x04ca8093
    	extended_id_code = 0x01
    	id = 0x2
    	boot_config {bh_auth_enable}
    
    	metaheader
    	{
    		authentication = rsa,
    		pskfile = PSK2.pem,
    		sskfile = SSK2.pem
    	}
    
    	image
    	{
    		name = pmc_subsys, id = 0x1c000001
    		partition
    		{
    			id = 0x01, type = bootloader,
    			authentication = rsa,
    			pskfile =PSK1.pem,
    			sskfile =SSK1.pem,
    			file = plm.elf
    		}
    		partition
    		{
    			id = 0x09, type = pmcdata, load = 0xf2000000,
    			file = pmc_data.cdo
    		}
    	}
    
    	image
    	{
    		name = lpd, id = 0x4210002
    		partition
    		{
    			id = 0x0C, type = cdo,
    			authentication = rsa,
    			pskfile = PSK3.pem,
    			sskfile = SSK3.pem,
    			file = lpd_data.cdo
    		}
    		partition
    		{
    			id = 0x0B, core = psm,
    			authentication = rsa,
    			pskfile = PSK1.pem,
    			sskfile = SSK1.pem,
    			file = psm_fw.elf
    		}
    	}
    
    	image
    	{
    		name = fpd, id = 0x420c003
    		partition
    		{
    			id = 0x08, type = cdo,
    			authentication = rsa,
    			pskfile = PSK3.pem,
    			sskfile = SSK3.pem,
    			file = fpd_data.cdo
    		}
    	}
    }
  • 对于第二代 Versal AI Edge 系列第二代 Versal Prime 系列
    new_bif:
    {
     ppkfile = primary.hss.pub
        pskfile =primary.hss.prv
        spkfile =secondary.hss.pub
     sskfile = secondary.hss.prv
     image
     {
      name = pmc_subsys
      id = 0x0
      partition
      {
       id = 0x01
       type = bootloader
       authentication = hss-shake256
       file = plm.elf
      }
      partition
      {
       id = 0x02
       type = pmcdata
       authentication = hss-shake256
       file =  design_1_wrapper.rcdo
      }
     }
    } 
    
    new_bif:
    {
     ppkfile = primary.hss.pub
        pskfile =primary.hss.prv
        spkfile =secondary.hss.pub
     sskfile = secondary.hss.prv
     image
     {
      name = pmc_subsys
      id = 0x0
      partition
      {
       id = 0x01
       type = bootloader
       authentication = lms-shake256
       file = plm.elf
      }
      partition
      {
       id = 0x02
       type = pmcdata
       authentication = lms-shake256
       file =  design_1_wrapper.rcdo
      }
     }
    }
  • 对于 Spartan UltraScale+
    new_bif:
    {
     ppkfile = primary.hss.pub
        pskfile =primary.hss.prv
        spkfile =secondary.hss.pub
     sskfile = secondary.hss.prv
     image
     {
      name = pmc_subsys
      id = 0x0
      partition
      {
       id = 0x01
       type = bootloader
       authentication = hss-shake256
       file = plm.elf
      }
      partition
      {
       id = 0x02
       type = pldata
       authentication = hss-shake256
       file =  design_1_wrapper.rcdo
      }
     }
    }
     
    new_bif:
    {
     ppkfile = primary.hss.pub
        pskfile =primary.hss.prv
        spkfile =secondary.hss.pub
     sskfile = secondary.hss.prv
     image
     {
      name = pmc_subsys
      id = 0x0
      partition
      {
       id = 0x01
       type = bootloader
       authentication = lms-shake256
       file = plm.elf
      }
      partition
      {
       id = 0x02
       type = pldata
       authentication = lms-shake256
       file =  design_1_wrapper.rcdo
      }
     }
    }