<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Chris,</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I am using the linux kernel board support package of a hardware vendor based on the NXP Linux Kernel for use with a i.MX6 based board. In former versions I used framebuffer to show graphics.  Since the vendor is quite slow, the most recent linux kernel version
 (NXP branch with extra patches and device trees from the hardware vendor) is kernel 5.15.148. As a userspace I use always Ubuntu. As a rule of thumb i don't use a Ubuntu version which was originally shipped with a kernel later then the vendors kernel from
 the BSP and i use only LTS versions. So at the moment Ubuntu 22.04 is the latest possible version for me.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
So for getting this improved i think there are several options:</div>
<ol data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":1}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: decimal;" start="1">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">Stay with the vendor BSP Kernel, just update mesa to a later version. => But i don't know if this can cause problems with other Ubuntu components, since i don't know how downwards compatible mesa is.</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">Port everything to the Ubuntu Linux Kernel. So i could use Ubuntu 24.04 with 2 years extra of support and the needed extra kernel options for Ubuntu are already in. Just merging imx_v6_v7_defconfig with scripts/kconfig/merge_config.sh
 on top of it => But I don't know if there are other patches in Ubuntu's kernel which have a negative effect on i.MX6</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">Port everything to NXP Linux  Kernel, apply hardware vendor patches by myself, patch mainline etnaviv in. Since NXP kernel version is 6.12 i would use Ubuntu 24.04 which was released with kernel 6.8 => Should
 be easy since the hardware vendor changes are not that much, but still ugly reversing NXP patches on etnaviv and imx-drm</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">Port everything to mainline kernel, apply hardware vendor patches by myself, patch the kernel options needed for Ubuntu on top of imx_v6_v7_defconfig. Would mean that i can always use the latest Ubuntu LTS version
 as userspace => But I don't know about the effects when i switch from NXP  Linux kernel to Vanilla Linux Kernel in the same version. Porting of the device tree should be easy since that hardware vendor does not patch existing device tree files.</div>
</li></ol>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
What do you think, which option is best? What problems are likely if not switching to a later mesa version than 23.2.1? Is the there a coupling between mesa versions and linux kernel (etnaviv driver) versions? </div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thank you already very much for your input.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Greetings,</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
André</div>
<div id="appendonsend"></div>
<a href="https://www.richard-wolf.com/de/unternehmen/kongresse/messe-detail/77-kongress-der-deutschen-gesellschaft-fuer-urologie-dgu" title=""><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=""></a><a href="https://www.richard-wolf.com/en/company/congresses/congress-detail/arab-health-2025" title=""></a><hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Chris Healy <cphealy@gmail.com><br>
<b>Gesendet:</b> Mittwoch, 6. August 2025 17:56<br>
<b>An:</b> Wagner Andre <andre.wagner@richard-wolf.com><br>
<b>Cc:</b> Fabio Estevam <festevam@gmail.com>; etnaviv@lists.freedesktop.org <etnaviv@lists.freedesktop.org><br>
<b>Betreff:</b> Re: running etnaviv driver on i.mx6</font>
<div> </div>
</div>
<div>
<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="x_gmail_quote x_gmail_quote_container">
<div dir="ltr" class="x_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="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_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="x_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" target="_blank" style="color:rgb(169,169,169)">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" target="_blank" style="font-size:8pt; color:rgb(169,169,169)">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" target="_blank" style="font-size:8pt; color:rgb(154,156,158)">Terms & Conditions</a></p>
<hr style="display:inline-block; width:98%">
<div id="x_m_8467096408946725261divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><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>
</div>
</body>
</html>