mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 01:19:49 +00:00
b05cebb5f2
All i.MX8MQ boards have been converted to binman, which makes it
necessary to flash both flash.bin and u-boot.itb to get a bootable
system. Prior to the conversion, only flash.bin was needed.
Such new requirement breaks existing distro mechanisms to generate the
final binary because the extra u-boot.itb is now required.
Generate a final flash.bin that can be used again as a single bootable
binary to keep the original behavior.
After this change the SPL binary is called spl.bin, which is a more
descriptive name for its purpose, and can still be used standalone (for
example, for secure boot purposes).
Also update imx8mq_evk.rst to remove the u-boot.itb copy step.
This is a cherry-pick of 028abfd9b1
("imx8mm-evk: Generate a single
bootable flash.bin again") adjusted to apply to i.MX8MQ.
Signed-off-by: Patrick Wildt <patrick@blueri.se>
Reviewed-by: Fabio Estevam <festevam@denx.de>
139 lines
2.1 KiB
Text
139 lines
2.1 KiB
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2021 NXP
|
|
*/
|
|
|
|
/ {
|
|
binman: binman {
|
|
multiple-images;
|
|
};
|
|
|
|
};
|
|
|
|
&binman {
|
|
u-boot-spl-ddr {
|
|
filename = "u-boot-spl-ddr.bin";
|
|
pad-byte = <0xff>;
|
|
align-size = <4>;
|
|
align = <4>;
|
|
|
|
u-boot-spl {
|
|
align-end = <4>;
|
|
};
|
|
|
|
blob_1: blob-ext@1 {
|
|
filename = "lpddr4_pmu_train_1d_imem.bin";
|
|
size = <0x8000>;
|
|
};
|
|
|
|
blob_2: blob-ext@2 {
|
|
filename = "lpddr4_pmu_train_1d_dmem.bin";
|
|
size = <0x4000>;
|
|
};
|
|
|
|
blob_3: blob-ext@3 {
|
|
filename = "lpddr4_pmu_train_2d_imem.bin";
|
|
size = <0x8000>;
|
|
};
|
|
|
|
blob_4: blob-ext@4 {
|
|
filename = "lpddr4_pmu_train_2d_dmem.bin";
|
|
size = <0x4000>;
|
|
};
|
|
};
|
|
|
|
signed_hdmi {
|
|
filename = "signed_hdmi.bin";
|
|
|
|
blob_5: blob-ext@5 {
|
|
filename = "signed_hdmi_imx8m.bin";
|
|
};
|
|
};
|
|
|
|
spl {
|
|
filename = "spl.bin";
|
|
|
|
mkimage {
|
|
args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
|
|
|
|
blob {
|
|
filename = "u-boot-spl-ddr.bin";
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
itb {
|
|
filename = "u-boot.itb";
|
|
|
|
fit {
|
|
description = "Configuration to load ATF before U-Boot";
|
|
#address-cells = <1>;
|
|
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
|
|
|
images {
|
|
uboot {
|
|
description = "U-Boot (64-bit)";
|
|
type = "standalone";
|
|
arch = "arm64";
|
|
compression = "none";
|
|
load = <CONFIG_SYS_TEXT_BASE>;
|
|
|
|
uboot_blob: blob-ext {
|
|
filename = "u-boot-nodtb.bin";
|
|
};
|
|
};
|
|
|
|
atf {
|
|
description = "ARM Trusted Firmware";
|
|
type = "firmware";
|
|
arch = "arm64";
|
|
compression = "none";
|
|
load = <0x910000>;
|
|
entry = <0x910000>;
|
|
|
|
atf_blob: blob-ext {
|
|
filename = "bl31.bin";
|
|
};
|
|
};
|
|
|
|
fdt {
|
|
description = "NAME";
|
|
type = "flat_dt";
|
|
compression = "none";
|
|
|
|
uboot_fdt_blob: blob-ext {
|
|
filename = "u-boot.dtb";
|
|
};
|
|
};
|
|
};
|
|
|
|
configurations {
|
|
default = "conf";
|
|
|
|
conf {
|
|
description = "NAME";
|
|
firmware = "uboot";
|
|
loadables = "atf";
|
|
fdt = "fdt";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
imx-boot {
|
|
filename = "flash.bin";
|
|
pad-byte = <0x00>;
|
|
|
|
spl: blob-ext@1 {
|
|
offset = <0x0>;
|
|
filename = "spl.bin";
|
|
};
|
|
|
|
uboot: blob-ext@2 {
|
|
offset = <0x57c00>;
|
|
filename = "u-boot.itb";
|
|
};
|
|
};
|
|
};
|