Skip to contentSkip to conversation

arm/generic-arm64: move SERIAL_CONSOLES to generic-arm64

PATCH Applied [email protected] 2 participants 4 messages Sep 11, 2023 – Sep 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 arm/generic-arm64: move SERIAL_CONSOLES to generic-arm64

From: Ross Burton <[email protected]>

The consoles to use isn't specific to the qemu machine, and without a value results in no serial consoles when running on real hardware under sysvinit.

---
 meta-arm/conf/machine/generic-arm64.conf      | 3 +++
 meta-arm/conf/machine/qemu-generic-arm64.conf | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)
meta-arm/conf/machine/generic-arm64.conf +3 -0
index 2ee78056..27a0a2f1 100644
@@ -16,3 +16,6 @@ WKS_FILE ?= "efi-disk.wks.in"
 EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}"
 
 MACHINE_FEATURES:append = " alsa bluetooth efi qemu-usermode rtc screen usbhost vfat wifi"
+
+SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
+SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
meta-arm/conf/machine/qemu-generic-arm64.conf +0 -3
index 717a45c9..edd15475 100644
@@ -8,9 +8,6 @@ MACHINEOVERRIDES =. "generic-arm64:"
 require conf/machine/generic-arm64.conf
 require conf/machine/include/qemu.inc
 
-SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
-SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
-
 EXTRA_IMAGEDEPENDS += "edk2-firmware"
 
 # This unique WIC file is necessary because kernel boot args cannot be passed
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/3 arm/qemu-generic-arm64: force off KVM in qemu

From: Ross Burton <[email protected]>

The sbsa-ref machine can't use KVM because it's an entire emulated machine, not a virtual machine.

---
 meta-arm/conf/machine/qemu-generic-arm64.conf | 2 ++
 1 file changed, 2 insertions(+)
meta-arm/conf/machine/qemu-generic-arm64.conf +2 -0
index edd15475..6925854f 100644
@@ -30,3 +30,5 @@ QB_DEFAULT_KERNEL = "none"
 QB_OPT_APPEND = "-device qemu-xhci -device usb-tablet -device usb-kbd -pflash @DEPLOY_DIR_IMAGE@/SBSA_FLASH0.fd -pflash @DEPLOY_DIR_IMAGE@/SBSA_FLASH1.fd"
 QB_SERIAL_OPT = "-device virtio-serial-pci -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
 QB_TCPSERIAL_OPT = "-device virtio-serial-pci -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"
+# sbsa-ref is a true virtual machine so can't use KVM
+QEMU_USE_KVM = "0"
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/3 arm/generic-arm64: set XSERVER to install the modesetting driver

In reply to [email protected]

From: Ross Burton <[email protected]>

The default XSERVER only pulls in the framebuffer driver, which is pretty broken with modern kernels and the modesetting driver is a lot more functional.

---
 meta-arm/conf/machine/generic-arm64.conf | 5 +++++
 1 file changed, 5 insertions(+)
meta-arm/conf/machine/generic-arm64.conf +5 -0
index 27a0a2f1..2e82e86a 100644
@@ -19,3 +19,8 @@ MACHINE_FEATURES:append = " alsa bluetooth efi qemu-usermode rtc screen usbhost
 
 SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
 SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
+
+XSERVER ?= "xserver-xorg \
+            xf86-video-fbdev \
+            xf86-video-modesetting \
+            "
Signature · 1 line
2.34.1
Applied
#3 lore raw
In reply to [email protected]
Quoted 5 lines · On Mon, 11 Sep 2023 14:45:43 +0100, [email protected] wrote:

The consoles to use isn't specific to the qemu machine, and without a value results in no serial consoles when running on real hardware under sysvinit.

Applied, thanks!

[1/3] arm/generic-arm64: move SERIAL_CONSOLES to generic-arm64

      commit: b42bdbb7d6d1a34cff1e4ecde7bbccbb91867919
[2/3] arm/qemu-generic-arm64: force off KVM in qemu
      commit: 333719ea3efb0c24443b3408e651f4d236182ef6
[3/3] arm/generic-arm64: set XSERVER to install the modesetting driver
      commit: 3748fc07d2930723d4eb5adf4f3dc924b95392dd

Best regards,

Signature · 1 line
Jon Mason <[email protected]>