linuxOS_D21X/target/d211/ota_emmc/image_cfg.json
2024-11-29 16:33:21 +08:00

169 lines
3.6 KiB
JSON

{
"mmc": { // Media type
"size": "8G", // Size of SD/eMMC
"partitions": { // Partition table apply to device
"spl": { "offset": "0x4400", "size": "495k" },
"uboot": { "size": "1m" },
"env": { "size": "256k" },
"falcon": { "size": "256k" },
"logo": { "size": "512k" },
"kernel": { "size": "16m" },
"rootfs": { "size": "72m" },
"user": { "size": "-" },
},
},
"image": {
"info": { // Header information about image
"platform": "d211",
"product": "demo",
"version": "1.0.0",
"media": {
"type": "mmc",
"device_id": 0,
}
},
"updater": { // Image writer which is downloaded to RAM by USB
"ddr": {
"file": "usbupg-ddr-init.aic",
"attr": ["required", "run"],
"ram": "0x00103000"
},
"env": {
"file": "env.bin",
"attr": ["required"],
"ram": "0x41000000"
},
"uboot": {
"file": "u-boot.itb",
"attr": ["required"],
"ram": "0x41100000"
},
"logo": {
"file": "logo.itb",
"attr": ["required"],
"ram": "0x42400000"
},
"spl": {
"file": "u-boot-spl-dtb.aic",
"attr": ["required", "run"],
"ram": "0x40000000"
},
},
"target": { // Image components which will be burn to device's partitions
"spl": {
"file": "u-boot-spl-dtb.aic",
"attr": ["required"],
"part": ["spl"]
},
"uboot": {
"file": "u-boot.itb",
"attr": ["block", "required"],
"part": ["uboot"]
},
"env": {
"file": "env.bin",
"attr": ["block", "required"],
"part": ["env"]
},
"logo": {
"file": "logo.itb",
"attr": ["block", "required"],
"part": ["logo"]
},
"kernel": {
"file": "kernel.itb",
"attr": ["block", "required"],
"part": ["kernel"]
},
"rootfs": {
"file": "rootfs.ext4",
"attr": ["block", "required"],
"part": ["rootfs"]
},
"app": {
"file": "userfs1.ext4",
"attr": ["block", "optional"],
"part": ["user"]
},
},
"extension": { // Extended file archive
"tar": {
"file": "extension.tar",
"attr": ["block", "optional"],
}
},
},
"pre-process": { // Pre-proccess to generate image components from raw data
"aicimage": { // Create aic boot image
"usbupg-ddr-init.aic": { // No loader, only PreBootProgram to initialize DDR
"head_ver": "0x00010001",
"resource": {
"private": "ddr_init.bin",
"pbp": "d211.pbp",
},
},
"pbp_ext.aic": {
"head_ver": "0x00010001",
"resource": {
"pbp": "d211.pbp",
"private": "ddr_init.bin",
},
// combine to use with spl.aic
"with_ext": "true",
},
"spl.aic": {
"head_ver": "0x00010001",
"loader": {
"file": "u-boot-spl-dtb.bin",
"load address": "0x42000000",
"entry point": "0x42000100", // 256 byte aic header
},
"resource": {
"private": "ddr_init.bin",
},
},
},
"concatenate": { // cat files in order
"u-boot-spl-dtb.aic": ["pbp_ext.aic", "spl.aic"],
},
"uboot_env": { // Create env data from txt
"env.bin": {
"file": "env.txt",
"size": "0x4000",
},
},
"itb": { // Create itb image from its
"u-boot.itb": {
"its": "u-boot.its"
},
"logo.itb": {
"its": "logo.its"
},
"kernel.itb": {
"its": "kernel.its"
},
},
"extension": {
"extension.tar": {
"exfiles": ["image_cfg.json",
"u-boot.its",
"kernel.its",
"recovery.its",
"u-boot.dtb",
"u-boot-nodtb.bin",
"u-boot-spl-nodtb.bin",
"u-boot-spl-dtb.bin",
"u-boot-spl.dtb",
"env.txt",
"ddr_init.bin",
"d211.pbp",
"Image",
"fw_dynamic.bin",
"u-boot-nodtb.bin"],
"exdirs": ["dts"],
},
},
},
}