Will you support DRM driver for Odroid n2?

blu
Posts: 84
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4, N2
Has thanked: 3 times
Been thanked: 22 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by blu »

Let me join @miskol -- I too am looking forward to DRM on the N2. And like in his post above, my experience with DRM on Mali also includes linux dma_buf, from EGLImage down to the presentation layer (i.e. some wayland compositor). The good news is that libEGL (i.e. libMali) advertises EGL_EXT_image_dma_buf_import, which I'm yet to try on the DRM-enabled kernel.

User avatar
odroid
Site Admin
Posts: 34817
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 915 times
Been thanked: 752 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by odroid »

Running WEBGL on Chromium with Wayland. The WebGL on the Wayland/N2 performance seems to be almost twice faster than X11-EGL/XU4.


Here is an instruction.
https://wiki.odroid.com/odroid-n2/appli ... on_wayland

This example might be useful when you want to make a decent WebGL powered Kiosk or Digital signage system.
These users thanked the author odroid for the post (total 4):
sjwlaoda (Mon Jul 29, 2019 5:14 pm) • xabolcs (Tue Jul 30, 2019 12:14 am) • elatllat (Wed Jul 31, 2019 7:52 am) • MimCom (Tue Sep 10, 2019 8:03 am)

User avatar
istanbulls
Posts: 253
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID-N2, ODROID C4
Location: Istanbul-Turkey
Has thanked: 140 times
Been thanked: 28 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by istanbulls »

"ubuntu mate on the desktop" I guess does not work :)

wallyz21
Posts: 139
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 10 times
Been thanked: 16 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by wallyz21 »

Nice.

Looking at the wiki there is glmark2-es2-wayland and now chromium (with wayland support).
odroid wrote:
Running WEBGL on Chromium with Wayland. The WebGL on the Wayland/N2 performance seems to be almost twice faster than X11-EGL/XU4.
Can anyone who has run glmark2-es2-wayland provide the output results please.

(I only ask the following because I'm not sure how all the different technologies fit together)

Instead of making individual applications compatible with wayland wouldn't it make more sense to have xwayland so all current desktop applications can be used?
Walter Zambotti
N2 - Ubuntu Mate Desktop

crashoverride
Posts: 5023
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 319 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by crashoverride »

I just noticed there is a X11/GBM "bifrost" (G31) Mali driver available for Rockchip hardware:
https://github.com/rockchip-linux/libma ... f1f55c1e13
libmali: Add x11 support for bifrost r6
Can we find out if Amlogic can provide the same for N2 "bifrost" (G52)?

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 59 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by memeka »

wallyz21 wrote:
Wed Jul 31, 2019 11:32 am
Can anyone who has run glmark2-es2-wayland provide the output results please.
Some older ones, with the DRM on mainline (5.0 at the time) not 4.19: https://www.cnx-software.com/2019/03/27 ... es2-score/

XWayland doesn't support OpenGL(ES), so you can run non-accelerated apps just fine via XWayland, but not OpenGL(ES) apps.

wallyz21
Posts: 139
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 10 times
Been thanked: 16 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by wallyz21 »

memeka wrote:
Fri Aug 02, 2019 9:57 am
XWayland doesn't support OpenGL(ES), so you can run non-accelerated apps just fine via XWayland, but not OpenGL(ES) apps.
How is Alyssa Rosenzweig at Collabora doing this then?

https://www.collabora.com/news-and-blog ... -panfrost/

From the blog:

Alyssa Rosenzweig:
Jun 27, 2019 at 11:26 PM

GNOME-Wayland, thank you for asking!

Alyssa Rosenzweig:
Jul 16, 2019 at 04:20 PM

Thank you! We've begun work on OpenGL ES 3.0 already; in fact, a few ES 3.0 features like instanced rendering have already landed in mesa master. Vulkan is a possibility, but for now, we're focused on perfecting OpenGL ES, including ES 3.0.
Walter Zambotti
N2 - Ubuntu Mate Desktop

User avatar
meveric
Posts: 11102
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4
Has thanked: 43 times
Been thanked: 386 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by meveric »

wallyz21 wrote:
Fri Aug 02, 2019 10:09 pm
memeka wrote:
Fri Aug 02, 2019 9:57 am
XWayland doesn't support OpenGL(ES), so you can run non-accelerated apps just fine via XWayland, but not OpenGL(ES) apps.
How is Alyssa Rosenzweig at Collabora doing this then?
There's a difference between Wayland and XWayland..
XWayland is a compatibility layer for X11 applications running on Wayland. (in simple terms the command "XCreateSimpleWindow" for X11 will be translate to a CreateWindowSurface for Wayland and things of that nature).
There's stuff like "glmake2-es2-wayland" which runs directly under wayland, but there's also glmark2-es2 which is an X11 application using GLESv2.
The former runs under wayland, the later does not as it requires GLESv2 for X11 (if I understand correctly).
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

wallyz21
Posts: 139
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 10 times
Been thanked: 16 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by wallyz21 »

meveric wrote:
Fri Aug 02, 2019 10:38 pm
XWayland is a compatibility layer for X11 applications running on Wayland. (in simple terms the command "XCreateSimpleWindow" for X11 will be translate to a CreateWindowSurface for Wayland and things of that nature).
There's stuff like "glmake2-es2-wayland" which runs directly under wayland, but there's also glmark2-es2 which is an X11 application using GLESv2.
The former runs under wayland, the later does not as it requires GLESv2 for X11 (if I understand correctly).
So Rosenzwieg would have used wayland versions of gnome/etc! And unfortunately there is no GLES version of xwayland. I think I'm getting it. Thanks!
Walter Zambotti
N2 - Ubuntu Mate Desktop

miskol
Posts: 258
Joined: Wed Jan 15, 2014 2:58 am
languages_spoken: english,slovak
ODROIDs: XU4,C1,C2,N2,C4
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by miskol »

mayor problem is that panfrost don't support GPU on odroid N2
but it should work fine on Odroid U3/4

ajcard
Posts: 61
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by ajcard »

crashoverride wrote:
Fri Jun 07, 2019 4:10 pm
tobetter wrote:
Fri Jun 07, 2019 3:48 pm
will you send PR or shall I merge them to the branch?
Its easiest if you (or someone else) creates the patch and merges it. I have to pull the entire tree and then push it to my github before I can submit a PR.

Also, I have published the N2 version of armsoc here:
https://github.com/OtherCrashOverride/x ... oc/tree/n2

[edit]
Sample xorg.conf provided goes in /etc/X11/xorg.conf.
For unknown reason(s), X11 session startup takes longer time than for fbdev.

Just found this post/link and have a question:
Whats the state of this driver, usable, or is it better to use fbdev_turbo?

quartexNOR
Posts: 10
Joined: Fri Sep 06, 2019 3:46 pm
languages_spoken: english
ODROIDs: XU4, N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by quartexNOR »

Any news on this?
I have 3 ODroid N2's collecting dust.
Not everyone is into rolling their own kernel. I cant believe a company would ship a product without having the drivers done first.
Very let down by Hardkernel on this

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 59 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by memeka »

News on what?
If you are asking about X11 drivers, this is not the place. It’s like asking DELL about drivers for nvidia gpu. Ask ARM who makes the mali gpu... or ask panfrost developers who are reverse-engineering the driver.

odroidn2user
Posts: 300
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 79 times
Been thanked: 77 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by odroidn2user »

OK, for anyone reading this thread: Even though the last bit of good progress news was July 29, 2019 and it is now well into November 2019... that doesn't mean there is no progress.

The DRM driver is under active development and making excellent progress as part of the Linux Meson project/community: http://linux-meson.com/doku.php

Combined with the available Mali Wayland userspace drivers, we should be well under way to a working accelerated desktop, and probably even with a (somewhat) working VPU! The examples in this thread above (e.g. viewtopic.php?f=177&t=35255&start=50#p263741) show that the Mali Wayland blobs work, it is just that the DRM kernel driver was incomplete.

With the availability of a much further developed Meson DRM driver now available in kernel 5.4 and newer we should be near a working solution...
These users thanked the author odroidn2user for the post:
Sav (Thu Nov 28, 2019 4:46 am)

Sav
Posts: 211
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 47 times
Been thanked: 18 times
Contact:

Re: Will you support DRM driver for Odroid n2?

Post by Sav »

tobetter published a minimal bionic image with preinstalled mainline 5.4.6 kernel, on which is possible to install weston and wayland (from tobetter's repository) as described here: viewtopic.php?p=275730#p275725.
I hope we could share informations about how to build a working desktop on top of it.
I tried to build Enlightenment from git (https://www.enlightenment.org/about-wayland and https://www.enlightenment.org/docs/dist ... u-start.md), but I got stuck. It seems that Enlightenment uses meson to build, but the bionic version is too old:

Code: Select all

root@bionic-minimal:~/efl# meson build
The Meson build system
Version: 0.45.1
Source dir: /home/odroid/efl
Build dir: /home/odroid/efl/build
Build type: native build

meson.build:1:0: ERROR: Meson version is 0.45.1 but project requires >=0.47

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest