Files
u-boot/arch/arm/dts/rockchip-vpl-u-boot.dtsi
Simon Glass 4620af1c49 rockchip: Update binman image for new skip-at-start setup
Now that the skip-at-start feature is properly used in Binman, drop the
various workarounds in the image.

Series-changes: 2
- Split out the fixes for skip-at-start into a new patch

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-06-09 16:24:23 -06:00

225 lines
4.6 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
*/
/ {
bootstd {
bootph-verify;
compatible = "u-boot,boot-std";
/*
* This is used for the VBE OS-request tests. A FAT filesystem
* created in a partition with the VBE information appearing
* before the partition starts.
*
* Offsets are aligned to the media block-size, typically 0x200
*
* The start of the VBE area is set at 8MB, adjusted for the
* skip-at-start offset. Before that is a block containing the
* version information and before that is the state. These could
* be stored in a different storage device if available, but so
* far VBE only supports MMC.
*
* The total area size is 8MB which should be enough for a FIT
* containing U-Boot and a number of devicetrees.
*/
firmware0 {
bootph-verify;
compatible = "fwupd,vbe-abrec";
storage = "mmc0";
area-start = <0x7f8000>;
area-size = <0x800000>;
state-offset = <(0x7f8000 - 0x400)>;
state-size = <0x40>;
version-offset = <(0x7f8000 - 0x200)>;
version-size = <0x100>;
};
};
};
&binman {
template-1 {
images {
spl {
description = "U-Boot SPL";
type = "firmware";
os = "u-boot";
arch = FIT_ARCH;
compression = "lz4";
load = <CONFIG_SPL_TEXT_BASE>;
entry = <CONFIG_SPL_TEXT_BASE>;
phase = "spl";
section {
compress = "lz4";
u-boot-spl-nodtb {
};
u-boot-spl-bss-pad {
};
};
};
};
configurations {
@config-SEQ {
fit,firmware = "atf-1", "u-boot", "spl";
};
};
};
spl_template: template-2 {
type = "fit";
description = "FIT image for U-Boot SPL";
#address-cells = <1>;
fit,fdt-list = "of-list";
fit,align = <512>;
fit,external-offset = <0>;
images {
spl {
description = "U-Boot SPL";
type = "firmware";
os = "u-boot";
arch = FIT_ARCH;
compression = "lz4";
load = <CONFIG_SPL_TEXT_BASE>;
entry = <CONFIG_SPL_TEXT_BASE>;
section {
compress = "lz4";
u-boot-spl-nodtb {
};
u-boot-spl-bss-pad {
};
};
};
@fdt-SEQ {
description = "fdt-NAME";
compression = "none";
type = "flat_dt";
fit,fdt-phase = "spl";
};
};
configurations {
default = "@config-DEFAULT-SEQ";
@config-SEQ {
description = "NAME.dtb";
fdt = "fdt-SEQ";
fit,firmware = "spl";
fit,loadables;
fit,compatible;
};
};
};
simple-bin {
filename = "u-boot-rockchip.bin";
pad-byte = <0xff>;
skip-at-start = <0x8000>;
alternates-fdt {
fdt-list-dir = "dts/upstream/src/arm64/rockchip";
filename-pattern = "alt-NAME.bin";
fdt-phase = "tpl";
mkimage {
filename = "idbloader.img";
args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
multiple-data-files;
u-boot-tpl {
symbols-base = <0>;
};
};
};
vpl {
type = "fit";
offset = <(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 0x200)>;
description = "FIT image for U-Boot TPL";
#address-cells = <1>;
fit,fdt-list = "of-list";
fit,align = <512>;
fit,external-offset = <0>;
images {
image-vpl {
description = "U-Boot VPL";
type = "firmware";
os = "u-boot";
arch = FIT_ARCH;
compression = "lz4";
load = <CONFIG_VPL_TEXT_BASE>;
entry = <CONFIG_VPL_TEXT_BASE>;
section {
compress = "lz4";
u-boot-vpl-nodtb {
symbols-base = <0>;
};
u-boot-vpl-bss-pad {
};
};
};
@fdt-SEQ {
description = "fdt-NAME";
compression = "none";
type = "flat_dt";
fit,fdt-phase = "vpl";
};
};
configurations {
default = "@config-DEFAULT-SEQ";
@config-SEQ {
description = "NAME.dtb";
fdt = "fdt-SEQ";
fit,firmware = "image-vpl";
fit,loadables;
fit,compatible;
};
};
};
# ifdef CONFIG_BOOTMETH_VBE_ABREC
vbe-a {
type = "section";
offset = <CONFIG_SPL_PAD_TO>;
spl-a {
insert-template = <&spl_template>;
size = <0x100000>;
};
u-boot-a {
insert-template = <&fit_template>;
};
};
vbe-b {
type = "section";
offset = <0x1000000>;
spl-b {
insert-template = <&spl_template>;
size = <0x100000>;
};
u-boot-b {
insert-template = <&fit_template>;
};
};
vbe-recovery {
type = "section";
offset = <0x1800000>;
spl-recovery {
insert-template = <&spl_template>;
size = <0x100000>;
};
u-boot-recovery {
insert-template = <&fit_template>;
};
};
# else /* CONFIG_BOOTMETH_VBE_SIMPLE */
vbe {
type = "fit";
offset = <CONFIG_SPL_PAD_TO>;
insert-template = <&fit_template>;
};
# endif /* VBE method */
fdtmap {
};
};
};