sdk-hwV1.3/lichee/xr806/appos/project/image_cfg/image.cfg

54 lines
3.3 KiB
INI
Executable File

{
"magic" : "AWIH",
"version" : "0.5",
"OTA" : {"addr": "1024K", "size": "4K"},
#if (defined(CONFIG_OTA_POLICY_IMAGE_COMPRESSION))
"image" : {"max_size": "1020K", "xz_max_size": "600K"},
#else
"image" : {"max_size": "1020K"},
#endif
"section" :
[
#if (defined(CONFIG_TRUSTZONE))
{"id": "0xa5ff5a00", "bin": PRJ_IMAGE_BOOT_BIN, "cert": PRJ_BOOT_CERT, "max_len": "32K", "sram_offs": PRJ_IMAGE_BOOT_SRAM_OFFS, "ep": PRJ_IMAGE_BOOT_EP, "attr": PRJ_IMAGE_BOOT_ATTR},
#else
{"id": "0xa5ff5a00", "bin": PRJ_IMAGE_BOOT_BIN, "cert": PRJ_BOOT_CERT, "max_len": "16K", "sram_offs": PRJ_IMAGE_BOOT_SRAM_OFFS, "ep": PRJ_IMAGE_BOOT_EP, "attr": PRJ_IMAGE_BOOT_ATTR},
#endif
#if (defined(CONFIG_TRUSTZONE))
{"id": "0xa5f55a0a", "bin": "tz_params.bin", "cert": "tz_params_sign.bin", "max_len": "1K", "sram_offs": PRJ_TZ_PARAMS_SRAM_OFFS, "ep": "0xffffffff", "attr": "0x4"},
{"id": "0xa5f45a0b", "bin": "tz_api.bin", "cert": "tz_api_sign.bin", "max_len": "31K", "sram_offs": PRJ_IMAGE_TZ_API_SRAM_OFFS, "ep": PRJ_IMAGE_TZ_API_EP, "attr": PRJ_IMAGE_TZ_ATTR},
#endif
{"id": "0xa5fe5a01", "bin": "app.bin", "cert": PRJ_APP_BIN_CERT, "max_len": "100K", "sram_offs": PRJ_IMAGE_APP_SRAM_OFFS, "ep": PRJ_IMAGE_APP_EP, "attr": PRJ_IMAGE_APP_ATTR},
#if (defined(CONFIG_XIP))
#if (defined(CONFIG_TZ_XIP))
{"id": "0xa5fd5a12", "bin": "tz_xip.bin", "cert": "tz_xip_sign.bin", "max_len": "32K", "sram_offs": "0xffffffff", "ep": "0xffffffff", "attr": PRJ_IMAGE_TZ_XIP_ATTR},
#endif
{"id": "0xa5fd5a02", "bin": "app_xip.bin", "cert": PRJ_APP_XIP_BIN_CERT, "max_len": "845K", "sram_offs": "0xffffffff", "ep": "0xffffffff", "attr": PRJ_IMAGE_APP_XIP_ATTR},
#endif
#if (defined(CONFIG_PSRAM))
#if (defined(CONFIG_TRUSTZONE_PSRAM))
{"id": "0xa5f65a19", "bin": "tz_psram.bin", "cert": "tz_psram_sign.bin", "max_len": "32K", "sram_offs": PRJ_TZ_PSRAM_START_OFFS, "ep": "0x00000000", "attr": PRJ_IMAGE_TZ_ATTR},
#endif
{"id": "0xa5f65a09", "bin": "app_psram.bin", "cert": PRJ_APP_PSRAM_BIN_CERT, "max_len": "110K", "sram_offs": PRJ_PSRAM_START_OFFS, "ep": "0x00008000", "attr": PRJ_IMAGE_APP_PSRAM_ATTR},
#endif
#if (defined(CONFIG_WLAN))
{"id": "0xa5fa5a05", "bin": "wlan_bl.bin", "cert": "null", "max_len": "4K", "sram_offs": "0xffffffff", "ep": "0xffffffff", "attr": "0x1"},
{"id": "0xa5f95a06", "bin": "wlan_fw.bin", "cert": "null", "max_len": "37K", "sram_offs": "0xffffffff", "ep": "0xffffffff", "attr": "0x1"},
#endif
#if (defined(CONFIG_WLAN) || defined(CONFIG_BLE))
{"id": "0xa5f85a07", "bin": PRJ_IMAGE_SYS_SDD_BIN, "cert": "null", "max_len": "1K", "sram_offs": "0xffffffff", "ep": "0xffffffff", "attr": "0x1"},
#endif
{}
],
"raw_bin" :[
#if (defined(CONFIG_FLASH_FS_IMG_PACK))
#if (defined(CONFIG_LITTLE_FS))
{"bin" :"fs_littlefs.bin", "flash_offs": PRJ_LITTLE_FS_START_ADDR},
#elif (defined(CONFIG_SPIF_FS))
{"bin" :"fs_spiffs.bin", "flash_offs": PRJ_SPIF_FS_START_ADDR},
#endif
#endif
{}
]
}