]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
runqemu: avoid setting "mem=" when using a DTB
authorJon Mason <jon.mason@arm.com>
Thu, 13 Nov 2025 15:18:01 +0000 (10:18 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Nov 2025 11:09:03 +0000 (11:09 +0000)
commitcf24c5c12017c1c8a117e2a1724184d639737258
treed3add8fc9c5787de69e6ca18748b796bdee028f2
parent116d7fc8dd940c781d5ee0801d3ddfb79a82d357
runqemu: avoid setting "mem=" when using a DTB

Some emulated machines, such as the Raspberry Pi models, fail to boot
if a fixed "mem=" value is passed on the kernel command line. When a
DTB is used (QB_DTB is set), the memory size is already defined there,
so specifying it again is unnecessary and can cause issues.

Skip adding "mem=" to the kernel command line when QB_DTB is present.

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>
scripts/runqemu