SBC_builder/config/board/btt_pi2.json
2025-09-07 13:08:20 +02:00

97 lines
2.5 KiB
JSON

{
"build":
[
"uboot", "kernel"
],
"variables":
[
"CROSS_C:aarch64-linux-gnu-",
"TPL_BIN:rk3566_ddr_1056MHz_v1.23.bin",
"BL31_BIN:rk3568_bl31_v1.44.elf",
"ARCH:aarch64",
"DTB_FILE:rockchip/rk3566-bigtreetech-pi2.dtb",
"DTO_FILES:rockchip/rk3566-*.dtbo",
"DTO_DIR:rockchip/overlays"
],
"targets":
[
{
"parent": "rkbin",
"version": "@",
"version_type": "head",
"target": [ "bl31" ],
"no_build": 1,
"artifacts":
[
{
"file": "bin/rk35/%{TPL_BIN}%",
"store_type": "temp"
},
{
"file": "bin/rk35/%{BL31_BIN}%",
"store_type": "temp"
}
]
},
{
"parent": "uboot",
"version": "@",
"version_type": "head",
"patch_dir": "uboot/btt",
"deps":
[
"rkbin"
],
"artifacts":
[
{
"file": "idbloader.img",
"store_type": "dd",
"block_size": "512b",
"img_offset": 64
},
{
"file": "u-boot.itb",
"store_type": "dd",
"block_size": "512b",
"img_offset": 16384
},
{
"file": "u-boot-rockchip-spi.bin",
"store_type": "boot"
}
],
"target": [ "" ],
"makeopts": "CROSS_COMPILE=%{CROSS_C}% ARCHV=%{ARCH}% ROCKCHIP_TPL=%{out_dir}%/%{TPL_BIN}% BL31=%{out_dir}%/%{BL31_BIN}%"
},
{
"parent": "kernel"
}
],
"install":
{
"target": "image",
"type": "gpt",
"block_size": "512b",
"partitions":
[
{
"name": "boot",
"size": "1G",
"first_sector": "32768"
},
{
"name": "rw",
"size": "2G"
}
],
"overlays":
[
"/dtb/%{DTO_DIR}%/rk3566-sfc-nor.dtbo",
"/dtb/%{DTO_DIR}%/rk3566-w1-gpio4-pb2.dtbo",
"/dtb/%{DTO_DIR}%/rk3566-dsi1.dtbo",
"/dtb/%{DTO_DIR}%/rk3566-pcie.dtbo"
]
}
}