]> code.ossystems Code Review - openembedded-core.git/commitdiff
machine/qemuarm*: add vmalloc kernel parameter
authorBruce Ashfield <bruce.ashfield@gmail.com>
Mon, 28 Dec 2020 22:31:10 +0000 (17:31 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jan 2021 13:48:06 +0000 (13:48 +0000)
On kernel's v5.11+, we get the following warning after boot:

  [   47.287826] vmap allocation for size 3149824 failed: use vmalloc=<size> to increase size

It can be fixed by passing the vmalloc page size explicitly for our ARM
machines.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
meta/conf/machine/qemuarm.conf
meta/conf/machine/qemuarmv5.conf

index 702b850cbb0742322409a257f1298a2dd4b4ba1c..257cfa3e63eaed7b35a3e63ff3dbfdfb887ecc2a 100644 (file)
@@ -17,7 +17,7 @@ QB_SYSTEM_NAME = "qemu-system-arm"
 QB_MACHINE = "-machine virt,highmem=off"
 QB_CPU = "-cpu cortex-a15"
 # Standard Serial console
-QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0"
+QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 vmalloc=256"
 # For graphics to work we need to define the VGA device as well as the necessary USB devices
 QB_OPT_APPEND = "-device VGA,edid=on"
 QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
index 7e8c9e1fa65ca0e654dfa7e8abda87e889e31d6f..89328977b058ca9ba5bf75947c89bfcd0c4b3874 100644 (file)
@@ -12,7 +12,7 @@ SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;ttyAMA1"
 # For runqemu
 QB_SYSTEM_NAME = "qemu-system-arm"
 QB_MACHINE = "-machine versatilepb"
-QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty"
+QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty vmalloc=256"
 QB_OPT_APPEND = "-usb -device usb-tablet"
 PREFERRED_VERSION_linux-yocto ??= "5.8%"
 QB_DTB = "${@oe.utils.version_less_or_equal('PREFERRED_VERSION_linux-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}"