From 0b3f25fb5d94e604aeee0de36d1bfbde72e0a314 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 21 May 2026 16:44:58 -0500 Subject: [PATCH] Configure the sh4 target to use more memory, which requires the qemu patch I sent to the qemu-devel list back in January: https://lists.gnu.org/archive/html/qemu-devel/2026-01/msg06318.html The kernel and qemu have to agree where the start of memory is or it can't find its -append argument string (saying console=ttyS0). To run an old sh4 image with the patched qemu, change run-qemu.sh to say "-m 64". (Previously the value was ignored, I.E. always 64.) --- mkroot/mkroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkroot/mkroot.sh b/mkroot/mkroot.sh index fca9bee5..2b57065c 100755 --- a/mkroot/mkroot.sh +++ b/mkroot/mkroot.sh @@ -300,7 +300,7 @@ get_target_config() KCONF="$(be2csv CPU_SUBTYPE_SH7751R MMU VSYSCALL SH_{FPU,RTS7751R2D} PCI \ RTS7751R2D_PLUS SERIAL_SH_SCI{,_CONSOLE} NET_VENDOR_REALTEK 8139CP \ BLK_DEV_SD ATA{,_SFF,_BMDMA} PATA_PLATFORM BINFMT_ELF_FDPIC \ - CMDLINE_FROM_BOOTLOADER MEMORY_START=0x0c000000)" + CMDLINE_FROM_BOOTLOADER MEMORY_START=0x04100000 MEMORY_SIZE=0x0bf00000)" #see also SPI{,_SH_SCI} MFD_SM501 RTC_{CLASS,DRV_{R9701,SH},HCTOSYS} [ "$CROSS" == sh4eb ] && KCONF+=,CPU_BIG_ENDIAN else die "Unknown \$CROSS=$CROSS" -- 2.39.5