{ "spi-nor": { // Device, The name should be the same with string in image:info:media:type "size": "2m", // Size of SPI NOR "partitions": { "spl": { "size": "512k" }, "env": { "size": "128k" }, "os": { "size": "1m" }, "data": { "size": "256k" }, }, }, "image": { "info": { // Header information about image "platform": "g73x", "product": "scan", "version": "1.0.0", "media": { "type": "spi-nor", "device_id": 0, } }, "updater": { // Image writer which is downloaded to RAM by USB "spl": { "file": "bootloader.aic", "attr": ["required", "run"], "ram": "0x30100000" }, }, "target": { // Image components which will be burn to device's partitions "spl": { "file": "bootloader.aic", "attr": ["mtd", "required"], "part": ["spl"] }, "env": { "file": "env.bin", "attr": ["mtd", "optional"], "part": ["env"] }, "os": { "file": "g73x_os.itb", "attr": ["mtd", "required"], "part": ["os"] }, "data": { "file": "data.lfs", "attr": ["mtd", "optional"], "part": ["data"] }, }, }, "pre-process": { // Pre-proccess to generate image components from raw data "aicimage": { // Create aic boot image "pbp_ext.aic": { "head_ver": "0x00010001", "resource": { "pbp": "g73x.pbp", "private": "pbp_cfg.bin", }, // combine to use with loader.aic "with_ext": "true", }, "loader.aic": { "head_ver": "0x00010001", "loader": { "file": "bootloader.bin", "load address": "CONFIG_AIC_BOOTLOADER_LOAD_BASE", "entry point": "CONFIG_AIC_BOOTLOADER_TEXT_BASE", // 256 byte aic header }, "resource": { "private": "pbp_cfg.bin", }, }, }, "concatenate": { // cat files in order "bootloader.aic": ["pbp_ext.aic", "loader.aic"], }, "itb": { // Create itb image from its "g73x_os.itb": { "its": "g73x_os.its" }, }, "uboot_env": { // Create env data from txt "env.bin": { "file": "env.txt", "size": "4096", "redundant": "enable", }, }, }, }