public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH v3 1/2] runqemu: remove setting of mem on kernel command line for certain systems
@ 2025-10-06 14:24 Jon Mason
  2025-10-06 14:24 ` [PATCH v3 2/2] runqemu: resize rootfs image to power of 2 for SD or pflash Jon Mason
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Mason @ 2025-10-06 14:24 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 32c7a2aab3b5..a8144aa68c3d 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -884,7 +884,7 @@ to your build configuration.
         self.set('QB_MEM', qb_mem)
 
         mach = self.get('MACHINE')
-        if not mach.startswith(('qemumips', 'qemux86', 'qemuloongarch64')):
+        if not mach.startswith(('qemumips', 'qemux86', 'qemuloongarch64')) and self.get('QB_DTB') == "":
             self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M'
 
         self.qemu_opt_script += ' %s' % self.get('QB_MEM')
-- 
2.50.1 (Apple Git-155)



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

end of thread, other threads:[~2025-10-06 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 14:24 [PATCH v3 1/2] runqemu: remove setting of mem on kernel command line for certain systems Jon Mason
2025-10-06 14:24 ` [PATCH v3 2/2] runqemu: resize rootfs image to power of 2 for SD or pflash Jon Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox