X11 drivers - Odroid-C2

This is for ARMv8 based devices

X11 drivers - Odroid-C2

Postby physkets » Mon May 23, 2016 3:32 pm

Hi!

Does anyone know the status of the X11 drivers for the Mali-450 in the Odroid-C2 ?
physkets
 
Posts: 8
Joined: Mon May 23, 2016 3:17 pm

Re: X11 drivers - Odroid-C2

Postby WarheadsSE » Mon May 23, 2016 4:13 pm

That's a question for @mdrjr
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6727
Joined: Mon Oct 18, 2010 2:12 pm

Re: X11 drivers - Odroid-C2

Postby mdrjr » Wed May 25, 2016 8:54 am

Released today.

Should take a couple of days to land on Arch
mdrjr
 
Posts: 15
Joined: Fri Dec 14, 2012 6:09 pm

Re: X11 drivers - Odroid-C2

Postby physkets » Wed May 25, 2016 5:27 pm

Oh! I just found this:

http://odroid.com/dokuwiki/doku.php?id= ... _note_v1.2

Thanks! This is exciting :D
physkets
 
Posts: 8
Joined: Mon May 23, 2016 3:17 pm

Re: X11 drivers - Odroid-C2

Postby linfan » Mon May 30, 2016 3:32 pm

How do you configure xf86-video-odroid-c2? Every time I try it xorg creates a xf86-video-fbdev conf-file in /etc/X11...
The package does not show up among the xorg packages either.
linfan
 
Posts: 4
Joined: Thu Mar 26, 2015 9:06 pm

Re: X11 drivers - Odroid-C2

Postby rpcameron » Wed Jun 01, 2016 11:43 pm

I, too, am interested in this. HK's Ubuntu image has X11 working, and their /etc/X11/xorg.conf is identical to Arch's /etc/X11/xorg.conf.d/99-mali-c2.conf. However, when trying to start an X session (of any sort), Xorg errors out with:
Code: Select all
[    20.430] (EE) MALI(0): [mali_drm_open_master:1036] Error: mali_drm_open_master Unable to open DRM: No such file or directory
[    20.430] (EE) MALI(0): [MaliPreInit:1169] Error: Failed to be master of DRM!
which I take to mean that there is some problem with the kernel driver of some sort ...

I am attaching the full Xorg.0.log, so maybe someone else will be about to see what is exactly going on ...

Edit: Apparently this board won't let me upload an attachment, therefore I'm embedding the text here:
Code: Select all
[    20.274]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[    20.275] X Protocol Version 11, Revision 0
[    20.275] Build Operating System: Linux 3.14.29-12-ARCH aarch64
[    20.275] Current Operating System: Linux sleipnir 3.14.65-5-ARCH #1 SMP PREEMPT Sun May 29 09:24:16 MDT 2016 aarch64
[    20.275] Kernel command line: root=/dev/mmcblk0p2 rootwait rw console=ttyS0,115200n8 console=tty0 no_console_suspend hdmimode=1080p60hz m_bpp=32 vout= fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=true rootfstype=f2fs
[    20.275] Build Date: 05 April 2016  12:20:21PM
[    20.276] 
[    20.276] Current version of pixman: 0.34.0
[    20.276]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    20.276] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    20.276] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun  1 16:35:47 2016
[    20.280] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    20.280] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    20.281] (==) No Layout section.  Using the first Screen section.
[    20.281] (**) |-->Screen "Mali-Screen" (0)
[    20.281] (**) |   |-->Monitor "<default monitor>"
[    20.283] (**) |   |-->Device "Mali-Fbdev"
[    20.283] (==) No monitor specified for screen "Mali-Screen".
   Using a default monitor configuration.
[    20.283] (==) Automatically adding devices
[    20.283] (==) Automatically enabling devices
[    20.283] (==) Automatically adding GPU devices
[    20.283] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    20.289] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    20.289]    Entry deleted from font path.
[    20.290] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    20.290]    Entry deleted from font path.
[    20.290]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    20.290] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    20.290]    Entry deleted from font path.
[    20.290]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    20.290] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/TTF/,
   /usr/share/fonts/OTF/
[    20.290] (==) ModulePath set to "/usr/lib/xorg/modules"
[    20.290] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    20.290] (II) Loader magic: 0x5cfcd8
[    20.290] (II) Module ABI versions:
[    20.290]    X.Org ANSI C Emulation: 0.4
[    20.290]    X.Org Video Driver: 20.0
[    20.290]    X.Org XInput driver : 22.1
[    20.290]    X.Org Server Extension : 9.0
[    20.292] (++) using VT number 1

[    20.292] (--) controlling tty is VT number 1, auto-enabling KeepTty
[    20.295] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[    20.297] (II) xfree86: Adding drm device (/dev/dri/card0)
[    20.298] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[    20.298] (II) xfree86: Adding drm device (/dev/dri/card1)
[    20.299] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 9 paused 0
[    20.299] (II) no primary bus or device found
[    20.299]    falling back to /sys/devices/platform/mali_drm.0/drm/card0
[    20.299] (II) LoadModule: "glx"
[    20.304] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    20.349] (II) Module glx: vendor="X.Org Foundation"
[    20.350]    compiled for 1.18.3, module version = 1.0.0
[    20.350]    ABI class: X.Org Server Extension, version 9.0
[    20.350] (==) AIGLX enabled
[    20.350] (II) LoadModule: "mali"
[    20.355] (II) Loading /usr/lib/xorg/modules/drivers/mali_drv.so
[    20.366] (II) Module mali: vendor="X.Org Foundation"
[    20.366]    compiled for 1.18.3, module version = 0.4.2
[    20.366]    ABI class: X.Org Video Driver, version 20.0
[    20.366] (II) MALI: driver for Mali Framebuffer: mali
[    20.366] (WW) Falling back to old probe method for mali
[    20.366] (II) MALI(0): using /dev/fb0
[    20.366] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    20.366] (II) MALI(0): [MaliPreInit:1067]: Entering
[    20.366] (II) MALI(0): [MaliGetRec:179]: Entering
[    20.366] (II) MALI(0): [MaliHWInit:829]: Entering
[    20.371] (II) MALI(0): [MaliHWGetDepth:882]: Entering
[    20.371] (II) MALI(0): Creating default Display subsection in Screen section
   "Mali-Screen" for depth/fbbpp 24/32
[    20.371] (==) MALI(0): Depth 24, (==) framebuffer bpp 32
[    20.371] (==) MALI(0): RGB weight 888
[    20.371] (==) MALI(0): Default visual is TrueColor
[    20.371] (==) MALI(0): Using gamma correction (1.0, 1.0, 1.0)
[    20.371] (II) MALI(0): [MaliHWGetVidmem:900]: Entering
[    20.371] (II) MALI(0): [MaliHWGetName:908]: Entering
[    20.371] (II) MALI(0): hardware: OSD FB (video memory: 98304kB)
[    20.372] (**) MALI(0): Option "DRI2" "true"
[    20.372] (**) MALI(0): Option "DRI2_PAGE_FLIP" "true"
[    20.372] (**) MALI(0): Option "DRI2_WAIT_VSYNC" "true"
[    20.372] (**) MALI(0): Option "UMP_CACHED" "true"
[    20.372] (**) MALI(0): Option "UMP_LOCK" "false"
[    20.372] (**) MALI(0): DRI Fullscreen page flip enabled
[    20.372] (**) MALI(0): DRI Fullscreen page flip VSYNC'd
[    20.372] (**) MALI(0): Use cached UMP memory
[    20.372] (**) MALI(0): Don't use umplock across processes
[    20.430] (EE) MALI(0): [mali_drm_open_master:1036] Error: mali_drm_open_master Unable to open DRM: No such file or directory

[    20.430] (EE) MALI(0): [MaliPreInit:1169] Error: Failed to be master of DRM!
[    20.431] (II) UnloadModule: "mali"
[    20.431] (EE) Screen(s) found, but none have a usable configuration.
[    20.431] (EE)
Fatal server error:
[    20.431] (EE) no screens found(EE)
[    20.431] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[    20.431] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    20.431] (EE)
[    20.477] (EE) Server terminated with error (1). Closing log file.
rpcameron
 
Posts: 12
Joined: Fri Apr 15, 2016 3:04 pm

Re: X11 drivers - Odroid-C2

Postby rpcameron » Thu Jun 02, 2016 12:14 am

I should note that I have been unable to get X11 with xf86-video-odroid-c2. If I use xf86-video-fbdev, I get a blank screen and nothing loads. I do, however, get X11 when I use xf86-video-fbturbo-git, which is the mali X driver originally developed for the Allwinner chips.

(When using xf86-video-fbturbo-git, glxgears is getting ~230fps, so perhaps this is the method I ought to be using presently?)
rpcameron
 
Posts: 12
Joined: Fri Apr 15, 2016 3:04 pm

Re: X11 drivers - Odroid-C2

Postby WarheadsSE » Thu Jun 02, 2016 12:18 pm

For giggles, try starting a DM (lightdm, lxdm, etc)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6727
Joined: Mon Oct 18, 2010 2:12 pm

Re: X11 drivers - Odroid-C2

Postby rpcameron » Thu Jun 02, 2016 5:43 pm

I tried GDM. It gives the same results as using 'startx'.

Interesting side-note though: If I use GDM and xf86-video-fbturbo-git, it loads fine on the primary server (:0) with the full resolution: 1920x1080@60Hz; however I do not have any Wayland options for gnome. Yet, once I log in with GDM and the second Xserver starts (:1), the resolution of the second display is limited to 1280x768 (I think that's the correct resolution … I can't check right now as the C2 is back to running my Tvheadend server for the house's TV needs).

`glxgears` run in gnome started via GDM gives less than 100fps. However, if I forgo using a DM and instead start a DE that's heavier than twm via startx, such as XFCE4, `glxgears` gives me about 160fps, about 70fps less than running it in twm.
rpcameron
 
Posts: 12
Joined: Fri Apr 15, 2016 3:04 pm

Re: X11 drivers - Odroid-C2

Postby linfan » Sat Aug 06, 2016 4:17 pm

Just skip all xorg and x11 drivers and go for the fb driver. At least it worked with me. Not ideal but still loads desktop. odroid works best without desktop as i see it.
linfan
 
Posts: 4
Joined: Thu Mar 26, 2015 9:06 pm

Next

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 1 guest