View previous topic :: View next topic |
Author |
Message |
adastra Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/103638619242ced280cbeaf.gif)
Joined: 16 Oct 2002 Posts: 106
|
Posted: Thu Apr 01, 2004 8:38 pm Post subject: |
|
|
I HAVE MACH64 WORKING WITH GENTOO-DEV-SOURCES-2.6.4-R1!!!
Here is how I did it:
1.) You need both mach64 branches (mach64-0-0-6-branch AND mach64-0-0-7-branch) checked out from CVS in separate directories. Forget about checking out the Mesa CVS. The 0-0-6-branch has Mesa already in it.
2.) You need the mach64-dri-xv-20030331.diff.gz patch from retinalburn.net.
3.) Apply the kernel patch as instructed on this page. (I don't think it is properly gzipped. You will probably just need to apply the patch without gunzipping it. man patch for more information.)
4.) Compile the mach64-0-0-6-branch (edit the host.def, make World, make install).
5.) Change to the ~/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel directory of the mach64-0-0-7-branch and compile your drivers (make -f Makefile.linux).
6.) Copy the mach64.ko file from here to the proper /lib/modules/.../ directory.
7.) Edit the proper /etc/modules.autoload.d/.../ file to load the mach64 driver.
8.) Reboot and enjoy! (May possibly need to issue an opengl-update xfree)
Works like a charm on my Armada laptop, glxgears gives 300fps in 16bpp at 1024x768. Enough to play UT in 800x600 with all the fancy options off. Incidently, I gained ~100fps by using the following options in my XF86Config:
Code: |
Section "Device"
Identifier "ATI Mach64"
Driver "ati"
VideoRam 8192
Option "AgpSize" "64"
Option "AgpMode" "2"
Option "BufferSize" "2"
Option "LocalTextures" "true"
Option "DMAMode" "async"
# Insert Clocks lines here if appropriate
EndSection
|
Hope this works for those having trouble. Maybe the 0-0-7-branch will work again someday. Until then, this will have to do. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Fri Apr 02, 2004 9:39 pm Post subject: |
|
|
Cool! One less reason for my laptop to stick with 2.4! I'm trying this as soon as I can.
UPDATE: Has anybody tried the packages available here: http://www.freedesktop.org/~dri/snapshots/bleeding-edge/ ??
They seem up to date, and have both Xv and 2.6 support, from what I can tell (not sure). I'll give them a shot. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adastra Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/103638619242ced280cbeaf.gif)
Joined: 16 Oct 2002 Posts: 106
|
Posted: Fri Apr 02, 2004 10:39 pm Post subject: |
|
|
Yes those are the binaries. I believe, and spyderous can correct me if I'm wrong, those are the things that emerge xfree-drm downloads and installs. They never worked on my machine but I really don't know why. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dberkholz Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1125255532581955f8c7117.jpg)
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Sat Apr 03, 2004 2:30 am Post subject: |
|
|
adastra wrote: | Yes those are the binaries. I believe, and spyderous can correct me if I'm wrong, those are the things that emerge xfree-drm downloads and installs. They never worked on my machine but I really don't know why. |
Not quite. The snapshots contain a bunch of stuff that xfree-drm doesn't (2D driver, 3D driver, libGL I think, some other miscellaneous stuff). xfree-drm only provides the kernel module (a.k.a. the DRM or Direct Rendering Manager). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Sat Apr 03, 2004 4:40 pm Post subject: |
|
|
Allright, I just tried those binaries I mentioned before. The kernel module compiles fine under 2.6, however XFree86 b0rks at startup and exits with an error message saying that the driver ABI is at version 7, but it wants version 6.
I currently run the latest XFree86 in stable Portage, ie. 4.3.0-r(something). My guess is that I must run a more recent version of XFree86. Am I right? And will the most recent in unstable Portage do? (I know about those nasty license issues, and therefore it's not really the latest version...) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dberkholz Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1125255532581955f8c7117.jpg)
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Sat Apr 03, 2004 5:17 pm Post subject: |
|
|
IntergalacticWalrus wrote: | Allright, I just tried those binaries I mentioned before. The kernel module compiles fine under 2.6, however XFree86 b0rks at startup and exits with an error message saying that the driver ABI is at version 7, but it wants version 6.
I currently run the latest XFree86 in stable Portage, ie. 4.3.0-r(something). My guess is that I must run a more recent version of XFree86. Am I right? And will the most recent in unstable Portage do? (I know about those nasty license issues, and therefore it's not really the latest version...) |
You need the XFree86 binary from http://www.freedesktop.org/~dri/snapshots/extras/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Sat Apr 03, 2004 6:00 pm Post subject: |
|
|
Tried that binary, now I get the following error instead:
Code: | Required symbol xf86I2CGetScreenBuses from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dberkholz Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1125255532581955f8c7117.jpg)
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Sat Apr 03, 2004 6:47 pm Post subject: |
|
|
IntergalacticWalrus wrote: | Tried that binary, now I get the following error instead:
Code: | Required symbol xf86I2CGetScreenBuses from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! |
|
grep -r xf86I2CGetScreenBuses /usr/X11R6/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Sat Apr 03, 2004 7:26 pm Post subject: |
|
|
spyderous wrote: | IntergalacticWalrus wrote: | Tried that binary, now I get the following error instead:
Code: | Required symbol xf86I2CGetScreenBuses from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! |
|
grep -r xf86I2CGetScreenBuses /usr/X11R6/ |
Code: | Binary file /usr/X11R6/lib/modules/drivers/atimisc_drv.o matches |
*Curses heavily*
What the hell? The bloody symbol was actually there!
I'll try a previous snapshot of the binary package when I'll have the time, maybe it's a one-day issue. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dberkholz Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1125255532581955f8c7117.jpg)
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Sat Apr 03, 2004 7:49 pm Post subject: |
|
|
IntergalacticWalrus wrote: | spyderous wrote: | IntergalacticWalrus wrote: | Tried that binary, now I get the following error instead:
Code: | Required symbol xf86I2CGetScreenBuses from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! |
|
grep -r xf86I2CGetScreenBuses /usr/X11R6/ |
Code: | Binary file /usr/X11R6/lib/modules/drivers/atimisc_drv.o matches |
*Curses heavily*
What the hell? The bloody symbol was actually there!
I'll try a previous snapshot of the binary package when I'll have the time, maybe it's a one-day issue. |
No, see, that mention is the requirement for it, not the existence of it.
Code: | supernova root # grep -r xf86I2CGetScreenBuses /usr/X11R6/
Binary file /usr/X11R6/lib/modules/libi2c.a matches
Binary file /usr/X11R6/lib/modules/drivers/atimisc_drv.o matches |
It's present in newer versions. You might want to try 1) downloading and building the full DRI CVS or 2) xfree-4.3.99. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Sat Apr 03, 2004 8:40 pm Post subject: |
|
|
spyderous wrote: | IntergalacticWalrus wrote: | spyderous wrote: | IntergalacticWalrus wrote: | Tried that binary, now I get the following error instead:
Code: | Required symbol xf86I2CGetScreenBuses from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! |
|
grep -r xf86I2CGetScreenBuses /usr/X11R6/ |
Code: | Binary file /usr/X11R6/lib/modules/drivers/atimisc_drv.o matches |
*Curses heavily*
What the hell? The bloody symbol was actually there!
I'll try a previous snapshot of the binary package when I'll have the time, maybe it's a one-day issue. |
No, see, that mention is the requirement for it, not the existence of it.
Code: | supernova root # grep -r xf86I2CGetScreenBuses /usr/X11R6/
Binary file /usr/X11R6/lib/modules/libi2c.a matches
Binary file /usr/X11R6/lib/modules/drivers/atimisc_drv.o matches |
It's present in newer versions. You might want to try 1) downloading and building the full DRI CVS or 2) xfree-4.3.99. |
So if I emerge the latest xfree in ~x86, I should be all right?
BTW the snapshot binary package I tried was dated 20040328, shouldn't that be recent enough?
Last edited by IntergalacticWalrus on Sat Apr 03, 2004 8:48 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dberkholz Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1125255532581955f8c7117.jpg)
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Sat Apr 03, 2004 8:42 pm Post subject: |
|
|
IntergalacticWalrus wrote: | spyderous wrote: | It's present in newer versions. You might want to try 1) downloading and building the full DRI CVS or 2) xfree-4.3.99. |
So if I emerge the latest xfree in ~x86, I should be all right? |
No, you need 4.3.99 as I said, which is masked in package.mask. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Sat Apr 03, 2004 8:53 pm Post subject: |
|
|
#@&! I just found out the linuxwacom driver does not yet support 4.3.99, so I can't upgrade to 4.3.99 without losing my Wacom.
I guess I'll try compiling DRI from CVS then. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Sun Apr 04, 2004 10:33 pm Post subject: |
|
|
I just updated to 4.3.99, and installed the previously mentionned binary package. Now DRI seems to load perfectly according to /var/log/XFree86.0.log, but I still don't get direct rendering !!! WTF? glxinfo reports that direct rendering is off! ARGH!
Ugh, at least the linuxwacom driver works, unlike what I read about it and 4.3.99... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dberkholz Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1125255532581955f8c7117.jpg)
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Mon Apr 05, 2004 12:37 am Post subject: |
|
|
IntergalacticWalrus wrote: | I just updated to 4.3.99, and installed the previously mentionned binary package. Now DRI seems to load perfectly according to /var/log/XFree86.0.log, but I still don't get direct rendering !!! WTF? glxinfo reports that direct rendering is off! ARGH!
Ugh, at least the linuxwacom driver works, unlike what I read about it and 4.3.99... |
Check the usual suspects: dmesg, /var/log/XFree86.0.log, LIBGL_DEBUG=verbose glxinfo |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Mon Apr 05, 2004 2:06 am Post subject: |
|
|
spyderous wrote: | IntergalacticWalrus wrote: | I just updated to 4.3.99, and installed the previously mentionned binary package. Now DRI seems to load perfectly according to /var/log/XFree86.0.log, but I still don't get direct rendering !!! WTF? glxinfo reports that direct rendering is off! ARGH!
Ugh, at least the linuxwacom driver works, unlike what I read about it and 4.3.99... |
Check the usual suspects: dmesg, /var/log/XFree86.0.log, LIBGL_DEBUG=verbose glxinfo |
LIBGL_DEBUG=verbose glxinfo reports:
Code: | libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mach64_dri.so
libGL error: dlopen /usr/X11R6/lib/modules/dri/mach64_dri.so failed (/usr/X11R6/lib/modules/dri/mach64_dri.so: undefined symbol: _swrast_alloc_aux_buffers)
libGL error: unable to find driver: mach64_dri.so |
Yay, yet more undefined symbols. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Sun Apr 11, 2004 2:01 am Post subject: |
|
|
Just wanted to know: does the new xorg-x11 come with mach64 DRI ??
UPDATE: Turns out that no, it does not. I think I'll try the binary drivers though. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IntergalacticWalrus Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184430277440bbeaa37e068.png)
Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Tue Apr 27, 2004 3:22 pm Post subject: |
|
|
Just to say that I did a CVS build of DRI over xorg-x11, and it works now. However, performance is much less greater than before. ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kon Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_8_-_Squall.gif)
Joined: 05 Mar 2004 Posts: 156 Location: Russia. Saint-Petersburg
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
johnsteele n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Apr 2004 Posts: 13
|
Posted: Tue Jun 29, 2004 11:38 pm Post subject: |
|
|
I know this thread is a little old, but I wanted to know if anyone has had any success building the mach64.ko module against a 2.6.7 kernel? I first tried to use the one I had built from 2.6.5 with no luck, then I've tried to build against gentoo-dev-sources and vanilla 2.6.7 with no luck. Wanted to know others' experience with this. Here's the message I get when I try to build:
#make -f Makefile.linux LINUXDIR=/usr/src/linux-2.6.7 make -C /usr/src/linux-2.6.7 SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.7'
CC [M] /xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.o
In file included from /xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.c:57:
/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h: In function `gamma_do_vm_nopage':
/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:104: error: structure has no member named `count'
make[2]: *** [/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.o] Error 1
make[1]: *** [_module_/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.7'
make: *** [modules] Error 2
any thoughts would be greatly appreciated. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
eikketk Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/13622974494027a5bd8575c.jpg)
Joined: 03 Jun 2003 Posts: 270 Location: Belgium
|
Posted: Thu Jul 01, 2004 9:18 am Post subject: |
|
|
Yeah, is there any news on this? I just got a 3D Rage Pro based pc, and I'd love to get dri and/or xv support on it. Xompiled xorg-x11 6.7.0-r1 yesterday, hope that's a good one
Trying to get the mach64 kernel module compiled now too (kernel oppses on boot, but that could be related to something else of course)
Any updates?
Greetings, Ikke _________________ Working day and night to enhance the Linux Desktop Experience
Homepage |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|