Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] scripts/runqemu: Fix memory limits for qemux86-64
@ 2022-03-14 17:57 Richard Purdie
  2022-03-14 17:57 ` [PATCH 2/2] shadow-native: Simplify and fix syslog disable patch Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2022-03-14 17:57 UTC (permalink / raw)
  To: openembedded-core

When setting memory to 4GB, qemu is only running with 2GB for x86_64.
Avoid this by removing the mem= option to the kernel and letting the
qemu configuration handle it for x86 in a similar way to mips.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 9ddd47267c9..2f77a7bd0f2 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -814,7 +814,7 @@ class BaseConfig(object):
         self.set('QB_MEM', qb_mem)
 
         mach = self.get('MACHINE')
-        if not mach.startswith('qemumips'):
+        if not mach.startswith(('qemumips', 'qemux86')):
             self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M'
 
         self.qemu_opt_script += ' %s' % self.get('QB_MEM')
-- 
2.32.0



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

end of thread, other threads:[~2022-03-14 23:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-14 17:57 [PATCH 1/2] scripts/runqemu: Fix memory limits for qemux86-64 Richard Purdie
2022-03-14 17:57 ` [PATCH 2/2] shadow-native: Simplify and fix syslog disable patch Richard Purdie
2022-03-14 19:10   ` [OE-core] " Peter Kjellerstedt
2022-03-14 23:00     ` Richard Purdie

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