From patchwork Mon Sep 11 13:45:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 30289 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D02D5EEB580 for ; Mon, 11 Sep 2023 13:45:51 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.58820.1694439949502163582 for ; Mon, 11 Sep 2023 06:45:49 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E0983D75; Mon, 11 Sep 2023 06:46:25 -0700 (PDT) Received: from oss-tx204.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 51B9D3F766; Mon, 11 Sep 2023 06:45:48 -0700 (PDT) From: ross.burton@arm.com To: meta-arm@lists.yoctoproject.org Cc: nd@arm.com Subject: [PATCH 1/3] arm/generic-arm64: move SERIAL_CONSOLES to generic-arm64 Date: Mon, 11 Sep 2023 14:45:43 +0100 Message-Id: <20230911134545.426509-1-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 11 Sep 2023 13:45:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5029 From: Ross Burton 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. Signed-off-by: Ross Burton --- meta-arm/conf/machine/generic-arm64.conf | 3 +++ meta-arm/conf/machine/qemu-generic-arm64.conf | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-arm/conf/machine/generic-arm64.conf b/meta-arm/conf/machine/generic-arm64.conf index 2ee78056..27a0a2f1 100644 --- a/meta-arm/conf/machine/generic-arm64.conf +++ b/meta-arm/conf/machine/generic-arm64.conf @@ -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}" diff --git a/meta-arm/conf/machine/qemu-generic-arm64.conf b/meta-arm/conf/machine/qemu-generic-arm64.conf index 717a45c9..edd15475 100644 --- a/meta-arm/conf/machine/qemu-generic-arm64.conf +++ b/meta-arm/conf/machine/qemu-generic-arm64.conf @@ -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 From patchwork Mon Sep 11 13:45:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 30288 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC285EE7FF4 for ; Mon, 11 Sep 2023 13:45:51 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.58822.1694439950506707748 for ; Mon, 11 Sep 2023 06:45:50 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A8E6A1007; Mon, 11 Sep 2023 06:46:26 -0700 (PDT) Received: from oss-tx204.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 120CE3F766; Mon, 11 Sep 2023 06:45:48 -0700 (PDT) From: ross.burton@arm.com To: meta-arm@lists.yoctoproject.org Cc: nd@arm.com Subject: [PATCH 2/3] arm/qemu-generic-arm64: force off KVM in qemu Date: Mon, 11 Sep 2023 14:45:44 +0100 Message-Id: <20230911134545.426509-2-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230911134545.426509-1-ross.burton@arm.com> References: <20230911134545.426509-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 11 Sep 2023 13:45:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5030 From: Ross Burton The sbsa-ref machine can't use KVM because it's an entire emulated machine, not a virtual machine. Signed-off-by: Ross Burton --- meta-arm/conf/machine/qemu-generic-arm64.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-arm/conf/machine/qemu-generic-arm64.conf b/meta-arm/conf/machine/qemu-generic-arm64.conf index edd15475..6925854f 100644 --- a/meta-arm/conf/machine/qemu-generic-arm64.conf +++ b/meta-arm/conf/machine/qemu-generic-arm64.conf @@ -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" From patchwork Mon Sep 11 13:45:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 30287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF26AEE57DF for ; Mon, 11 Sep 2023 13:45:51 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.58752.1694439950667126975 for ; Mon, 11 Sep 2023 06:45:50 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 725FDD75; Mon, 11 Sep 2023 06:46:27 -0700 (PDT) Received: from oss-tx204.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CF5643F766; Mon, 11 Sep 2023 06:45:49 -0700 (PDT) From: ross.burton@arm.com To: meta-arm@lists.yoctoproject.org Cc: nd@arm.com Subject: [PATCH 3/3] arm/generic-arm64: set XSERVER to install the modesetting driver Date: Mon, 11 Sep 2023 14:45:45 +0100 Message-Id: <20230911134545.426509-3-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230911134545.426509-1-ross.burton@arm.com> References: <20230911134545.426509-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 11 Sep 2023 13:45:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5031 From: Ross Burton 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. Signed-off-by: Ross Burton --- meta-arm/conf/machine/generic-arm64.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-arm/conf/machine/generic-arm64.conf b/meta-arm/conf/machine/generic-arm64.conf index 27a0a2f1..2e82e86a 100644 --- a/meta-arm/conf/machine/generic-arm64.conf +++ b/meta-arm/conf/machine/generic-arm64.conf @@ -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 \ + "