Skip to content

Instantly share code, notes, and snippets.

@macromorgan
Created February 10, 2023 15:10
Show Gist options
  • Save macromorgan/80bd5231256ba0e4077f5b3b7d84cd7e to your computer and use it in GitHub Desktop.
Save macromorgan/80bd5231256ba0e4077f5b3b7d84cd7e to your computer and use it in GitHub Desktop.
U-Boot Loadables Order for RK356x
/*
* Copyright (C) 2020 Rockchip Electronic Co.,Ltd
*
* Simple U-boot fit source file containing ATF/OP-TEE/U-Boot/dtb/MCU
*/
/dts-v1/;
/ {
description = "FIT Image with ATF/OP-TEE/U-Boot/MCU";
#address-cells = <1>;
images {
uboot {
description = "U-Boot";
data = /incbin/("u-boot-nodtb.bin");
type = "standalone";
arch = "arm64";
os = "U-Boot";
compression = "none";
load = <0x00a00000>;
hash {
algo = "sha256";
};
};
atf-1 {
description = "ARM Trusted Firmware";
data = /incbin/("./bl31_0x00040000.bin");
type = "firmware";
arch = "arm64";
os = "arm-trusted-firmware";
compression = "none";
load = <0x00040000>;
hash {
algo = "sha256";
};
};
atf-2 {
description = "ARM Trusted Firmware";
data = /incbin/("./bl31_0xfdcc1000.bin");
type = "firmware";
arch = "arm64";
os = "arm-trusted-firmware";
compression = "none";
load = <0xfdcc1000>;
hash {
algo = "sha256";
};
};
atf-3 {
description = "ARM Trusted Firmware";
data = /incbin/("./bl31_0x0006a000.bin");
type = "firmware";
arch = "arm64";
os = "arm-trusted-firmware";
compression = "none";
load = <0x0006a000>;
hash {
algo = "sha256";
};
};
atf-4 {
description = "ARM Trusted Firmware";
data = /incbin/("./bl31_0xfdcd0000.bin");
type = "firmware";
arch = "arm64";
os = "arm-trusted-firmware";
compression = "none";
load = <0xfdcd0000>;
hash {
algo = "sha256";
};
};
atf-5 {
description = "ARM Trusted Firmware";
data = /incbin/("./bl31_0xfdcce000.bin");
type = "firmware";
arch = "arm64";
os = "arm-trusted-firmware";
compression = "none";
load = <0xfdcce000>;
hash {
algo = "sha256";
};
};
atf-6 {
description = "ARM Trusted Firmware";
data = /incbin/("./bl31_0x00068000.bin");
type = "firmware";
arch = "arm64";
os = "arm-trusted-firmware";
compression = "none";
load = <0x00068000>;
hash {
algo = "sha256";
};
};
optee {
description = "OP-TEE";
data = /incbin/("tee.bin");
type = "firmware";
arch = "arm64";
os = "op-tee";
compression = "none";
load = <0x8400000>;
hash {
algo = "sha256";
};
};
fdt {
description = "U-Boot dtb";
data = /incbin/("./u-boot.dtb");
type = "flat_dt";
arch = "arm64";
compression = "none";
hash {
algo = "sha256";
};
};
};
configurations {
default = "conf";
conf {
description = "rk3566-anbernic-rg503";
rollback-index = <0x0>;
firmware = "atf-1";
loadables = "uboot", "atf-2", "atf-3", "atf-4", "atf-5", "atf-6", "optee";
fdt = "fdt";
signature {
algo = "sha256,rsa2048";
key-name-hint = "dev";
sign-images = "fdt", "firmware", "loadables";
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment