mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-25 21:48:54 +00:00
123 lines
4.0 KiB
JSON
123 lines
4.0 KiB
JSON
{
|
|
"mmc": { // Device, The name should be the same with string in image:info:media:type
|
|
"size": "8G", // Size of SD/eMMC
|
|
"partitions": {
|
|
"spl": { "offset": "0x4400", "size": "495k" },
|
|
"env": { "size": "256k" },
|
|
"env_r": { "size": "256k" },
|
|
"os": { "size": "8m" },
|
|
"os_r": { "size": "8m" },
|
|
"rodata": { "size": "12m" },
|
|
"rodata_r": { "size": "12m" },
|
|
"data": { "size": "20m" },
|
|
"data_r": { "size": "20m" }
|
|
},
|
|
},
|
|
"image": {
|
|
"info": { // Header information about image
|
|
"platform": "d12x",
|
|
"product": "demo68-mmc",
|
|
"version": "1.0.0",
|
|
"media": {
|
|
"type": "mmc",
|
|
"device_id": 0, // sdmc index
|
|
}
|
|
},
|
|
"updater": { // Image writer which is downloaded to RAM by USB
|
|
"psram": {
|
|
"file": "uartupg-psram-init.aic",
|
|
"attr": ["required", "run"],
|
|
"ram": "0x30044000"
|
|
},
|
|
"spl": {
|
|
"file": "bootloader.aic",
|
|
"attr": ["required", "run"],
|
|
"ram": "0x40100000"
|
|
},
|
|
"env": {
|
|
"file": "env.bin",
|
|
"attr": ["required"],
|
|
"ram": "0x40140000"
|
|
},
|
|
},
|
|
"target": { // Image components which will be burn to device's partitions
|
|
"spl": {
|
|
"file": "bootloader.aic",
|
|
"attr": ["required"],
|
|
"part": ["spl"]
|
|
},
|
|
"env": {
|
|
"file": "env.bin",
|
|
"attr": ["block", "optional"],
|
|
"part": ["env"]
|
|
},
|
|
"env_r": {
|
|
"file": "env.bin",
|
|
"attr": ["block", "optional"],
|
|
"part": ["env_r"]
|
|
},
|
|
"os": {
|
|
"file": "d12x_os.itb",
|
|
"attr": ["block", "required"],
|
|
"part": ["os"]
|
|
},
|
|
"rodata": {
|
|
"file": "rodata.fatfs",
|
|
"attr": ["block", "optional"],
|
|
"part": ["rodata"]
|
|
},
|
|
"data": {
|
|
"file": "data.fatfs",
|
|
"attr": ["block", "optional"],
|
|
"part": ["data"]
|
|
},
|
|
},
|
|
},
|
|
"pre-process": { // Pre-proccess to generate image components from raw data
|
|
"aicimage": { // Create aic boot image
|
|
"uartupg-psram-init.aic": { // No loader, only PreBootProgram to initialize PSRAM
|
|
"head_ver": "0x00010001",
|
|
"resource": {
|
|
"private": "pbp_cfg.bin",
|
|
"pbp": "d12x.pbp",
|
|
},
|
|
},
|
|
"pbp_ext.aic": {
|
|
"head_ver": "0x00010001",
|
|
"resource": {
|
|
"pbp": "d12x.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
|
|
"d12x_os.itb": {
|
|
"its": "d12x_os.its"
|
|
},
|
|
},
|
|
"uboot_env": { // Create env data from txt
|
|
"env.bin": {
|
|
"file": "env.txt",
|
|
"size": "4096",
|
|
"redundant": "enable",
|
|
},
|
|
},
|
|
},
|
|
}
|