All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw/ppc/ppc405_boards: Change kernel load address
@ 2021-12-02 19:14 Cédric Le Goater
  2021-12-02 19:17 ` Thomas Huth
  0 siblings, 1 reply; 12+ messages in thread
From: Cédric Le Goater @ 2021-12-02 19:14 UTC (permalink / raw)
  To: qemu-ppc, qemu-devel
  Cc: Christophe Leroy, Thomas Huth, Daniel Henrique Barboza,
	Greg Kurz, Cédric Le Goater, David Gibson

The default addresses to load the kernel, fdt, initrd of AMCC boards
in U-Boot v2015.10 are :

	"kernel_addr_r=1000000\0"
	"fdt_addr_r=1800000\0"
	"ramdisk_addr_r=1900000\0"

The taihu is one of these boards, the ref405ep is not but we don't
have much information on it and both boards have a very similar
address space layout. Change the kernel load address to match U-Boot
expectations and fix loading.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 hw/ppc/ppc405_boards.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/ppc/ppc405_boards.c b/hw/ppc/ppc405_boards.c
index 972a7a4a3e5d..b4249f4626e6 100644
--- a/hw/ppc/ppc405_boards.c
+++ b/hw/ppc/ppc405_boards.c
@@ -45,7 +45,7 @@
 #define BIOS_FILENAME "ppc405_rom.bin"
 #define BIOS_SIZE (2 * MiB)
 
-#define KERNEL_LOAD_ADDR 0x00000000
+#define KERNEL_LOAD_ADDR 0x01000000
 #define INITRD_LOAD_ADDR 0x01800000
 
 #define USE_FLASH_BIOS
-- 
2.31.1



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

end of thread, other threads:[~2021-12-08 16:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 19:14 [PATCH] hw/ppc/ppc405_boards: Change kernel load address Cédric Le Goater
2021-12-02 19:17 ` Thomas Huth
2021-12-02 19:19   ` Cédric Le Goater
2021-12-02 19:32     ` LEROY Christophe
2021-12-03 10:27       ` Cédric Le Goater
2021-12-03 10:31         ` Thomas Huth
2021-12-03 10:40           ` Peter Maydell
2021-12-03 12:25             ` Cédric Le Goater
2021-12-08 13:07               ` Thomas Huth
2021-12-08 13:15                 ` Cédric Le Goater
2021-12-08 13:19                   ` Thomas Huth
2021-12-08 16:54                     ` Cédric Le Goater

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.