2021-05-10 12:23:35 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
binman: binman {
|
|
|
|
multiple-images;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&binman {
|
|
|
|
itb {
|
|
|
|
filename = "u-boot.itb";
|
|
|
|
|
|
|
|
fit {
|
|
|
|
description = "Configuration to load OpenSBI before U-Boot";
|
|
|
|
#address-cells = <1>;
|
|
|
|
fit,fdt-list = "of-list";
|
|
|
|
|
|
|
|
images {
|
|
|
|
uboot {
|
|
|
|
description = "U-Boot";
|
|
|
|
type = "standalone";
|
|
|
|
os = "U-Boot";
|
|
|
|
arch = "riscv";
|
|
|
|
compression = "none";
|
|
|
|
load = <CONFIG_SYS_TEXT_BASE>;
|
|
|
|
|
|
|
|
uboot_blob: blob-ext {
|
|
|
|
filename = "u-boot-nodtb.bin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
opensbi {
|
|
|
|
description = "OpenSBI fw_dynamic Firmware";
|
|
|
|
type = "firmware";
|
|
|
|
os = "opensbi";
|
|
|
|
arch = "riscv";
|
|
|
|
compression = "none";
|
|
|
|
load = <CONFIG_SPL_OPENSBI_LOAD_ADDR>;
|
|
|
|
entry = <CONFIG_SPL_OPENSBI_LOAD_ADDR>;
|
|
|
|
|
|
|
|
opensbi_blob: opensbi {
|
|
|
|
filename = "fw_dynamic.bin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-10-11 21:00:13 +00:00
|
|
|
#ifndef CONFIG_OF_BOARD
|
2021-05-10 12:23:35 +00:00
|
|
|
@fdt-SEQ {
|
|
|
|
description = "NAME";
|
|
|
|
type = "flat_dt";
|
|
|
|
compression = "none";
|
|
|
|
};
|
2021-05-10 12:23:39 +00:00
|
|
|
#endif
|
2021-05-10 12:23:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
default = "conf-1";
|
|
|
|
|
2021-10-11 21:00:13 +00:00
|
|
|
#ifndef CONFIG_OF_BOARD
|
2021-05-10 12:23:35 +00:00
|
|
|
@conf-SEQ {
|
2021-05-10 12:23:39 +00:00
|
|
|
#else
|
|
|
|
conf-1 {
|
|
|
|
#endif
|
2021-05-10 12:23:35 +00:00
|
|
|
description = "NAME";
|
|
|
|
firmware = "opensbi";
|
|
|
|
loadables = "uboot";
|
2021-10-11 21:00:13 +00:00
|
|
|
#ifndef CONFIG_OF_BOARD
|
2021-05-10 12:23:35 +00:00
|
|
|
fdt = "fdt-SEQ";
|
2021-05-10 12:23:39 +00:00
|
|
|
#endif
|
2021-05-10 12:23:35 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|