View previous topic :: View next topic |
Author |
Message |
aidinskas n00b
Joined: 04 Apr 2003 Posts: 28
|
Posted: Wed Apr 30, 2003 6:33 pm Post subject: drm again. please help |
|
|
Hello,
I am new to Linux and I can't find what's wrong with DRM and why I can't get it working! Here is what i found in my XFree log:
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module "agpgart"
[drm] failed to load kernel module "radeon"
(II) RADEON(0): [drm] drmOpen failed
(EE) RADEON(0): [dri] DRIScreenInit failed. Disabling DRI.
I guess that means that I have no agpgart and radeon modules installed, but i am sure that i compiled them into kernel!
Could anybody please help me?
Thanks |
|
Back to top |
|
|
aidinskas n00b
Joined: 04 Apr 2003 Posts: 28
|
Posted: Wed Apr 30, 2003 7:56 pm Post subject: |
|
|
recompiled agpgart and radeon dri driver as module. emerged xfree-drm again. now i get:
added 1 reserved context for kernel
(EE) RADEON(0): [dri] RADEONDRIScreenInit failed because of a version mismatch.
[dri] radeon.o kernel module version is 1.1.1 but version 1.2.1 or newer is needed.
[dri] Disabling DRI.
this is pretty strange to me. i did xfree-drm. didn't it replace old modules? |
|
Back to top |
|
|
svkelley n00b
Joined: 31 Mar 2003 Posts: 21
|
Posted: Thu May 01, 2003 12:20 am Post subject: |
|
|
I have a Radeon 7500 AGP card and I have the same problem.
There is a problem with either xfree-drm or in the xfree build that
causes a mismatch in the reported version. I don't know how
to correct this problem.
Sean |
|
Back to top |
|
|
stimuli Apprentice
Joined: 16 Dec 2002 Posts: 292 Location: Dartmouth, NS, Canada
|
Posted: Thu May 01, 2003 6:45 am Post subject: |
|
|
Sounds to me like you are doing things in the wrong order.
1) build kernel with:
character devices > dev agpgart as MODULE
Apple Uninorth Support SELECTED
Direct Rendering Manager SELECTED
and be sure NOT to select ANY DRM 4.1 drivers!!!!
2) re-read the above sentence.
3) build and install the kernel
4) emerge xfree-drm ## <- do not forget to do this every time! (to avoid snafu's)
5) make sure your /etc/X11/XF86Config-4 has the necessary info to use DRM/AGP. See Xfree86.org for details. I *think* the latest xeasyconf has all necessary info in it.
reboot from your new kernel. startx, and try emerge armagetron or whatever. |
|
Back to top |
|
|
adikgede n00b
Joined: 26 Mar 2003 Posts: 17
|
Posted: Thu May 01, 2003 6:37 pm Post subject: |
|
|
Quote: |
1) build kernel with:
character devices > dev agpgart as MODULE
Apple Uninorth Support SELECTED
Direct Rendering Manager SELECTED]
|
I am a bit stuck on linux-2.4.20-ppc-r4 because there is no option to enable Uninorth Support underneath agpart. If I enable agpart make modules errors out at agpart_be.c with a lot of defined but not used errors in /usr/src/linux/drivers/char/agp/ |
|
Back to top |
|
|
aidinskas n00b
Joined: 04 Apr 2003 Posts: 28
|
Posted: Thu May 01, 2003 7:10 pm Post subject: |
|
|
I don't know what I did but i almost got drm working. The problem is that when I start XFree everything is messed up. Could anybody post it's XF86Config with dri module enabled? I am using Radeon M7 |
|
Back to top |
|
|
adikgede n00b
Joined: 26 Mar 2003 Posts: 17
|
Posted: Thu May 01, 2003 7:55 pm Post subject: |
|
|
See a thread further down about DRI now working
I used Xeasyconf selecting auto everything and then just manually changed things one at a time.
Code: |
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
#FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "extmod"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
Load "speedo"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mice"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
UseModes "Modes0"
HorizSync 30-70
VertRefresh 50-160
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "Dac6Bit" # [<bool>]
#Option "Dac8Bit" # [<bool>]
#Option "ForcePCIMode" # [<bool>]
#Option "CPPIOMode" # [<bool>]
#Option "CPusecTimeout" # <i>
#Option "AGPMode" # <i>
#Option "AGPFastWrite" # [<bool>]
#Option "AGPSize" # <i>
#Option "RingSize" # <i>
#Option "BufferSize" # <i>
#Option "EnableDepthMoves" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "NoBackBuffer" # [<bool>]
#Option "PanelOff" # [<bool>]
#Option "DDCMode" # [<bool>]
#Option "CloneDisplay" # <i>
#Option "CloneMode" # [<str>]
#Option "CloneHSync" # [<str>]
#Option "CloneVRefresh" # [<str>]
#Option "UseFBDev" # [<bool>]
#Option "VideoKey" # <i>
Identifier "Card0"
Option "UseFBDev"
Driver "ati"
VendorName "ATI Technologies Inc"
BoardName "Radeon Mobility M7 LW [Radeon Mobility 7500]"
BusID "PCI:0:16:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Modes"
Identifier "Modes0"
# mode generated by Xeasyconf
Modeline "1024x768" 65.003 1024 1048 1184 1344 768 771 777 806 -HSync -VSync
|
|
|
Back to top |
|
|
adikgede n00b
Joined: 26 Mar 2003 Posts: 17
|
Posted: Sun May 04, 2003 3:44 pm Post subject: |
|
|
aidinskas wrote: | recompiled agpgart and radeon dri driver as module. emerged xfree-drm again. now i get:
added 1 reserved context for kernel
(EE) RADEON(0): [dri] RADEONDRIScreenInit failed because of a version mismatch.
[dri] radeon.o kernel module version is 1.1.1 but version 1.2.1 or newer is needed.
[dri] Disabling DRI.
this is pretty strange to me. i did xfree-drm. didn't it replace old modules? |
Against the advice of people who know better than me this is the only way I can get DRI to work
If I don't compile the modules the error I get in my X logs are that the modules couldn't be loaded (this after emerging xfree-drm)
The error above is the error I get if I build the modules in the kernel but don't emerge xfree-drm
I am using
iBook 2.2
2.4.20-r3
xfree 4.30 r3 and xfree drm r2 |
|
Back to top |
|
|
adikgede n00b
Joined: 26 Mar 2003 Posts: 17
|
Posted: Sun May 04, 2003 3:45 pm Post subject: |
|
|
aidinskas wrote: | recompiled agpgart and radeon dri driver as module. emerged xfree-drm again. now i get:
added 1 reserved context for kernel
(EE) RADEON(0): [dri] RADEONDRIScreenInit failed because of a version mismatch.
[dri] radeon.o kernel module version is 1.1.1 but version 1.2.1 or newer is needed.
[dri] Disabling DRI.
this is pretty strange to me. i did xfree-drm. didn't it replace old modules? |
Against the advice of people who know better than me this is the only way I can get DRI to work
If I don't compile the modules the error I get in my X logs are that the modules couldn't be loaded (this after emerging xfree-drm)
The error above is the error I get if I build the modules in the kernel but don't emerge xfree-drm
I am using
iBook 2.2
2.4.20-r3
xfree 4.30 r3 and xfree drm r2 |
|
Back to top |
|
|
homar Tux's lil' helper
Joined: 28 Jun 2002 Posts: 94
|
Posted: Sun May 04, 2003 5:10 pm Post subject: |
|
|
Is your /usr/src/linux pointing to the running kernel? |
|
Back to top |
|
|
stimuli Apprentice
Joined: 16 Dec 2002 Posts: 292 Location: Dartmouth, NS, Canada
|
Posted: Sun May 04, 2003 11:02 pm Post subject: |
|
|
For the sake of clarity, let point out something:
The DRI modules included w/ the kernel are hopelessly out of date, and will not work at all. That's why AFTER you build the kernel as outlined above, you ALWAYS emerge xfree-drm. xfree-drm are _working_ and current DRI modules for X, and installing them replaces any old kernel-source DRI modules.
FYI, here is my XF86Config for an 867mhz PBG4 w/ radeon 9000 and beautiful 2d/3d/video acceleration:
Code: | Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/artwiz/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "extmod"
Load "glx"
Load "dri"
Load "dbe"
# Load "record"
# Load "xtrap"
Load "speedo"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mice"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Apple"
ModelName "TiBook TFT"
UseModes "Modes0"
HorizSync 40-80
VertRefresh 50-160
Option "DPMS"
EndSection
Section "Device"
Identifier "Card0"
Option "UseFBDev"
Option "ShadowFB"
Option "ForcePCIMode" "false"
Option "AGPMode" "4"
Driver "radeon"
VendorName "ATI Technologies Inc"
BoardName "Radeon R250 Lf [Radeon Mobility 9000]"
BusID "PCI:0:16:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1280x854" "640x480" "800x600" "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x854" "640x480" "800x600" "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x854" "640x480" "800x600" "1024x768"
EndSubSection
EndSection
Section "Modes"
Identifier "Modes0"
# mode generated by Xeasyconf
Modeline "1280x854" 79.815 1280 1296 1408 1536 854 855 858 866 -HSync -VSync
EndSection
Section "DRI"
Mode 0666
EndSection
|
|
|
Back to top |
|
|
|