You are not logged in.

#1 2017-05-06 12:54:57

Panadestein
Member
From: Lille, France
Registered: 2017-04-08
Posts: 51

Can't build xf86-video-mga driver for Dell PowerEdge T310

Hello community.

I have exactly the same situation that describes this thread. So my video card is a Matrox G200eW (WDDM 1.2), and it needs a deprecated driver to work properly (untill what I know so far, please correct me if I'm wrong).

I tried to build the driver from the source in Github (as suggested in the mentioned thread), but I'm getting a dependences problem (as expected from a deprecated driver), as can be seen:

[rpanades@localhost xf86-video-mga]$ makepkg -sri
==> Making package: xf86-video-mga 1.6.3-4 (Sat May  6 14:30:58 CEST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
error: target not found: X-ABI-VIDEODRV_VERSION=19
==> ERROR: 'pacman' failed to install missing dependencies.
==> WARNING: Failed to remove installed dependencies.

Any suggestion to solve the problem? Thanks in advance.

Last edited by Panadestein (2017-05-06 13:15:05)


python -c 'import this' | awk 'NR == 5'

Offline

#2 2017-05-08 12:32:03

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Can't build xf86-video-mga driver for Dell PowerEdge T310

That PKGBUILD is a few years old and needs some adjusting.

Check the url where it downloads from to verify what the latest version is, then adjust pkgver in the PKGBUILD so it will use that.
X-ABI-VIDEODRV_VERSION is set by xorg-server package, check in it's PKGBUILD what the current version is.

You may get other errors after making those adjustements.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2017-05-08 12:47:48

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Can't build xf86-video-mga driver for Dell PowerEdge T310

Moving from "Applications & Desktop Environments" to "AUR Issues, Discussion & PKGBUILD Requests".


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#4 2017-05-24 01:12:35

warezIbanez
Member
Registered: 2017-03-27
Posts: 14

Re: Can't build xf86-video-mga driver for Dell PowerEdge T310

Since I too have been... graced... with a computer with a Matrox video card and looking to put some use into it, (a Millenium P650 card by the way,) I have been looking for a solution to this as well.

Digging a little deeper, I found on the X.org site that there are a few newer drivers- 1.6.4, 1.9.99, and 1.9.100. However, I wanted to try to get 1.6.3 to work since I couldn't find the sha256 values for either three. I went ahead and altered the PKGBUILD to state on the following lines of the script:

makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=23')
conflicts=('xorg-server<1.19' 'X-ABI-VIDEODRV_VERSION=23' 'X-ABI-VIDEODRV_VERSION>=24')

So far, this is what I have gotten: https://paste.pound-python.org/show/FoK … TjT69PXE6/ though for some reason it doesn't show the errors in the paste:

mga_driver.c:4025.27: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  pScreen->BlockHandler = MGABlockHandler;
mga_driver.c:1099:6: warning: ignoring return value of 'MGAMapMem', declared with attribute warn_unused_result [-Wunused-result]
  MGAMapMem(pScrn);
mga_driver.c:1139:17: warning: ignoring return value of 'MGAMapMem', declared with attribute warn_unused_result [-Wunused-result]
  MGAMapMem(pScrn);
mga_driver.c:978:2: warning: ignoring return value of 'MGAMapMem', declared with attribute warn_unused_result [-Wunused-result]
  MGAMapMem(pScrn);
make[2]: *** [Makefile:465: mga_driver.lo] Error 1
make[1]: *** [Makefile:382: all-recursive] Error 1
make: *** [Makefile:313: all] Error 2
==> ERROR: A failure occurred in build(). Aborting...

So I have probably missed something in the PKGBUILD, but I'm not entirely sure what that could be.

Offline

#5 2017-05-24 11:17:10

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Can't build xf86-video-mga driver for Dell PowerEdge T310

However, I wanted to try to get 1.6.3 to work since I couldn't find the sha256 values for either three

1.9.99 and 1.9.100 are from 2007, so unlikely to be useful.

1.6.4 and 1.6.5 are signed, so makepkg can verify them for you.

[ ]	xf86-video-mga-1.6.4.tar.gz	2015-02-19 21:45 	560K	 
[ ]	xf86-video-mga-1.6.4.tar.gz.sig	2015-02-19 21:45 	543 	 
[ ]	xf86-video-mga-1.6.5.tar.bz2	2017-01-17 22:39 	467K	 
[ ]	xf86-video-mga-1.6.5.tar.bz2.sig	2017-01-17 22:39 	543 	 
[ ]	xf86-video-mga-1.6.5.tar.gz	2017-01-17 22:39 	567K	 
[ ]	xf86-video-mga-1.6.5.tar.gz.sig	2017-01-17 22:39 	543 	 

just put the archive and it's matching *.sig in sources array.

Last edited by Lone_Wolf (2017-05-24 11:17:27)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2017-05-24 20:11:16

Panadestein
Member
From: Lille, France
Registered: 2017-04-08
Posts: 51

Re: Can't build xf86-video-mga driver for Dell PowerEdge T310

Lone_Wolf wrote:

just put the archive and it's matching *.sig in sources array.

Thanks for the help! I managed to install version 1.6.5 following your advice. However, I still have a very bad performance, and Xorg takes a lot of CPU.

This is my full Xorg.0.log , but this errors cached my attention:

[   558.637] (II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w,
        mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI,
        mgag200 SE A PCI, mgag200 SE B PCI, mgag200 EV Maxim,
        mgag200 ER SH7757, mgag200 eW Nuvoton, mgag200 eW3 Nuvoton,
        mgag200eH, mgag400, mgag550
[   558.637] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   558.637] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   558.637] (EE) mga: The PCI device 0x532 at 01@00:03:0 has a kernel module claiming it.
[   558.637] (EE) mga: This driver cannot operate until it has been unloaded.
[   558.637] (EE) mga: The PCI device 0x532 at 01@00:03:0 has a kernel module claiming it.
[   558.637] (EE) mga: This driver cannot operate until it has been unloaded.
[   558.637] (II) modeset(0): using drv /dev/dri/card0
[   558.637] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   558.637] (II) modeset(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[   558.637] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[   558.637] (==) modeset(0): RGB weight 888
[   558.637] (==) modeset(0): Default visual is TrueColor

python -c 'import this' | awk 'NR == 5'

Offline

#7 2017-05-24 22:44:58

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Can't build xf86-video-mga driver for Dell PowerEdge T310

[   558.637] (EE) mga: The PCI device 0x532 at 01@00:03:0 has a kernel module claiming it.

that's a bit weird, but lspci -k should help to determine which kernel module that is.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB