All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "booti/bootm: riscv: Verify image arch type"
@ 2025-05-29  3:30 Mayuresh Chitale
  2025-05-29  3:30 ` [PATCH] Revert "riscv: Select appropriate image type" Mayuresh Chitale
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Mayuresh Chitale @ 2025-05-29  3:30 UTC (permalink / raw)
  To: trini; +Cc: Mayuresh Chitale, u-boot

This reverts commit 37b0b22d8b7bbed6aa95b6daed06dcbf4a66f211 as
discussed in [1].

[1] https://lists.denx.de/pipermail/u-boot/2025-May/590841.html

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
---
 arch/riscv/lib/bootm.c | 4 ----
 cmd/booti.c            | 7 ++-----
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c
index c98c5e76633..9544907ab1e 100644
--- a/arch/riscv/lib/bootm.c
+++ b/arch/riscv/lib/bootm.c
@@ -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,
diff --git a/cmd/booti.c b/cmd/booti.c
index ced2c1047ab..1a57fe91397 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -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;
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-02 12:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29  3:30 [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Mayuresh Chitale
2025-05-29  3:30 ` [PATCH] Revert "riscv: Select appropriate image type" Mayuresh Chitale
2025-06-02  8:10   ` Leo Liang
2025-05-29  3:30 ` [PATCH] Revert "riscv: image: Add new image type for RV64" Mayuresh Chitale
2025-06-02  8:11   ` Leo Liang
2025-06-02  8:09 ` [PATCH] Revert "booti/bootm: riscv: Verify image arch type" Leo Liang
2025-06-02 12:09 ` Quentin Schulz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.