From mboxrd@z Thu Jan 1 00:00:00 1970 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 1DC06C433FE for ; Mon, 10 Oct 2022 03:55:52 +0000 (UTC) Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) by mx.groups.io with SMTP id smtpd.web12.2622.1665374146584174269 for ; Sun, 09 Oct 2022 20:55:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SyKYDOMm; spf=pass (domain: gmail.com, ip: 209.85.166.53, mailfrom: alex.kanavin@gmail.com) Received: by mail-io1-f53.google.com with SMTP id p16so1897254iod.6 for ; Sun, 09 Oct 2022 20:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UtwKsnfAcFZ7ZaE+P4az1uLvM7vTl7RGNvrb3JKCLcU=; b=SyKYDOMmiT10jNQVA/keIuGVQ6SNKjrrae8XA3LD4deWoLM99d+Eq/0XDVmMktqs8G cGKNY9BXOGgfS7eK/0MV+4NkHCq2gRKAk3sIuO6RV3//lr6ZGo82Aaqbq9wQnNEY2SgA S6M6ERFOmKWr7YuxDYIcD159XfX2xkrOM56gpS0kHf6iTQGpbyc904VR5cr+utfOwmKn 6jKVf6HtbweNGJxJw83l2nz4DTkKQiBZXrdZapkz8hfvUyMABB2NndWzAzE0ZAS65SIK B8aGP2y0s9+iKv7BVyHVGbr6NWsW728v/BU8jdPxzEUpQ0pAbJOepGVAoH74Z+EWnOI3 8IXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UtwKsnfAcFZ7ZaE+P4az1uLvM7vTl7RGNvrb3JKCLcU=; b=vsKOvaOQjvrLm+bT/D3tRprAZYnN/lDh2VnX6yPZ2/OC2x6zVotO++7uORuffeIbs8 v7bb2dUEfsJVk7MzUyQmMG58kpYwg5Lkvx7M8rn+PV40gzKRbIN/BolaVZWFM5VRQhIt qztBAqADG9mMxjsucCU/f5RHoRKvoTEqXwH+6l323miPxVaFU/R8Vyrzl5QqptiFI9gp 1J2tUoSGXxAhbWTH+S9CWxkZgT69bF3FZtqmbdZqE36SnySdgzt1+ar0eWJp2G1GQvLt tqOvLvKcqW0t4RBt6HIoPstJV7kxVtaaX1uN07Ycx1okq+7EnDtVHXT2qKZjeYq3bIzC DuQQ== X-Gm-Message-State: ACrzQf0R9WUmIR1mYGE8o/V6KaaI6mQsjb+c2gH5gz2wDj14dijOaXAm QKrB3mZhvjm8D8t9BHAkShBeSgd3rnFaWNMGKWY= X-Google-Smtp-Source: AMsMyM5xYXgoXPjdWUR/ATTiA+SD/N6z+NVdzr2ohe9/v5/QgsnXMe85TqihcFn/1vdxHnq1nPUVse/wMAiq1HyPdoM= X-Received: by 2002:a6b:ba55:0:b0:6b4:de08:ee55 with SMTP id k82-20020a6bba55000000b006b4de08ee55mr7599998iof.148.1665374145896; Sun, 09 Oct 2022 20:55:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Kanavin Date: Mon, 10 Oct 2022 05:55:35 +0200 Message-ID: Subject: Re: [yocto] Changing git url of qemu To: PHIL Cc: Yocto-mailing-list Content-Type: multipart/alternative; boundary="00000000000062675805eaa62244" 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, 10 Oct 2022 03:55:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58300 --00000000000062675805eaa62244 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It works for me. If it does not work for you, you need to show the full content of your local modifications and full content of error messages, and precise revisions of all of the layers and poky. And keep in mind it=E2=80= =99s volunteer help and no one is obliged to carry you to a solution, especially when you have not introduced yourself and your goal properly. It=E2=80=99s = far easier to just stop answering. Otherwise, commercial support is available. From my company (linutronix) as well. Alex On Mon 10. Oct 2022 at 0.29, PHIL wrote: > Any more ideas? > > > Am 30. September 2022 22:53:22 MESZ schrieb Alexander Kanavin < > alex.kanavin@gmail.com>: >> >> That depends on what is your target. If you're running qemu on a x86 >> host, it's better to not do software emulation and build for >> qemux86_64 as well, and then run qemu with kvm, so it executes >> directly on the host CPU. >> >> Alex >> >> On Fri, 30 Sept 2022 at 22:50, PHIL wrote: >> >>> >>> X86-64 is right or do you mean arm? >>> >>> Am 30. September 2022 22:39:44 MESZ schrieb Alexander Kanavin : >>> >>>> >>>> You might want to try enabling gallium-llvm only for the target mesa: >>>> >>>> PACKAGECONFIG:append:x86-64:pn-mesa =3D ' gallium-llvm' >>>> >>>> Alex >>>> >>>> On Fri, 30 Sept 2022 at 22:24, Edgar Mobile wr= ote: >>>> >>>>> >>>>> >>>>> I deleted the whole build directory, recreated it, only added the a= rm switch in local conf and your changes for mesa.inc. >>>>> After a few hours of building core-image-weston it again complains = that it tries to copy llcm-config14.0.6 over itself. I don't know what to d= o anymore. >>>>> ------------------------------ >>>>> From: Alexander Kanavin >>>>> Sent: Thursday, September 29, 2022 10:46 AM >>>>> To: PHIL >>>>> Cc: Yocto-mailing-list >>>>> Subject: Re: [yocto] Changing git url of qemu >>>>> >>>>> You need to build mesa, not mesa-native. And please show exact chan= ges you made. >>>>> >>>>> Alex >>>>> >>>>> On Thu 29. Sep 2022 at 12.28, PHIL wrote: >>>>> >>>>> Tried in a sifferent machine with wednesday poky master >>>>> >>>>> Building mesa-native gives the error >>>>> >>>>> cp: '/media/user/SSD1TB/yoctoqemu/poky/build-virgl/tmp/work/x86_64-= linux/mesa-native/2_22.2.0-r0/recipe-sysroot-native/usr/bin/llvm-config14.0= .6' and '/media/user/SSD1TB/yoctoqemu/poky/build-virgl/tmp/work/x86_64-linu= x/mesa-native/2_22.2.0-r0/recipe-sysroot-native/usr/bin/llvm-config14.0.6' = are the same file >>>>> >>>>> >>>>> Am 28. September 2022 13:37:05 MESZ schrieb Alexander Kanavin : >>>>> >>>>> Try latest poky master? >>>>> >>>>> Alex >>>>> >>>>> On Wed, 28 Sept 2022 at 13:23, PHIL wrote: >>>>> >>>>> >>>>> Mesa build fails. It complains that it copies llvm-config14.0.6 to= the same file. >>>>> >>>>> Am 28. September 2022 12:48:04 MESZ schrieb Alexander Kanavin : >>>>> >>>>> >>>>> The following works for me. I get >>>>> >>>>> tmp/work/core2-64-poky-linux/mesa/2_22.2.0-r0/packages-split/mesa-= vulkan-drivers/usr/lib/libvulkan_intel.so >>>>> tmp/work/core2-64-poky-linux/mesa/2_22.2.0-r0/packages-split/mesa-= vulkan-drivers/usr/lib/libvulkan_lvp.so >>>>> >>>>> --- a/meta/recipes-graphics/mesa/mesa.inc >>>>> +++ b/meta/recipes-graphics/mesa/mesa.inc >>>>> @@ -88,6 +88,7 @@ def strip_comma(s): >>>>> >>>>> PACKAGECONFIG =3D " \ >>>>> gallium \ >>>>> + gallium-llvm \ >>>>> ${@bb.utils.filter('DISTRO_FEATURES', 'x11 vulkan wayland'= , d)} \ >>>>> ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl = egl >>>>> gles gbm virgl', '', d)} \ >>>>> ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri= 3', '', d)} \ >>>>> @@ -108,7 +109,7 @@ PACKAGECONFIG[dri3] =3D "-Ddri3=3Denabled, >>>>> -Ddri3=3Ddisabled, xorgproto libxshmfence" >>>>> >>>>> # Vulkan drivers need dri3 enabled >>>>> # amd could be enabled as well but requires gallium-llvm with llv= m >=3D 3.9 >>>>> -VULKAN_DRIVERS =3D "" >>>>> +VULKAN_DRIVERS =3D "swrast" >>>>> VULKAN_DRIVERS:append:x86:class-target =3D ",intel" >>>>> VULKAN_DRIVERS:append:x86-64:class-target =3D ",intel" >>>>> VULKAN_DRIVERS:append =3D"${@bb.utils.contains('PACKAGECONFIG', >>>>> 'freedreno', ',freedreno', '', d)}" >>>>> >>>>> Alex >>>>> >>>>> On Wed, 28 Sept 2022 at 11:49, PHIL wrote: >>>>> >>>>> >>>>> >>>>> Also vulkan-drivers is empty in meson generated by bitbake. If I = add it manually it will complain that llvm is disabled. How would I enable = it? >>>>> >>>>> Am 28. September 2022 10:51:26 MESZ schrieb Alexander Kanavin : >>>>> >>>>> >>>>> >>>>> I think for software vulkan you need to pass in >>>>> -Dvulkan-drivers=3Dswrast when building mesa for the target. >>>>> >>>>> Alex >>>>> >>>>> On Wed, 28 Sept 2022 at 10:44, PHIL wrote: >>>>> >>>>> >>>>> >>>>> >>>>> I asked the author so I assume he would have told me. Apparently= the virglrenderer branch is obsolete. >>>>> >>>>> Currently my only changes from poky master are adding vulkan ope= ngl x11 to distro features and vulkan-samples vulkan-loader vulkan-tools vi= rglrenderer to core image extra install in local.conf. >>>>> >>>>> I also added virtio-experimental flag to mesa and virglrenderer = meson recipes. >>>>> >>>>> I still get ERROR_INCOMPATIBLE_DRIVER when running vulkaninfo. >>>>> >>>>> What am I missing for Software Mode? >>>>> >>>>> Am 28. September 2022 10:29:28 MESZ schrieb Alexander Kanavin : >>>>> >>>>> >>>>> >>>>> >>>>> I would first check whether any of that work in the branch has m= eanwhile landed upstream. The post is from 2021. >>>>> >>>>> Have you tried the software Vulkan in the guest? >>>>> >>>>> Alex >>>>> >>>>> On Wed 28. Sep 2022 at 10.21, PHIL wrote: >>>>> >>>>> >>>>> >>>>> >>>>> I try to enable vulkan according to this tutorial >>>>> >>>>> https://www.collabora.com/news-and-blog/blog/2021/11/26/venus-on= -qemu-enabling-new-virtual-vulkan-driver/ >>>>> >>>>> According to the author the modified qemu branch is still necess= ary so I want to enable that. >>>>> >>>>> >>>>> Am 28. September 2022 10:14:24 MESZ schrieb Alexander Kanavin : >>>>> >>>>> >>>>> >>>>> >>>>> You need to clarify what you want to do exactly. Why can=E2=80= =99t you use the existing recipe? >>>>> >>>>> Alex >>>>> >>>>> On Wed 28. Sep 2022 at 9.58, Edgar Mobile = wrote: >>>>> >>>>> >>>>> >>>>> >>>>> Greetings, >>>>> >>>>> I want to change the git repo url in order to test the Venus dri= ver. Can someone tell me which variable in which recipe I'd have to set? >>>>> >>>>> Regards >>>>> -- >>>>> Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail= gesendet. >>>>> ------------------------------ >>>>> Links: You receive all messages sent to this group. >>>>> View/Reply Online (#58196): https://lists.yoctoproject.org/g/yoc= to/message/58196 >>>>> Mute This Topic: https://lists.yoctoproject.org/mt/93968127/1686= 489 >>>>> Group Owner: yocto+owner@lists.yoctoproject.org >>>>> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [alex.= kanavin@gmail.com] >>>>> ------------------------------ >>>>> -- >>>>> Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail = gesendet. >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail= gesendet. >>>>> >>>>> >>>>> >>>>> -- >>>>> Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail = gesendet. >>>>> >>>>> >>>>> -- >>>>> Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail g= esendet. >>>>> >>>>> -- >>>>> Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail ge= sendet. >>>>> >>>> >>> -- >>> Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail gesen= det. >>> >> -- > Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail gesendet= . > --00000000000062675805eaa62244 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It works for me. If it does not work for you, you need to= show the full content of your local modifications and full content of erro= r messages, and precise revisions of all of the layers and poky. And keep i= n mind it=E2=80=99s volunteer help and no one is obliged to carry you to a = solution, especially when you have not introduced yourself and your goal pr= operly. It=E2=80=99s far easier to just stop answering.

Otherwise, commercial support is available.= From my company (linutronix) as well.

Alex

On Mon 10. Oct 2022 at 0.29, PHIL <heideggm@hotmail.com> wrote:
Any more ideas?


Am 30. Se= ptember 2022 22:53:22 MESZ schrieb Alexander Kanavin <alex.kanavin@gmail.com>:
That depends on what is y=
our target. If you're running qemu on a x86
host, it's better to= not do software emulation and build for
qemux86_64 as well, and then ru= n qemu with kvm, so it executes
directly on the host CPU.

Alex
On Fri, 30 Sept 2022 at 22:50, PHIL <heideggm@hotmai= l.com> wrote:

X86-64 = is right or do you mean arm?

Am 30. September 2022 22:39:44 MESZ sc= hrieb Alexander Kanavin <alex.kanavin@gmail.com>= :

You might want to try enab= ling gallium-llvm only for the target mesa:

PACKAGECONFIG:append:x8= 6-64:pn-mesa =3D ' gallium-llvm'

Alex

On Fri, 30 Se= pt 2022 at 22:24, Edgar Mobile <heideggm@hotmail.com&= gt; wrote:


I deleted the= whole build directory, recreated it, only added the arm switch in local co= nf and your changes for mesa.inc.
After a few hours of building core-i= mage-weston it again complains that it tries to copy llcm-config14.0.6 over= itself. I don't know what to do anymore.
From: Alexander Kanavin <alex.kanavin@gmail.com= >
Sent: Thursday, September 29, 2022 10:46 AM
To: PHIL <= ;heideggm@hotmail.com>
Cc: Yocto-mailing-list &l= t;yocto@lists.yoctoproject.org>
Subjec= t: Re: [yocto] Changing git url of qemu

You need to build mesa, no= t mesa-native. And please show exact changes you made.

Alex
On Thu 29. Sep 2022 at 12.28, PHIL <heideggm@hotmail.c= om> wrote:

Tried in a sifferent machine with wednesday poky= master

Building mesa-native gives the error

cp: '/me= dia/user/SSD1TB/yoctoqemu/poky/build-virgl/tmp/work/x86_64-linux/mesa-nativ= e/2_22.2.0-r0/recipe-sysroot-native/usr/bin/llvm-config14.0.6' and '= ;/media/user/SSD1TB/yoctoqemu/poky/build-virgl/tmp/work/x86_64-linux/mesa-n= ative/2_22.2.0-r0/recipe-sysroot-native/usr/bin/llvm-config14.0.6' are = the same file


Am 28. September 2022 13:37:05 MESZ schrieb Alex= ander Kanavin <alex.kanavin@gmail.com>:

= Try latest poky master?

Alex

On Wed, 28 Sept 2022 at 13:= 23, PHIL <heideggm@hotmail.com> wrote:


= Mesa build fails. It complains that it copies llvm-config14.0.6 to the s= ame file.

Am 28. September 2022 12:48:04 MESZ schrieb Alexander K= anavin <alex.kanavin@gmail.com>:


T= he following works for me. I get

tmp/work/core2-64-poky-linux/mes= a/2_22.2.0-r0/packages-split/mesa-vulkan-drivers/usr/lib/libvulkan_intel.so=
tmp/work/core2-64-poky-linux/mesa/2_22.2.0-r0/packages-split/mesa-vu= lkan-drivers/usr/lib/libvulkan_lvp.so

--- a/meta/recipes-graphics= /mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -88= ,6 +88,7 @@ def strip_comma(s):

PACKAGECONFIG =3D " \
= gallium \
+ gallium-llvm \
${@bb.utils.= filter('DISTRO_FEATURES', 'x11 vulkan wayland', d)} \
= ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', = 'opengl egl
gles gbm virgl', '', d)} \
= ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', '= dri3', '', d)} \
@@ -108,7 +109,7 @@ PACKAGECONFIG[dri3] = =3D "-Ddri3=3Denabled,
-Ddri3=3Ddisabled, xorgproto libxshmfence= "

# Vulkan drivers need dri3 enabled
# amd could be = enabled as well but requires gallium-llvm with llvm >=3D 3.9
-VULK= AN_DRIVERS =3D ""
+VULKAN_DRIVERS =3D "swrast" VULKAN_DRIVERS:append:x86:class-target =3D ",intel"
V= ULKAN_DRIVERS:append:x86-64:class-target =3D ",intel"
VULK= AN_DRIVERS:append =3D"${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
Alex

On Wed, 28 Sept 2022 at 11:49, PHIL <h= eideggm@hotmail.com> wrote:



Also vulkan-drivers i= s empty in meson generated by bitbake. If I add it manually it will complai= n that llvm is disabled. How would I enable it?

Am 28. September= 2022 10:51:26 MESZ schrieb Alexander Kanavin <alex.kan= avin@gmail.com>:



I think for software vulkan you = need to pass in
-Dvulkan-drivers=3Dswrast when building mesa for the= target.

Alex

On Wed, 28 Sept 2022 at 10:44, PHIL <= ;heideggm@hotmail.com> wrote:




= I asked the author so I assume he would have told me. Apparently the virgl= renderer branch is obsolete.

Currently my only changes from pok= y master are adding vulkan opengl x11 to distro features and vulkan-samples= vulkan-loader vulkan-tools virglrenderer to core image extra install in lo= cal.conf.

I also added virtio-experimental flag to mesa and vir= glrenderer meson recipes.

I still get ERROR_INCOMPATIBLE_DRIVER= when running vulkaninfo.

What am I missing for Software Mode?<= br>
Am 28. September 2022 10:29:28 MESZ schrieb Alexander Kanavin &= lt;alex.kanavin@gmail.com>:




= I would first check whether any of that work in the branch has meanwhile l= anded upstream. The post is from 2021.

Have you tried the softw= are Vulkan in the guest?

Alex

On Wed 28. Sep 2022 a= t 10.21, PHIL <heideggm@hotmail.com> wrote:



I try to enable vulkan according to this tutorial

= https://www.collabora.com/news-and-blog/blog/2021/11= /26/venus-on-qemu-enabling-new-virtual-vulkan-driver/

Accor= ding to the author the modified qemu branch is still necessary so I want to= enable that.


Am 28. September 2022 10:14:24 MESZ schrieb A= lexander Kanavin <alex.kanavin@gmail.com>:



You need to clarify what you want to do exactly. Why can= =E2=80=99t you use the existing recipe?

Alex

On Wed= 28. Sep 2022 at 9.58, Edgar Mobile <heideggm@hotmail.com= > wrote:




Greetings,

I want to ch= ange the git repo url in order to test the Venus driver. Can someone tell m= e which variable in which recipe I'd have to set?

Regards --
Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K= -9 Mail gesendet.
Links: You receiv= e all messages sent to this group.
View/Reply Online (#58196): https://lists.yoctoproject.org/g/yocto/= message/58196
Mute This Topic: https://lists.yoctoproject.org/mt/93968127/1686489
Group = Owner: yocto+owner@lists.yoctoproject.org
Unsubscribe:
https://lists.yoctop= roject.org/g/yocto/unsub [alex.kanavin@gmail.com]<= hr style=3D"font-family:monospace"> --
Diese Nachricht wurde von = meinem Android-Ger=C3=A4t mit K-9 Mail gesendet.




--=
Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail g= esendet.



--
Diese Nachricht wurde von meinem Andr= oid-Ger=C3=A4t mit K-9 Mail gesendet.


--
Diese Nachrich= t wurde von meinem Android-Ger=C3=A4t mit K-9 Mail gesendet.

-- Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail gesende= t.

--
Diese Nachricht wurde von meine= m Android-Ger=C3=A4t mit K-9 Mail gesendet.
--
Diese Nachricht w= urde von meinem Android-Ger=C3=A4t mit K-9 Mail gesendet.
=
--00000000000062675805eaa62244--