mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 02:51:00 +00:00
74d3b2311d
When reading images from a file, each entry's data is read from its parent section as specified in the Entry.Create() call that created it. The FIT entry type has been creating its subentries under its parent (their grandparent), as creating them under the FIT entry resulted in an error until FIT was converted into a proper section. FIT subentries have their offsets relative to the FIT section, and reading those offsets in the parent section results in wrong data. The subentries rightfully belong under the FIT entries, so create them there. Add tests checking that we can extract the correct data for a FIT entry and its subentries. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
74 lines
1,018 B
Text
74 lines
1,018 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
binman {
|
|
allow-repack;
|
|
|
|
fill {
|
|
size = <0x1000>;
|
|
fill-byte = [77];
|
|
};
|
|
|
|
fit {
|
|
description = "test-desc";
|
|
#address-cells = <1>;
|
|
|
|
images {
|
|
kernel {
|
|
description = "test u-boot";
|
|
type = "kernel";
|
|
arch = "arm64";
|
|
os = "linux";
|
|
compression = "none";
|
|
load = <00000000>;
|
|
entry = <00000000>;
|
|
|
|
u-boot {
|
|
};
|
|
};
|
|
|
|
fdt-1 {
|
|
description = "test u-boot-nodtb";
|
|
type = "flat_dt";
|
|
arch = "arm64";
|
|
compression = "none";
|
|
|
|
u-boot-nodtb {
|
|
};
|
|
};
|
|
|
|
scr-1 {
|
|
description = "test blob";
|
|
type = "script";
|
|
arch = "arm64";
|
|
compression = "none";
|
|
|
|
blob {
|
|
filename = "compress";
|
|
};
|
|
};
|
|
};
|
|
|
|
configurations {
|
|
default = "conf-1";
|
|
|
|
conf-1 {
|
|
description = "Kernel with FDT blob";
|
|
kernel = "kernel";
|
|
fdt = "fdt-1";
|
|
};
|
|
};
|
|
};
|
|
|
|
u-boot-dtb {
|
|
};
|
|
|
|
fdtmap {
|
|
};
|
|
};
|
|
};
|