语法
- 对于 Zynq 器件和 Zynq UltraScale+ MPSoC:
[encryption = <options>] <partition>
- 对于 AMD Versal™
自适应 SoC:
{ encryption = <options>, file = <filename> }
描述
用于指定需要进行加密的分区。加密算法为:
实参
- none:分区不执行加密。这是默认值。
- aes:分区使用 AES 算法执行加密。
示例
- 对于 Zynq 器件和 Zynq UltraScale+ MPSoC:
all: { [aeskeyfile] test.nky [bootloader, encryption=aes] fsbl.elf [encryption=aes] hello.elf }
- 对于 AMD Versal™
自适应 SoC:
all: { id_code = 0x04ca8093 extended_id_code = 0x01 id = 0x2 metaheader { encryption = aes, keysrc = bbram_red_key, aeskeyfile = efuse_red_metaheader_key.nky, } image { name = pmc_subsys, id = 0x1c000001 partition { id = 0x01, type = bootloader, encryption = aes, keysrc = bbram_red_key, aeskeyfile = bbram_red_key.nky, file = plm.elf } partition { id = 0x09, type = pmcdata, load = 0xf2000000, aeskeyfile = pmcdata.nky, file = pmc_data.cdo } } image { name = lpd, id = 0x4210002 partition { id = 0x0C, type = cdo, encryption = aes, keysrc = bbram_red_key, aeskeyfile = key1.nky, file = lpd_data.cdo } partition { id = 0x0B, core = psm, encryption = aes, keysrc = bbram_red_key, aeskeyfile = key2.nky, file = psm_fw.elf } } image { name = fpd, id = 0x420c003 partition { id = 0x08, type = cdo, encryption = aes, keysrc = bbram_red_key, aeskeyfile = key5.nky, file = fpd_data.cdo } } }