Files
luban-lite/target/d12x/demo68-nor/pack/image_cfg.json.spienc

117 lines
4.0 KiB
Plaintext
Raw Normal View History

2024-01-27 08:47:24 +08:00
{
"spi-nor": { // Device, The name should be the same with string in image:info:media:type
"size": "16m", // Size of SPI NAND
"partitions": {
"spl": { "size": "256k" },
2024-04-03 16:40:57 +08:00
"os": { "size": "2m" },
2024-01-27 08:47:24 +08:00
"rodata": { "size": "6m" },
2024-04-03 16:40:57 +08:00
"data": { "size": "7m" }
2024-01-27 08:47:24 +08:00
},
},
"image": {
"info": { // Header information about image
"platform": "d12x",
2024-04-03 16:40:57 +08:00
"product": "demo68-nor",
2024-01-27 08:47:24 +08:00
"version": "1.0.0",
"media": {
"type": "spi-nor",
"device_id": 0,
}
},
"updater": { // Image writer which is downloaded to RAM by USB/UART
"psram": {
"file": "uartupg-psram-init.aic",
"attr": ["required", "run"],
"ram": "0x30043000"
},
"spl": {
"file": "bootloader.aic",
"attr": ["required", "run"],
"ram": "0x40100000"
},
},
"target": { // Image components which will be burn to device's partitions
"spl": {
2024-04-03 16:40:57 +08:00
"file": "bootloader.aic.enc",
2024-01-27 08:47:24 +08:00
"attr": ["mtd", "required"],
"part": ["spl"]
},
2024-04-03 16:40:57 +08:00
"os": {
"file": "d12x_os.itb.enc",
"attr": ["mtd", "required"],
"part": ["os"]
},
2024-01-27 08:47:24 +08:00
"rodata": {
2024-04-03 16:40:57 +08:00
"file": "rodata.fatfs.enc",
2024-01-27 08:47:24 +08:00
"attr": ["mtd", "optional"],
"part": ["rodata"]
},
"data": {
2024-04-03 16:40:57 +08:00
"file": "data.lfs.enc",
2024-01-27 08:47:24 +08:00
"attr": ["mtd", "optional"],
"part": ["data"]
},
},
},
"temporary": { // Pre-proccess to generate image components from raw data
"aicboot": {
"uartupg-psram-init.aic": { // No loader, only PreBootProgram to initialize PSRAM
"head_ver": "0x00010001",
"resource": {
"private": "pbp_cfg.bin",
"pbp": "d12x.pbp",
},
},
"bootloader.aic": {
"head_ver": "0x00010001",
"loader": {
"file": "bootloader.bin",
"load address": "0x30043000",
"entry point": "0x30043100",
"load address ext": "0x40300000",
"entry point ext": "0x40300100",
},
"resource": {
"private": "pbp_cfg.bin",
"pbp": "d12x.pbp",
},
},
},
"itb": {
"d12x_os.itb": {
"its": "d12x_os.its"
},
},
2024-04-03 16:40:57 +08:00
"spienc": {
"bootloader.aic.enc": {
"file": "bootloader.aic", // File to be encrypted
"address": "0x0", // Flash start address file to be stored
"key": "keys/spi_aes.key", // Keys the same in eFuse
// "nonce": "keys/spi_nonce.key", // Nonce the same in eFuse
"tweak": "0",
},
"d12x_os.itb.enc": {
"file": "d12x_os.itb", // File to be encrypted
"address": "0x40000", // Flash start address file to be stored
"key": "keys/spi_aes.key", // Keys the same in eFuse
// "nonce": "keys/spi_nonce.key", // Nonce the same in eFuse
"tweak": "0",
},
"rodata.fatfs.enc": {
"file": "rodata.fatfs", // File to be encrypted
"address": "0x240000", // Flash start address file to be stored
"key": "keys/spi_aes.key", // Keys the same in eFuse
// "nonce": "keys/spi_nonce.key", // Nonce the same in eFuse
"tweak": "0",
},
"data.lfs.enc": {
"file": "data.lfs", // File to be encrypted
"address": "0x840000", // Flash start address file to be stored
"key": "keys/spi_aes.key", // Keys the same in eFuse
// "nonce": "keys/spi_nonce.key", // Nonce the same in eFuse
"tweak": "0",
},
},
2024-01-27 08:47:24 +08:00
},
}