Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ATI Mach64 and Kernel 2.6 not working
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
adastra
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2002
Posts: 106

PostPosted: Thu Apr 01, 2004 8:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Fri Apr 02, 2004 9:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
adastra
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2002
Posts: 106

PostPosted: Fri Apr 02, 2004 10:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Sat Apr 03, 2004 2:30 am    Post subject: Reply with quote

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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Sat Apr 03, 2004 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Sat Apr 03, 2004 5:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Sat Apr 03, 2004 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Sat Apr 03, 2004 6:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Sat Apr 03, 2004 7:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Sat Apr 03, 2004 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Sat Apr 03, 2004 8:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Sat Apr 03, 2004 8:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Sat Apr 03, 2004 8:53 pm    Post subject: Reply with quote

#@&! 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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Sun Apr 04, 2004 10:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Mon Apr 05, 2004 12:37 am    Post subject: Reply with quote

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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Mon Apr 05, 2004 2:06 am    Post subject: Reply with quote

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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Sun Apr 11, 2004 2:01 am    Post subject: Reply with quote

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
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Tue Apr 27, 2004 3:22 pm    Post subject: Reply with quote

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. :(
Back to top
View user's profile Send private message
kon
Apprentice
Apprentice


Joined: 05 Mar 2004
Posts: 156
Location: Russia. Saint-Petersburg

PostPosted: Wed May 26, 2004 7:48 pm    Post subject: Reply with quote

1 xorg-x11 have xv support for mach64
2 http://www.freedesktop.org/~dri/snapshots/common-20040526-linux.i386.tar.bz2

and
3 http://www.freedesktop.org/~dri/snapshots/mach64-20040526-linux.i386.tar.bz2

and i have DRI on my 2.6.5-gentoo-r1
Back to top
View user's profile Send private message
johnsteele
n00b
n00b


Joined: 30 Apr 2004
Posts: 13

PostPosted: Tue Jun 29, 2004 11:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
eikketk
Apprentice
Apprentice


Joined: 03 Jun 2003
Posts: 270
Location: Belgium

PostPosted: Thu Jul 01, 2004 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum