Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2006 18:20:17 GMT
From:      "Louis V. Lambrecht" <lvl@lvlamb.itgo.com>
To:        freebsd-x11@FreeBSD.org
Subject:   ports/92169: Xorg 6.9, Matrox mga, dri broken (MGAGetBOARDHANDLESize undefined)
Message-ID:  <200605041820.k44IKHHI079621@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/92169; it has been noted by GNATS.

From: "Louis V. Lambrecht" <lvl@lvlamb.itgo.com>
To: bug-followup@FreeBSD.org, cmt@burggraben.net
Cc:  
Subject: ports/92169: Xorg 6.9, Matrox mga, dri broken (MGAGetBOARDHANDLESize
 undefined)
Date: Thu, 04 May 2006 20:20:30 +0200

 IMHO, this is no bug, the status should be changed to Closed.
 Reason: static 6.8.2 libaries should be run on Xorg-6.8.2
 
 On the side of Matrox, we are used to download every once binary 
 compiled  (rem: Linux) drivers.
 Matrox support will release the new 6.9/7 xorg drivers assoon as they 
 will be released. That is, xorg release was December last.
 
 What are those Matrox drivers? Not more, nor less then for each version 
 of Xorg/Xfree, a shell script replacing the  X distribution of 
 mga_drv.so and mga_hal_drv.so
 
 Under FreeBSD there is an easy way to compile your own binary drivers.
 First tip came from:
 
 http://forum.matrox.com/mga/viewtopic.php?t=19868
 (this is the direct link, but you will have to accept something)
 then the Andre Albsmeier post.
 
 
 Here is how I dood-it:
 
 1 fetch the latest source from Matrox 
 http://www.matrox.com/mga/support/drivers/files/lnx_43.cfm
 accept and download the sources
 
 2 Tell the port there is another kid on the block, under 
 /usr/ports/x11-server/xorgserver?scripts
 edit the configure
 add these three lines
 
 echo "#define UseMatroxHal YES"                 >> $LOCALDEF
 echo "#define HaveMatroxHal YES"                 >> $LOCALDEF
 echo "#define BuildHalStatic YES"                >> $LOCALDEF
 
 3 make patch
 in the resulting ../work sub-folder, find the mga folder
 
 4 replace the mga folder with  the matrox sources
 
 5 make && make install && make clean
 
 6 save a copy of configure, mga_drv.so and mga_hal_drv.so in a safe 
 place. This is your own home made Matrox driver update.
 
 This procedure should work for both xorg and xfree as FreeBSD has analog 
 configure scripts.
 
 As the resulting mga**.so drivers are not more, nor less, what Matrox 
 delivers in the binary driver updates, and that those binary updates are 
 not more, nor less, the replacement of the distrubution mga_drv.so, both 
 the binaries you just compiled should be usable on any Linux or *BSD 
 (not tested though).
 Experience told me that, if copying the mga_hal_drv.so in the 
 .../lib/drivers directory does no harm, there is no rule to either use 
 the distribution mga_drv.so or the one you just compiled. Sometimes one 
 works, sometines the other. But this is just a rename of two files.
 
 The new binary drivers should work for both 6.9.0 or 7.0 as there is no 
 code change, just modularization and file hierarchy changes.
 
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605041820.k44IKHHI079621>