mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-17 04:36:58 +02:00
riscv: sifive: unleashed: Switch to use binman to generate u-boot.itb
At present SiFive Unleashed board uses the Makefile to create the FIT, using USE_SPL_FIT_GENERATOR, which is deprecated as per the Makefile warning. Update to use binman instead. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
73c2a8fb68
commit
0784510f74
70
arch/riscv/dts/binman.dtsi
Normal file
70
arch/riscv/dts/binman.dtsi
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
// 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
@fdt-SEQ {
|
||||||
|
description = "NAME";
|
||||||
|
type = "flat_dt";
|
||||||
|
compression = "none";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
default = "conf-1";
|
||||||
|
|
||||||
|
@conf-SEQ {
|
||||||
|
description = "NAME";
|
||||||
|
firmware = "opensbi";
|
||||||
|
loadables = "uboot";
|
||||||
|
fdt = "fdt-SEQ";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
@ -3,6 +3,7 @@
|
|||||||
* Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
|
* Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "binman.dtsi"
|
||||||
#include "fu540-c000-u-boot.dtsi"
|
#include "fu540-c000-u-boot.dtsi"
|
||||||
#include "fu540-hifive-unleashed-a00-ddr.dtsi"
|
#include "fu540-hifive-unleashed-a00-ddr.dtsi"
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
|||||||
def_bool y
|
def_bool y
|
||||||
select SIFIVE_FU540
|
select SIFIVE_FU540
|
||||||
select ENV_IS_IN_SPI_FLASH
|
select ENV_IS_IN_SPI_FLASH
|
||||||
|
select BINMAN
|
||||||
imply CMD_DHCP
|
imply CMD_DHCP
|
||||||
imply CMD_EXT2
|
imply CMD_EXT2
|
||||||
imply CMD_EXT4
|
imply CMD_EXT4
|
||||||
|
@ -14,6 +14,7 @@ CONFIG_RISCV_SMODE=y
|
|||||||
CONFIG_DISTRO_DEFAULTS=y
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
CONFIG_FIT=y
|
CONFIG_FIT=y
|
||||||
CONFIG_SPL_LOAD_FIT_ADDRESS=0x84000000
|
CONFIG_SPL_LOAD_FIT_ADDRESS=0x84000000
|
||||||
|
# CONFIG_USE_SPL_FIT_GENERATOR is not set
|
||||||
CONFIG_DISPLAY_CPUINFO=y
|
CONFIG_DISPLAY_CPUINFO=y
|
||||||
CONFIG_DISPLAY_BOARDINFO=y
|
CONFIG_DISPLAY_BOARDINFO=y
|
||||||
CONFIG_MISC_INIT_R=y
|
CONFIG_MISC_INIT_R=y
|
||||||
|
Loading…
Reference in New Issue
Block a user