Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-riscv
CI: https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/26455 Thanks Conor and Yao for catching this issue. - Revert "RISC-V 32/64 images support" to fix compatibility issue
This commit is contained in:
@@ -5,12 +5,6 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef CONFIG_64BIT
|
||||
#define ARCH "riscv64"
|
||||
#else
|
||||
#define ARCH "riscv"
|
||||
|
||||
#endif
|
||||
/ {
|
||||
binman: binman {
|
||||
multiple-images;
|
||||
@@ -37,7 +31,7 @@
|
||||
description = "U-Boot";
|
||||
type = "standalone";
|
||||
os = "U-Boot";
|
||||
arch = ARCH;
|
||||
arch = "riscv";
|
||||
compression = "none";
|
||||
load = /bits/ 64 <CONFIG_TEXT_BASE>;
|
||||
|
||||
@@ -49,7 +43,7 @@
|
||||
description = "Linux";
|
||||
type = "standalone";
|
||||
os = "Linux";
|
||||
arch = ARCH;
|
||||
arch = "riscv";
|
||||
compression = "none";
|
||||
load = /bits/ 64 <CONFIG_TEXT_BASE>;
|
||||
|
||||
@@ -62,7 +56,7 @@
|
||||
tee {
|
||||
description = "OP-TEE";
|
||||
type = "tee";
|
||||
arch = ARCH;
|
||||
arch = "riscv";
|
||||
compression = "none";
|
||||
os = "tee";
|
||||
load = /bits/ 64 <CONFIG_SPL_OPTEE_LOAD_ADDR>;
|
||||
@@ -76,7 +70,7 @@
|
||||
description = "OpenSBI fw_dynamic Firmware";
|
||||
type = "firmware";
|
||||
os = "opensbi";
|
||||
arch = ARCH;
|
||||
arch = "riscv";
|
||||
compression = "none";
|
||||
load = /bits/ 64 <CONFIG_SPL_OPENSBI_LOAD_ADDR>;
|
||||
entry = /bits/ 64 <CONFIG_SPL_OPENSBI_LOAD_ADDR>;
|
||||
|
||||
@@ -23,10 +23,6 @@
|
||||
#include <asm/u-boot-riscv.h>
|
||||
|
||||
/* For image.h:image_check_target_arch() */
|
||||
#ifdef CONFIG_64BIT
|
||||
#define IH_ARCH_DEFAULT IH_ARCH_RISCV64
|
||||
#else
|
||||
#define IH_ARCH_DEFAULT IH_ARCH_RISCV
|
||||
#endif
|
||||
|
||||
#endif /* _U_BOOT_H_ */
|
||||
|
||||
@@ -90,10 +90,6 @@ static void boot_jump_linux(struct bootm_headers *images, int flag)
|
||||
announce_and_cleanup(fake);
|
||||
|
||||
if (!fake) {
|
||||
if (images->os.arch != IH_ARCH_DEFAULT) {
|
||||
printf("Image arch not compatible with host arch.\n");
|
||||
hang();
|
||||
}
|
||||
if (CONFIG_IS_ENABLED(OF_LIBFDT) && images->ft_len) {
|
||||
#ifdef CONFIG_SMP
|
||||
ret = smp_call_function(images->ep,
|
||||
|
||||
+1
-2
@@ -92,8 +92,7 @@ static const table_entry_t uimage_arch[] = {
|
||||
{ IH_ARCH_ARC, "arc", "ARC", },
|
||||
{ IH_ARCH_X86_64, "x86_64", "AMD x86_64", },
|
||||
{ IH_ARCH_XTENSA, "xtensa", "Xtensa", },
|
||||
{ IH_ARCH_RISCV, "riscv", "RISC-V 32 Bit",},
|
||||
{ IH_ARCH_RISCV64, "riscv64", "RISC-V 64 Bit",},
|
||||
{ IH_ARCH_RISCV, "riscv", "RISC-V", },
|
||||
{ -1, "", "", },
|
||||
};
|
||||
|
||||
|
||||
+2
-5
@@ -130,11 +130,8 @@ int do_booti(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
bootm_disable_interrupts();
|
||||
|
||||
images.os.os = IH_OS_LINUX;
|
||||
if (IS_ENABLED(CONFIG_RISCV))
|
||||
if (IS_ENABLED(CONFIG_64BIT))
|
||||
images.os.arch = IH_ARCH_RISCV64;
|
||||
else
|
||||
images.os.arch = IH_ARCH_RISCV;
|
||||
if (IS_ENABLED(CONFIG_RISCV_SMODE))
|
||||
images.os.arch = IH_ARCH_RISCV;
|
||||
else if (IS_ENABLED(CONFIG_ARM64))
|
||||
images.os.arch = IH_ARCH_ARM64;
|
||||
|
||||
|
||||
+1
-2
@@ -138,8 +138,7 @@ enum {
|
||||
IH_ARCH_ARC, /* Synopsys DesignWare ARC */
|
||||
IH_ARCH_X86_64, /* AMD x86_64, Intel and Via */
|
||||
IH_ARCH_XTENSA, /* Xtensa */
|
||||
IH_ARCH_RISCV, /* RISC-V 32 bit*/
|
||||
IH_ARCH_RISCV64, /* RISC-V 64 bit*/
|
||||
IH_ARCH_RISCV, /* RISC-V */
|
||||
|
||||
IH_ARCH_COUNT,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user