summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Mason <jon.mason@arm.com>2025-10-06 10:24:36 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:15:35 +0000
commit26a27a3037530ca970bc2d9ec902d722a857a4bb (patch)
tree2a52c2057625ae226ea5bf21ab60cac3f6d56a47
parent6dbc48f7f2db2d9e544e030ee003777b542eb97c (diff)
downloadpoky-26a27a3037530ca970bc2d9ec902d722a857a4bb.tar.gz
runqemu: remove setting of mem on kernel command line for certain systems
Some emulated hardware will not boot if mem is set on the kernel command line (all of the Raspberry Pi machines seemed to fail with this set, possibly many others). Also, it is not necessary if the device tree file is present, as that _should_ have the memory size specified in it. Add a check for QB_DTB and don't set mem in the kernel command line if present. (From OE-Core rev: cf3524dbd536c206a49e06da8bb1067900fdc777) Signed-off-by: Jon Mason <jon.mason@arm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 2be7a0f286..370b455781 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -884,7 +884,7 @@ to your build configuration.
884 self.set('QB_MEM', qb_mem) 884 self.set('QB_MEM', qb_mem)
885 885
886 mach = self.get('MACHINE') 886 mach = self.get('MACHINE')
887 if not mach.startswith(('qemumips', 'qemux86', 'qemuloongarch64')): 887 if not mach.startswith(('qemumips', 'qemux86', 'qemuloongarch64')) and self.get('QB_DTB') == "":
888 self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M' 888 self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M'
889 889
890 self.qemu_opt_script += ' %s' % self.get('QB_MEM') 890 self.qemu_opt_script += ' %s' % self.get('QB_MEM')