Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem loading Mach64 DRM module compiled from CVS [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
DiskDoc
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 196
Location: Finland

PostPosted: Wed Jun 22, 2005 10:28 pm    Post subject: Problem loading Mach64 DRM module compiled from CVS [solved] Reply with quote

I followd the guide at http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers as best I could and indeed produced a module, mach64_dri.so. Problem is, when I try to insmod it it gives
Code:
localhost modules # insmod mach64_dri.so
insmod: error inserting 'mach64_dri.so': -1 Invalid module format


I'm thinking I've missed some step..the guide is a bit vague on what to do next.
Quote:
That's the kernel, build it, install it, boot it.

_________________
"So slay me now! I have little magic left."
- Kallak, leader of the royal mystics


Last edited by DiskDoc on Thu Jun 23, 2005 11:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
Minos
Apprentice
Apprentice


Joined: 09 May 2003
Posts: 177

PostPosted: Thu Jun 23, 2005 4:21 am    Post subject: Reply with quote

mach64_dri.so isn't the kernel module, it's a driver for X.org. You're looking for mach64.ko. Personally, I just emerged x11-base/x11-drm-20050502 with VIDEO_CARDS="mach64".
Back to top
View user's profile Send private message
DiskDoc
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 196
Location: Finland

PostPosted: Thu Jun 23, 2005 12:56 pm    Post subject: x11-drm Reply with quote

Thanks for the tip! The wiki is kindof obsolete since I didn't succeed using it and you can handle it nicely through Portage. I thought the drm modules in Portage were for 2.4 kernels only but not so anymore..

Still, I'm having trouble. I have a kernel with dri turned off, x11-drm-20050502 installed and modules loaded:

Code:
localhost ~ # lsmod
Module                  Size  Used by
mach64                 51040  0
drm                    62072  1 mach64


I've but the DRI-section with Mode 0666 in xorg.conf but glxinfo says no direct rendering. The only thing wrong in the X.org log I can see is a notice about not having enough video memory.

http://people.arcada.fi/~englundc/tmp/Xorg.0.log

What's wrong?
_________________
"So slay me now! I have little magic left."
- Kallak, leader of the royal mystics
Back to top
View user's profile Send private message
DiskDoc
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 196
Location: Finland

PostPosted: Thu Jun 23, 2005 11:13 pm    Post subject: Solved Reply with quote

The solution was found here: http://dri.freedesktop.org/wiki/DriTroubleshooting

Quote:
If there are no [dri] lines and it says Direct Rendering disabled, you may be trying to use too high of a resolution. grep static\ buffer /var/log/XFree86.0.log will find a line like:

(WW) ATI(0): DRI static buffer allocation failed -- need at least 4608 kB video memory

If so, reduce your resolution or color depth. The video ram necessary for a given resolution/depth is width*height*(depth/8)*3 kilobytes. (The 3 is for front, back, and depth buffers).


At 800x600 dri works like it should. That resolution however, isn't adequate for much anything so it turns out the card will be used just as an ordinary 2D card. After allt this work :-/ Aw..
_________________
"So slay me now! I have little magic left."
- Kallak, leader of the royal mystics
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
Page 1 of 1

 
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