<div dir="ltr">I'm not sure what your goal is but I would recommend using a newer version of Mesa than 23.2.1. Many changes have landed in Mesa over the last 2 years related to etnaviv bringing features, performance, and bug fixes.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Aug 6, 2025 at 8:49 AM Wagner Andre <<a href="mailto:andre.wagner@richard-wolf.com">andre.wagner@richard-wolf.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg8467096408946725261">
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi Fabio,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I got it working! I didn't port everything to the mainline kernel but I ensured that drivers/gpu/drm/etnaviv and drivers/gpu/drm/imx match the mainline kernel and I ported the devicetree to mainline style for the gpu node and the ldb node (LVDS device bridge).
Then i realized that i need to compile mesa different:</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I used:</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b>meson setup <build dir> \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dplatforms=wayland \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Degl-native-platform=drm \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dgallium-drivers=etnaviv,kmsro \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Ddri3=enabled \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dvulkan-drivers= \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dllvm=disabled \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dshared-llvm=disabled \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dshared-glapi=enabled \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dgles1=enabled \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dgles2=enabled \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dopengl=false \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Degl=enabled \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dgbm=enabled \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dglx=disabled \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dglvnd=true \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dbuild-tests=true \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Dtools= \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Db_ndebug=true \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Ddri-drivers-path=/usr/lib/$(DEB_HOST_MULTIARCH)/dri \</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b> -Ddri-search-path='/usr/lib/$(DEB_HOST_MULTIARCH)/dri:\$$$${ORIGIN}/dri:/usr/lib/dri'</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b><br>
</b></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
On my first run I didn't set egl's native platform to drm and compared to your old article (i tested the buildroot you meantioned there) i used dri3 and disabled dri2 completly. </div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
So my running setup is now:</div>
<ul style="margin-top:0px;margin-bottom:0px">
<li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);list-style-type:"- "">
<div role="presentation">Linux 5.15.148, NXP branch with mainline /driver/gpu/drm/{etnaviv,imx} of mainline branch</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);list-style-type:"- "">
<div role="presentation">Custom devicetree for NXP branch with adapted gpu- and lbd-node to mainline branch</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);list-style-type:"- "">
<div role="presentation">Mesa 23.2.1 with dri3, egl on drm using gbm</div>
</li><li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);list-style-type:"- "">
<div role="presentation">Qt Application 5.15 with eglfs platform</div>
</li></ul>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Greetings,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
André</div>
<div id="m_8467096408946725261appendonsend"></div>
<a href="https://www.richard-wolf.com/de/unternehmen/kongresse/messe-detail/77-kongress-der-deutschen-gesellschaft-fuer-urologie-dgu" title="" target="_blank"><img src="https://www.richard-wolf.com/mam/data/Typo3/banner/e-mail-banner-DGU25.png"></a><a href="https://www.richard-wolf.com/de/academy-prima-vista/masterclass-workshops/masterclass-workshop-minimally-invasive-upper-gi-surgery-2" title="" target="_blank"></a><a href="https://www.richard-wolf.com/en/company/congresses/congress-detail/arab-health-2025" title="" target="_blank"></a>
<p style="margin-bottom:1pt"><span style="font-size:8pt;font-family:Arial,sans-serif;color:black">Richard
Wolf GmbH, Pforzheimer Strasse 32, 75438 Knittlingen<br>
Managing Directors: Juergen Pfab, Juergen Steinbeck. Trade Register: Mannheim
HRB 510031 </span><u></u><u></u></p><p>
</p><p style="margin-bottom:0pt"><span style="font-size:8pt;font-family:Arial,sans-serif;color:darkgray">Richard
Wolf GmbH routinely monitors the content of e-mail sent and received via its
network for the purposes of ensuring compliance with its policies and
procedures. Richard Wolf GmbH is not responsible for any changes made to the
message after it has been sent. Where opinions are expressed, they are not
necessarily those of Richard Wolf GmbH. This e-mail and any files transmitted
with it are confidential and intended solely for the use of the individual or
entity to which they are addressed. If you are not the intended addressee, or
the person responsible for delivering it to them, you may not copy, forward,
disclose, or otherwise use it or any part of it in any way. To do so may be
unlawful. If you receive this e-mail by mistake, please advise the sender
immediately.<br></span><span style="font-size:8pt;font-family:Arial,sans-serif;color:darkgray"><br>
<a href="https://www.richard-wolf.com/en/data-protection-policy" title="Data Protection Policy" style="color:rgb(169,169,169)" target="_blank"> Data Protection Policy</a></span><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(154,154,154)">
| </span><a href="https://www.richard-wolf.com/en/legal-information/" title="Legal Information" style="font-size:8pt;color:rgb(169,169,169)" target="_blank">Legal Information</a><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(154,154,154)">
| </span><a href="https://www.richard-wolf.com/en/terms-conditions/" title="Terms & Conditions" style="font-size:8pt;color:rgb(154,156,158)" target="_blank">Terms & Conditions</a></p>
<hr style="display:inline-block;width:98%">
<div id="m_8467096408946725261divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> etnaviv <<a href="mailto:etnaviv-bounces@lists.freedesktop.org" target="_blank">etnaviv-bounces@lists.freedesktop.org</a>> im Auftrag von Fabio Estevam <<a href="mailto:festevam@gmail.com" target="_blank">festevam@gmail.com</a>><br>
<b>Gesendet:</b> Montag, 4. August 2025 21:50<br>
<b>An:</b> Wagner Andre <<a href="mailto:andre.wagner@richard-wolf.com" target="_blank">andre.wagner@richard-wolf.com</a>><br>
<b>Cc:</b> <a href="mailto:etnaviv@lists.freedesktop.org" target="_blank">etnaviv@lists.freedesktop.org</a> <<a href="mailto:etnaviv@lists.freedesktop.org" target="_blank">etnaviv@lists.freedesktop.org</a>><br>
<b>Betreff:</b> Re: running etnaviv driver on i.mx6</font>
<div> </div>
</div>
<div><font size="2"><span style="font-size:11pt">
<div>Hi Andre,<br>
<br>
On Mon, Aug 4, 2025 at 12:39 PM Wagner Andre<br>
<<a href="mailto:andre.wagner@richard-wolf.com" target="_blank">andre.wagner@richard-wolf.com</a>> wrote:<br>
><br>
> Hi Fabio,<br>
><br>
> thanks for your fast answer!<br>
> A few hours ago, i just found an old article of you where you described howto do it ;):<br>
><br>
> <a href="https://imxdev.gitlab.io/tutorial/Running_kmscube_with_Etnaviv_on_mx6sabresd_board/" target="_blank">
https://imxdev.gitlab.io/tutorial/Running_kmscube_with_Etnaviv_on_mx6sabresd_board/</a><br>
><br>
> I try to do the setup you described there, but i still got no plan how to port the devicetree i got for my board from the NXP kernel variant to the mainline, without causing a bunch of new problems.<br>
<br>
The display subsystem representation in the devicetree is different<br>
between the mainline kernel and the NXP kernel.<br>
<br>
Try getting the i.MX6 display interface to work with the mainline kernel first.<br>
<br>
There are many i.MX6-based boards are supported by the mainline<br>
kernel, which you can use as a reference for adapting your devicetree.<br>
</div>
</span></font></div>
</div>
</div></blockquote></div>