]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
runqemu: resize rootfs image to power of 2 for SD or pflash
authorJon Mason <jon.mason@arm.com>
Wed, 1 Oct 2025 17:57:02 +0000 (13:57 -0400)
committerMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Fri, 3 Oct 2025 05:50:09 +0000 (07:50 +0200)
commit2273da858085739accd5c90bfca94f1556add82d
treeaf91d0c8be2fc348d43c7ac4a90a05b87cf64626
parentb9581d677d4a5d21635038e3abaa3cc0fc31a2ea
runqemu: resize rootfs image to power of 2 for SD or pflash

QEMU requires that SD and pflash images are sized to be a power of 2
(e.g., 32M, 64M, etc).  So, if the image being used is not a power of 2
and it's being used for SD or pflash, increase it to the next power of 2
size via the truncate command.

This might not be an actual spec requirement, and is being investigated
in https://gitlab.com/qemu-project/qemu/-/issues/1754

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
scripts/runqemu