From patchwork Fri Apr 8 19:25:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 6465 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 6D326C433FE for ; Fri, 8 Apr 2022 20:12:14 +0000 (UTC) Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) by mx.groups.io with SMTP id smtpd.web11.1109.1649445923727088493 for ; Fri, 08 Apr 2022 12:25:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kudzu-us.20210112.gappssmtp.com header.s=20210112 header.b=H3WY/oMj; spf=none, err=permanent DNS error (domain: kudzu.us, ip: 209.85.219.45, mailfrom: jdmason@kudzu.us) Received: by mail-qv1-f45.google.com with SMTP id x5so8258061qvk.4 for ; Fri, 08 Apr 2022 12:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=oB9GddHXWtvQyV/i8/5+jNWoH56YcPy3YCTyC3YKwGA=; b=H3WY/oMjiEi4WfDzeEOQY5RIGfZUrjYvrMOW/LDWdAoGvkFRSTi2vfO3X1vR01abJH yUlgLE93Lh0bhvrDZRKlx0jMyo1h+wmevb/D81aCvpK3Fz/0/rUqfvlpWR2GLBjF/2js +70+KUtUsQFgC/wa5nVrqEpEMqeR4VDOqGDAnQLWSiLRwoQIRcnqqIv2++fR28MAr2Rs +OLoASQWCOC4xbWp8KDMuUSXXCJSFzcefzp7jJogkTudrhaWkma5hy+X286cfiyTHPL7 tFeJm1rB/27y+Mk/l++yhErAEGPJgW8Cs4pcl+c9OxojquXC2nEcVr9wafnqZm9eTnQ+ hucw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oB9GddHXWtvQyV/i8/5+jNWoH56YcPy3YCTyC3YKwGA=; b=iIh2E+3dT1ErWi8tGdtimSEzr5NLRB+4WpALHOg6P6t2lrI1/e0HDBeOtByeZTgTQe rFXiepi1eIL6U4nJfeSxZbRKjlpSk1+nrEM5U19XqroRT5mu7/beSYUHxsjwrXwnfqq6 lQ7Fu2Y45QyXZXo/14cOEf/nxszjL1Zsd4/nVd8WtKE2rtzBOPAeenUHgfnXboYm9QT+ TodRLdXyJk7Jz5FWaQ+VKIfcI9jrt/6I3T3GbPVquAgn1kwtsqEKkgQPpt76JIujX378 1lZVEOiLXTMv3qEZHdBhhKvQwkRakBsrpIq+Pi+YD3tg8dpndPCMz84gdmGmurilqfdi w5IQ== X-Gm-Message-State: AOAM530kLw7g5Jcjqp4RT8sjUdMRXWb5/393ielR5Ils1Ks27oWiW2xM A749rpVD1qCuWnlyME7Pvz+Rb5j+rBfenw== X-Google-Smtp-Source: ABdhPJw8EkK4GpoUilfOviQv5Jn/V/CPqW6kTJ/BRkEZ6rC7M1V3BiLgOXPucQ8weFz4vtXDYpKwEA== X-Received: by 2002:a05:6214:4011:b0:443:e253:61fc with SMTP id kd17-20020a056214401100b00443e25361fcmr16940796qvb.110.1649445922768; Fri, 08 Apr 2022 12:25:22 -0700 (PDT) Received: from localhost ([2605:a601:a66c:b900:3b2f:a3a7:b707:646]) by smtp.gmail.com with ESMTPSA id r15-20020a05622a034f00b002ed0cc7d856sm1325945qtw.37.2022.04.08.12.25.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 12:25:22 -0700 (PDT) From: Jon Mason To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 1/6] linux-yocto: Remove unnecessary, commented out qemuarm entry Date: Fri, 8 Apr 2022 15:25:16 -0400 Message-Id: <20220408192521.1608764-2-jdmason@kudzu.us> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220408192521.1608764-1-jdmason@kudzu.us> References: <20220408192521.1608764-1-jdmason@kudzu.us> 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 ; Fri, 08 Apr 2022 20:12:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/164163 The line in question is already in place in qemuarm.conf. Remove it from here, as it is not necessary and references an older kernel. Signed-off-by: Jon Mason --- meta/recipes-kernel/linux/linux-yocto_5.10.bb | 3 --- meta/recipes-kernel/linux/linux-yocto_5.15.bb | 3 --- 2 files changed, 6 deletions(-) diff --git a/meta/recipes-kernel/linux/linux-yocto_5.10.bb b/meta/recipes-kernel/linux/linux-yocto_5.10.bb index 0cf14b748f05..06242ade6819 100644 --- a/meta/recipes-kernel/linux/linux-yocto_5.10.bb +++ b/meta/recipes-kernel/linux/linux-yocto_5.10.bb @@ -25,9 +25,6 @@ SRCREV_machine:qemumips64 ?= "279f142932679a8ba212ebae4b9db851636a1fab" SRCREV_machine ?= "d2f7a595bf0b752275d503046494b668549cb151" SRCREV_meta ?= "2278ed571c14df6e87d8e01ac26f649d98020623" -# remap qemuarm to qemuarma15 for the 5.8 kernel -# KMACHINE:qemuarm ?= "qemuarma15" - SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}; \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}" diff --git a/meta/recipes-kernel/linux/linux-yocto_5.15.bb b/meta/recipes-kernel/linux/linux-yocto_5.15.bb index 54157fd2452f..5cfa0c37d7be 100644 --- a/meta/recipes-kernel/linux/linux-yocto_5.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto_5.15.bb @@ -34,9 +34,6 @@ SRCREV_machine:class-devupstream ?= "e29be6724adbc9c3126d2a9550ec21f927f22f6d" PN:class-devupstream = "linux-yocto-upstream" KBRANCH:class-devupstream = "v5.15/base" -# remap qemuarm to qemuarma15 for the 5.8 kernel -# KMACHINE:qemuarm ?= "qemuarma15" - SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}; \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.15;destsuffix=${KMETA}" From patchwork Fri Apr 8 19:25:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 6463 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 7CA9CC43219 for ; Fri, 8 Apr 2022 20:12:14 +0000 (UTC) Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) by mx.groups.io with SMTP id smtpd.web08.1058.1649445924585079914 for ; Fri, 08 Apr 2022 12:25:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kudzu-us.20210112.gappssmtp.com header.s=20210112 header.b=7m7zbC9a; spf=none, err=permanent DNS error (domain: kudzu.us, ip: 209.85.160.182, mailfrom: jdmason@kudzu.us) Received: by mail-qt1-f182.google.com with SMTP id a11so11385320qtb.12 for ; Fri, 08 Apr 2022 12:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=na3r5BS4NIs/tBgM+2QiHIE/Qnx8Kg/cKTgIRujNAj0=; b=7m7zbC9aUkR3ovjMX2AL+tup+rvgnUUuRFHge+xPxwdQw6qGZZ+P+oYVHsN9npr5Md SxPNCLvvx+vvYsRVChaozpJf0OMCWVzwXPyy62+53nvbieaO5OEywk8LxD4ycA9Ie2Rw kxi71IosjlcTL7bl9DFKQn0Lik85bfWoGs11w3FWbh4XxZL6CPCxaSQ7KTAg5wn8aogH gzP+iCXK7+jQO8VMA5OlFG5+ui4Ye9A+L4Xpz74ebtiuFogphZzm/bfP6A5YxBxEj7wq ZgS4y8dzet9GK/45iKEXtwr4FL2rr0TLli+1yEEwkO/9i5VPWX947RpTaCspAEJcQR7/ rBtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=na3r5BS4NIs/tBgM+2QiHIE/Qnx8Kg/cKTgIRujNAj0=; b=Cjj0XP0URP9wDQjyDsN23f/+HQrc61ZEw7PeXpwsjYwYX46TR0gaNKG5V0S1xNZZzu GJdCpwMXtSpcyLuuVmC2S5tnvR+dGAmz+GFxc0ZYolc68RR13HHPtLZ6jmJM9aJUm/4v 3NMutiIm+vGULtVZauI1SfazulJcW3rAqrkdqa2MetLhXvdNhdRZuKPZOqxVMzOC7PWa YERSDIfB/xaMraZYNicOhbZSM5p9QsXg4zej7IolF5fY9G6iArrisiKnFEJkg9IuJ3EH PZvvcSjknetlj8CI5qY4dU00KH3DZP0nPVAyoPcfca7C6gI+JIQbLCunx3CwuAjLOfEl ZjSw== X-Gm-Message-State: AOAM530Pr9tqb/1Ah45S940DhimC90Ka9jsiLBpds/iqPVX66bCFg265 ez3mMryCCxk2xpNSrfGrNhOKurVd69Xcag== X-Google-Smtp-Source: ABdhPJya4sjt4ftpE4ehAKKR31lBdjM2xzkxF8r1hkymY+xJCy3/OygIMpiWbv8eHuEZ2pJXavWi+w== X-Received: by 2002:a05:622a:2cd:b0:2e1:db0c:88db with SMTP id a13-20020a05622a02cd00b002e1db0c88dbmr17087734qtx.649.1649445923629; Fri, 08 Apr 2022 12:25:23 -0700 (PDT) Received: from localhost ([2605:a601:a66c:b900:3b2f:a3a7:b707:646]) by smtp.gmail.com with ESMTPSA id f8-20020ac859c8000000b002e232e04cafsm19351678qtf.88.2022.04.08.12.25.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 12:25:23 -0700 (PDT) From: Jon Mason To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 2/6] qemuarm: use virtio device interface for graphics Date: Fri, 8 Apr 2022 15:25:17 -0400 Message-Id: <20220408192521.1608764-3-jdmason@kudzu.us> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220408192521.1608764-1-jdmason@kudzu.us> References: <20220408192521.1608764-1-jdmason@kudzu.us> 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 ; Fri, 08 Apr 2022 20:12:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/164164 For uniformity, use the virtio device interface, as all the other virtio devices for this machine are the non-PCI ones. Signed-off-by: Jon Mason --- meta/conf/machine/qemuarm.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf index 1bd4e3e154fc..12da1557efff 100644 --- a/meta/conf/machine/qemuarm.conf +++ b/meta/conf/machine/qemuarm.conf @@ -17,10 +17,9 @@ QB_SYSTEM_NAME = "qemu-system-arm" QB_MACHINE = "-machine virt,highmem=off" QB_CPU = "-cpu cortex-a15" QB_SMP = "-smp 4" -# Standard Serial console QB_KERNEL_CMDLINE_APPEND = "vmalloc=256" # 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_GRAPHICS = "-device virtio-gpu-device" 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" From patchwork Fri Apr 8 19:25:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 6464 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 7C967C4332F for ; Fri, 8 Apr 2022 20:12:14 +0000 (UTC) Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) by mx.groups.io with SMTP id smtpd.web09.1117.1649445925245195774 for ; Fri, 08 Apr 2022 12:25:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kudzu-us.20210112.gappssmtp.com header.s=20210112 header.b=6leZX1q1; spf=none, err=permanent DNS error (domain: kudzu.us, ip: 209.85.160.182, mailfrom: jdmason@kudzu.us) Received: by mail-qt1-f182.google.com with SMTP id o18so4306189qtk.7 for ; Fri, 08 Apr 2022 12:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=IhE4o6NRKaprKcg2n2oos2PdMdrK9lywaba4h7yA6zw=; b=6leZX1q1m1E9tEoOYlDe91AJIeIZl6xNX+lQkAvV9/0dQ6FZgsOVSOJJg2/1IsU/8/ X9aiQQb3NJ+bxNVUDm0MVVE3bbYll45EoFmfJF7Bt3hQ4fPAASVVdOIU4nDUt3JkyGjn ioMkk1UPVekiLGjutdhWOyQbzdWXntJBd14FbbQwkPxfGXzbrIua3TvbMUC0q2ALW92e yHDQeB6W3+OpARRLrfhEJTNhaVtbxYPEc4RlW7kiBbBC0zmQMt27WMNAgEvwS1eaxvdm thBuVK7H5qyY81Yq+Zoe2i5Szs54Dm0XaX1ZUpBU1/9JrcoKKU6R0OHqUKSYfFu808bV daJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IhE4o6NRKaprKcg2n2oos2PdMdrK9lywaba4h7yA6zw=; b=6gl6bw0cYRILHz4LOrWy72IAJ+bNp9P+pEjTiDdoOHVqOgRgLfDjFlaQK5PzVpdOJT OiNCSAgIfXteVlHlzlDgyJDd4l216VI0ctC+j8r8C68xCTlIkhaqQLaZ75nGOr4kruNL 1d6660LrGxccRZmKCS3H121QkqbGLWWPKNlGVFkrRgLiJP03XvqjFXTHlmVTcRO/mtsh 7C5Etgz+Bepm03AiYNb/0/Yo1RVfXCwNPwWhxccVqETq6m0kBOP9/97d4vdpK1At1GBG x36dfqUDW47h13jq5MKXpBUvUSD4RVdePQBW5pIcA/emUPOSmUrsnDtbzSz51JUA/fAX xUdQ== X-Gm-Message-State: AOAM530NVFmSKYLizdH9UDO7Xrj/w/aMhBbTVoaXIlOeAUH0V4VtnBjm PnwcdI6IZjUVsfggl6Ml4PMyx88ddj3HxQ== X-Google-Smtp-Source: ABdhPJzYvUceuUwdvh/hDrS1fI0bYo0/odZBmQqooMIBVI/rN3+h3I496X2d1+jD3O1XHa57n45FXA== X-Received: by 2002:ac8:43cc:0:b0:2eb:dc8a:d5c5 with SMTP id w12-20020ac843cc000000b002ebdc8ad5c5mr6201009qtn.663.1649445924284; Fri, 08 Apr 2022 12:25:24 -0700 (PDT) Received: from localhost ([2605:a601:a66c:b900:3b2f:a3a7:b707:646]) by smtp.gmail.com with ESMTPSA id g9-20020a05620a108900b0067b13036bd5sm14063367qkk.52.2022.04.08.12.25.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 12:25:24 -0700 (PDT) From: Jon Mason To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 3/6] qemuarm64: use virtio pci interfaces Date: Fri, 8 Apr 2022 15:25:18 -0400 Message-Id: <20220408192521.1608764-4-jdmason@kudzu.us> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220408192521.1608764-1-jdmason@kudzu.us> References: <20220408192521.1608764-1-jdmason@kudzu.us> 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 ; Fri, 08 Apr 2022 20:12:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/164165 The virtio PCI devices seemed to be required for this machine for some versions of qemu (based on errors from running qemu saying that the devices don't exist). Changes to the entries here is all that is needed to get it working. Signed-off-by: Jon Mason --- meta/conf/machine/qemuarm64.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf index f24515216838..ffc51c803fa7 100644 --- a/meta/conf/machine/qemuarm64.conf +++ b/meta/conf/machine/qemuarm64.conf @@ -23,9 +23,9 @@ 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@" +QB_NETWORK_DEVICE = "-device virtio-net-pci,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" +QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-pci,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" +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" From patchwork Fri Apr 8 19:25:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 6468 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 7D907C4321E for ; Fri, 8 Apr 2022 20:12:14 +0000 (UTC) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by mx.groups.io with SMTP id smtpd.web10.1124.1649445926045446408 for ; Fri, 08 Apr 2022 12:25:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kudzu-us.20210112.gappssmtp.com header.s=20210112 header.b=7uUi/TCt; spf=none, err=permanent DNS error (domain: kudzu.us, ip: 209.85.222.180, mailfrom: jdmason@kudzu.us) Received: by mail-qk1-f180.google.com with SMTP id j6so5628557qkp.9 for ; Fri, 08 Apr 2022 12:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=LXSpDibdIVgsTdbhrP36rFr1suuz40FZpCB3k8RCqkw=; b=7uUi/TCtKpy+YpKJG/fmzbA6sGjatb6N0o376f3d1m9L/oswF2VfONKJTcXBRNKVtk tAdDoRd1sNr+XUKHOFzxvlkvFEEfz/Y4M5BnrzhDnFmBCU+TWM2g1ZfJgOD8Scdj9OEn 1bFcXap1uLUAfc1VIP1VCEOGD8pRXYH87QDILNse7vOhC7UjzQUn+ei1ENNv8+4aPibv W9D+l/T4CtGd5/HkmXriUtUisNJaL8j0+B7HTRThiRL7+r8+FsnveaQihQjleIV18HL4 tVLtv7yff/k5MNW9cmV7ECgkD69SXvQ/ZzdFyDth7cw/2CklnMXbq970lXzuOWvqGXHh 41Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LXSpDibdIVgsTdbhrP36rFr1suuz40FZpCB3k8RCqkw=; b=FPGnGhqXSt9vsmAVRGmL1pu6uN1tyK7eXLkr4IJ/j/jLy9ad2r3uqxt/S2A5EMx0Ps GgoxQ8xF2QvviqQIzZfFTRvwRAaIRyd0wJP7HUTZDwPtLejYKMhyPGswsZU8PyteFzzV OF6bP6hjZwh36qmRlIz4y9+HDG9IYm3tPESHVzwtPFLyMh1+xbStsVqz/ryA08QGEBX/ phOCDjsa/YcNMF+gAD73V1APK3C1dSNywAvonGNz3AonPay3E7pFr3+x4NKFI+zCBsUG ZJ0TPEsgFoJCywEOxp9QcIXz38Aus6VnFABK61e051Fr2LMEqp1yr6NhRD8Kh4o8bSZu EJug== X-Gm-Message-State: AOAM5337K1hGkPMdIVIiYcAJn7GUEEnmaV46FQpP1/OHQAuKkjUpigg4 WGMWBVZZ2SBV3iNvkw2rkT3wMfCjHbaopQ== X-Google-Smtp-Source: ABdhPJx1ajhCRCTnQxT9Mez9YotbMshT0yal5K6pBGbpc4zT0riaE6/M3zHtn8eUXK8bFqWsVcsr1Q== X-Received: by 2002:a05:620a:2944:b0:67e:c9bf:3f9b with SMTP id n4-20020a05620a294400b0067ec9bf3f9bmr13914454qkp.144.1649445925050; Fri, 08 Apr 2022 12:25:25 -0700 (PDT) Received: from localhost ([2605:a601:a66c:b900:3b2f:a3a7:b707:646]) by smtp.gmail.com with ESMTPSA id b206-20020a3767d7000000b0069be71815b8sm1064362qkc.42.2022.04.08.12.25.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 12:25:24 -0700 (PDT) From: Jon Mason To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 4/6] qemuarmv5: use arm-versatile-926ejs KMACHINE and add more virtio devices Date: Fri, 8 Apr 2022 15:25:19 -0400 Message-Id: <20220408192521.1608764-5-jdmason@kudzu.us> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220408192521.1608764-1-jdmason@kudzu.us> References: <20220408192521.1608764-1-jdmason@kudzu.us> 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 ; Fri, 08 Apr 2022 20:12:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/164166 Use the Arm Versatile 926 kernel configs and round out all of the virtio interfaces to match other QEMU machines. Signed-off-by: Jon Mason --- meta/conf/machine/qemuarmv5.conf | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/meta/conf/machine/qemuarmv5.conf b/meta/conf/machine/qemuarmv5.conf index 2dad504c9932..0c39993e8483 100644 --- a/meta/conf/machine/qemuarmv5.conf +++ b/meta/conf/machine/qemuarmv5.conf @@ -13,9 +13,17 @@ SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;ttyAMA1" QB_SYSTEM_NAME = "qemu-system-arm" QB_MACHINE = "-machine versatilepb" QB_KERNEL_CMDLINE_APPEND = "vmalloc=256" +# 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" -PREFERRED_VERSION_linux-yocto ??= "5.15%" +# Virtio Networking support +QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" +QB_NETWORK_DEVICE = "-device virtio-net-pci,netdev=net0,mac=@MAC@" +# Virtio serial console +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" + QB_DTB = "${@oe.utils.version_less_or_equal('PREFERRED_VERSION_linux-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}" -KMACHINE:qemuarmv5 = "qemuarm" +PREFERRED_VERSION_linux-yocto ??= "5.15%" +KMACHINE:qemuarmv5 = "arm-versatile-926ejs" From patchwork Fri Apr 8 19:25:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 6466 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 8D203C4167B for ; Fri, 8 Apr 2022 20:12:14 +0000 (UTC) Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) by mx.groups.io with SMTP id smtpd.web12.1056.1649445926786063052 for ; Fri, 08 Apr 2022 12:25:27 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kudzu-us.20210112.gappssmtp.com header.s=20210112 header.b=H5tGkxm+; spf=none, err=permanent DNS error (domain: kudzu.us, ip: 209.85.160.179, mailfrom: jdmason@kudzu.us) Received: by mail-qt1-f179.google.com with SMTP id 10so11398329qtz.11 for ; Fri, 08 Apr 2022 12:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=FEe4u8ndIsl3IpAVyuFUOFZuOeyle9hTKYAnCCKJxQo=; b=H5tGkxm+Wyk3KyP7IJ4+GqWLRiFru2zJPsGOdOU4JxRL0vcNzfo45z7JCzqHF//X0D vDIjpYe553SEc4vqOz/ve7EMoMqt3+TPXyECTMJpPCxqv4dszbR1cI//Manh0qetu97U QRm7tQmOWbfvDP9QXDTIVwruIVRFzGiueZFV40r00MN/OX2NG0cN9Z74kpozA/HOlAmw 4uJHp0Ywh9SD+OpHtd67pVk7W0mbAWM3A6Y/HjQ6bzIp7U+BDz/RPcf2qT+BMhs5ZaU/ PSiD7WfWEwAWmCtgq+QyoG8N8wRtJkg+PuShFCDcliGIbeiIe7eW5Qugo0ivwVJr67hX LV0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FEe4u8ndIsl3IpAVyuFUOFZuOeyle9hTKYAnCCKJxQo=; b=SHaJRxkoNMZzc7z7++Y3dzuR/ljrGWcY2O+I0ALShMgE0qQrZLxYJ9v/76Y+rpTE52 XDoNRH99L3gJUCx8Jo7IjqB8MFXSh8/6elA3NpxPpLwoNLkUvOSJ38tVMxp+oRzL4N/v NGTHOaeGgcj7xw2Av8yEFyMLD7hjP0wWB8y0Dah/a1fm97H6/kg/MJOfZPfoTsX8+1SZ 8XYE0dQhVBuYMvVm8QV3z0muo6NDpiszwbzQ9YIAYEHOBLRCJQiJJQ0bB6qXQk1AZrkH Ch3rZFYNTlL9JihHq7rj8CqyWJIovekB4G3Ftk+GD62TWMViAfYsQMOfaAa0AlmCwy4H MHuA== X-Gm-Message-State: AOAM531Kdfn9Qv6VPws5SL0TK6jXp1Ke6NUaYDzOice3Pq2JSy5Sjsen Z31UwTaopa8+4akG6fWQTYCSLQas5xCc7Q== X-Google-Smtp-Source: ABdhPJzMZNyFBcirq/ECc/lid8GIyLhmVKF5fX2JyzRtzKYFTBYVYrc0ra94GThxTSRdcIiSNmc9ZA== X-Received: by 2002:a05:622a:490:b0:2e1:cd32:f3da with SMTP id p16-20020a05622a049000b002e1cd32f3damr17032392qtx.339.1649445925836; Fri, 08 Apr 2022 12:25:25 -0700 (PDT) Received: from localhost ([2605:a601:a66c:b900:3b2f:a3a7:b707:646]) by smtp.gmail.com with ESMTPSA id j65-20020a37a044000000b0069be5f5df0asm1123224qke.15.2022.04.08.12.25.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 12:25:25 -0700 (PDT) From: Jon Mason To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 5/6] poky-tiny: add a distro description Date: Fri, 8 Apr 2022 15:25:20 -0400 Message-Id: <20220408192521.1608764-6-jdmason@kudzu.us> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220408192521.1608764-1-jdmason@kudzu.us> References: <20220408192521.1608764-1-jdmason@kudzu.us> 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 ; Fri, 08 Apr 2022 20:12:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/164167 Signed-off-by: Jon Mason --- meta-poky/conf/distro/poky-tiny.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-poky/conf/distro/poky-tiny.conf b/meta-poky/conf/distro/poky-tiny.conf index 499af906a898..91c596faf182 100644 --- a/meta-poky/conf/distro/poky-tiny.conf +++ b/meta-poky/conf/distro/poky-tiny.conf @@ -32,6 +32,7 @@ require conf/distro/poky.conf require conf/distro/include/gcsections.inc DISTRO = "poky-tiny" +DISTRO_NAME = "Poky Tiny (The Smallest Yocto Project Reference Distro)" DISTROOVERRIDES = "poky:poky-tiny" TCLIBC = "musl" From patchwork Fri Apr 8 19:25:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 6467 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 8D0B8C43217 for ; Fri, 8 Apr 2022 20:12:14 +0000 (UTC) Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) by mx.groups.io with SMTP id smtpd.web09.1118.1649445927583765509 for ; Fri, 08 Apr 2022 12:25:27 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kudzu-us.20210112.gappssmtp.com header.s=20210112 header.b=kJX+c8+1; spf=none, err=permanent DNS error (domain: kudzu.us, ip: 209.85.222.172, mailfrom: jdmason@kudzu.us) Received: by mail-qk1-f172.google.com with SMTP id e10so4012990qka.6 for ; Fri, 08 Apr 2022 12:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=6egCTBH+jS9Y2oibg9ycOOWcNaygz+fMAeU2zMR9at0=; b=kJX+c8+1JT8GB2w1AdEflzMLfYybImDvRA7vCMdKdKxUyxIMSv9PqiTFmvvs3n35Vb R43ahNrDEHgM1GYc5kmTOkBE58dnVCstwk8Sb9gPsGG5HB3KtcNBQP6YqzsBN2uumy9U q8wHDMvBbyiiXA2SBlChkEO7eQNSqIdNEANYxOyorl0V8hvLu/GOii82UNeq5mW6/tjR /5QuomwsskbzoCR3iZvRPDN2qiTOSDVJycGhHHPmjdI4AEedZvzqtAqccz7R7Od+GATA DfQpqYVgqxgEmc8TbkZqdvjNKDw9m3AivRapSvnDCnWVMZSPIeuwJyuyrdBr6no1AUJ9 dQEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6egCTBH+jS9Y2oibg9ycOOWcNaygz+fMAeU2zMR9at0=; b=UiWN90pqBPhRYD5JYRYQPmWw6cjUfFoDpCLXlEzSN0KlwKHu4zX7UKEx1Y1PbS3YQH rkzBLZv3It01N2ELh5aRb0UcrdIZAcDa7U90FD5T/7mN4pYKD0Xh6vY4x/j37n/Wzdnh D7hxTtWC21XQN5QqnTrjlan1paZcvId5cHAszUFZTkldq8UdSg2VgCg0XCyNmWJChe1u q2R35huXHy2EVezAdOeACU5RujcdVW9whQ4O1zIh/q8jhbgaJW5octcEXsU9hee1amdB +4z97sXwXhASpkgeZ4EYfiirRdnOsQabDWiH9g+31tBHI8bB+tMkdWZSV4KK58kB4y0p fbjg== X-Gm-Message-State: AOAM531LgHCd0uPIZ9JFEGIQ0Dc5ls3k0/tN8wg6g2u/bDD2z+mm3J3h 4Fe+SGqQ4bNG15MVwyw87Z26sUwpdjKPYw== X-Google-Smtp-Source: ABdhPJzjOCJQjc7kJdqnHTOll4/dRZKi8vfCOP0VyLB7gA4Uac0bg2Uszw5f8lc4RYR48urNjzYWrg== X-Received: by 2002:a37:b906:0:b0:67e:4497:c3cc with SMTP id j6-20020a37b906000000b0067e4497c3ccmr14153878qkf.260.1649445926510; Fri, 08 Apr 2022 12:25:26 -0700 (PDT) Received: from localhost ([2605:a601:a66c:b900:3b2f:a3a7:b707:646]) by smtp.gmail.com with ESMTPSA id c20-20020a05622a025400b002e1dd71e797sm18630227qtx.15.2022.04.08.12.25.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 12:25:26 -0700 (PDT) From: Jon Mason To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 6/6] poky-tiny: enable qemuarmv5/qemuarm64 and cleanups Date: Fri, 8 Apr 2022 15:25:21 -0400 Message-Id: <20220408192521.1608764-7-jdmason@kudzu.us> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220408192521.1608764-1-jdmason@kudzu.us> References: <20220408192521.1608764-1-jdmason@kudzu.us> 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 ; Fri, 08 Apr 2022 20:12:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/164168 Add support for qemuarmv5 and qemuarm64, and remove qemuarm specific entries, as it should be generic now. Signed-off-by: Jon Mason --- meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb index d8ce5dc518d5..43a5ad728a5d 100644 --- a/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb @@ -1,5 +1,4 @@ KBRANCH ?= "v5.15/standard/tiny/base" -KBRANCH:qemuarm ?= "v5.15/standard/tiny/arm-versatile-926ejs" LINUX_KERNEL_TYPE = "tiny" KCONFIG_MODE = "--allnoconfig" @@ -15,7 +14,6 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine:qemuarm ?= "cc9e92e826af229b841fcaf8c645e638a86eba43" SRCREV_machine ?= "c3d54a67cbf3fb8e6df2d88c80e9d2c74f69aba4" SRCREV_meta ?= "63e25b5717751b4b33685bd5991d10c52934a4c6" @@ -24,7 +22,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.15;destsuffix=${KMETA}" -COMPATIBLE_MACHINE = "qemux86|qemux86-64|qemuarm|qemuarmv5" +COMPATIBLE_MACHINE = "qemux86|qemux86-64|qemuarm64|qemuarm|qemuarmv5" # Functionality flags KERNEL_FEATURES = ""