mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 12:32:13 +02:00
In 5c6064 the qemuarm* machines gained vmalloc=256, because in testing Bruce was seeing problems when the vmalloc area was too big for the memory size of the machine (eg 256MB). The intention was for the area to be very small, but 256 bytes is too small and the kernel sets a minimal vmalloc area of 16MiB: [ 0.000000] vmalloc area is too small, limiting to 16MiB However, a 16MiB area is too small and results in pages of messages when you try and use the system: [ 242.822481] vmap allocation for size 4100096 failed: use vmalloc=<size> to increase size There have been a number of changes since this commit, remove the explicit vmalloc argument and use the default. I've tested that the system still boots locally. [1] early_vmalloc(), https://elixir.bootlin.com/linux/latest/source/arch/arm/mm/mmu.c#L1170 (From OE-Core rev: 816dd95320ba2e4a0f6b816e4f58999c0f235ae2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
#@TYPE: Machine
|
|
#@NAME: QEMU Arm Cortex-A15 machine
|
|
#@DESCRIPTION: Machine configuration for running an ARMv7 system on QEMU
|
|
|
|
require conf/machine/include/arm/armv7a/tune-cortexa15.inc
|
|
require conf/machine/include/qemu.inc
|
|
|
|
KERNEL_IMAGETYPE = "zImage"
|
|
|
|
UBOOT_MACHINE ?= "qemu_arm_defconfig"
|
|
|
|
SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
|
|
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
|
|
|
# For runqemu
|
|
QB_SYSTEM_NAME = "qemu-system-arm"
|
|
QB_MACHINE = "-machine virt,highmem=off"
|
|
QB_CPU = "-cpu cortex-a15"
|
|
QB_SMP ?= "-smp 4"
|
|
# For graphics to work we need to define the VGA device as well as the necessary USB devices
|
|
QB_GRAPHICS = "-device virtio-gpu-pci"
|
|
QB_OPT_APPEND = "-device qemu-xhci -device usb-tablet -device usb-kbd"
|
|
# Virtio Networking support
|
|
QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
|
|
QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
|
|
# Virtio block device
|
|
QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
|
|
# Virtio serial console
|
|
QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
|
|
QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"
|
|
|
|
KMACHINE:qemuarm = "qemuarma15"
|