LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-18-2004, 06:50 PM   #1
daemonTED
Member
 
Registered: Jan 2004
Location: brisbane AUS
Distribution: Sid with kernel 2.6.7
Posts: 30

Rep: Reputation: 16
radeon 9600 no direct rendering on debian


hi,
i have recently installed Debian Woody. i am in the process of trying to get my radeon 9600 se video card to work. so far i have installed the experimental X4.3 and the fglrx driver for 4.3, and updated my kernel-version to 2.4.24. it would seem that 2d acceleration is working, but 3d is not. i have been told by another person who owns a similar radeon card that i should be able to utilize 3d acceleration ???


one problem seems to be that i cannot get the agpgart module to load:

/lib/modules/2.4.24/kernel/drivers/char/agp/agpgart.o: init_module: Invalid argument
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.24/kernel/drivers/char/agp/agpgart.o: insmod /lib/modules/2.4.24/kernel/drivers/char/agp/agpgart.o failed
/lib/modules/2.4.24/kernel/drivers/char/agp/agpgart.o: insmod agpgart failed


for some reason lspci lists to video adapters (i only have one card and definitely no embedded adapter):

01:00.0 VGA compatible controller: ATI Technologies Inc: Unknown device 4151
01:00.1 Display controller: ATI Technologies Inc: Unknown device 4171

X tries to load video onto 01:00.1, but fails and then seems to fall back to 01:00.0. i don't know if this has anything to do with the problem, but i thought i should include the info.


noticed interesting warnings in kernel compile section char drm:

drm_os_linux.h:16: warning: #warning the author of this code needs to read up on list_entry
In file included from radeon_drv.c:35:
radeon_drv.h:846: warning: #warning PCI posting bug
In file included from drm_dma.h:33,
from radeon_drv.c:42:
drm_os_linux.h:16: warning: #warning the author of this code needs to read up on list_entry
In file included from radeon_drv.c:38:
drm_agpsupport.h: In function `radeon_agp_acquire':
drm_agpsupport.h:82: warning: suggest parentheses around assignment used as truth value


also found this part of XFree86.0.log rather interesting and potentially useful to someone who knows more than i do :

II) fglrx(0): UMM area: 0xc0500000 (size=0x07b00000)
(II) fglrx(0): driver needs XFree86 version: 4.3.x
(II) fglrx(0): detected XFree86 version: 4.3.0
(II) Loading extension ATIFGLRXDRI
(II) fglrx(0): doing DRIScreenInit
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 "fglrx"
(II) fglrx(0): [drm] drmOpen failed
(EE) fglrx(0): DRIScreenInit failed!
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *
(II) fglrx(0): FBADPhys: 0xc0000000 FBMappedSize: 0x08000000
(II) fglrx(0): FBMM initialized for area (0,0)-(1024,8191)
(II) fglrx(0): FBMM auto alloc for area (0,0)-(1024,768) (front color buffer - assumption)
(==) fglrx(0): Backing store disabled
(==) fglrx(0): Silken mouse enabled
(II) fglrx(0): Using hardware cursor (scanline 768)
(II) fglrx(0): Largest offscreen area available: 1024 x 7419
(**) Option "dpms"
(**) fglrx(0): DPMS enabled
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
Solid Horizontal and Vertical Lines
Offscreen Pixmaps
Setting up tile and stipple cache:
32 128x128 slots
32 256x256 slots
16 512x512 slots
(II) fglrx(0): Acceleration enabled
(II) fglrx(0): Direct rendering disabled
(II) Loading extension FGLRXEXTENSION
(II) Loading extension ATITVOUT
(==) RandR enabled
(II) Setting vga for screen 0.


i hope this is enough information to describe properly the problems i am having with my display. i am a newbie to linux, so none of this really makes much sense to me.
i would be very greatful for any assistance with this matter. i NEED 3d accel as i am dying to install and run QuakeForge

-daemonTED
 
Old 01-19-2004, 01:57 AM   #2
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
i also have 9600 pro and its working 3d now at LAST

i recompiled the kernel

From the ATI Linux driver page ( http://www.ati.com/support/drivers/l...eon-linux.html ) download the latest driver for XFree86 4.3.0 to /tmp. The file name should be similar to fglrx-glc22-4.3.0-3.7.0.i386.rpm.

As root run the following commands:
cd /tmp
alien fglrx-glc22-4.3.0-3.7.0.i386.rpm
dpkg --force-overwite -i fglrx-glc22_4.3.0-4.7_i386.deb
cd /lib/modules/fglrx/build_mod
./make.sh
cd /lib/modules/fglrx
./make_install.sh
fglrxconfig

After completing your X configuration using fglrxconfig, press CTRL-ALT-BACKSPACE to restart X
 
Old 01-19-2004, 06:58 AM   #3
daemonTED
Member
 
Registered: Jan 2004
Location: brisbane AUS
Distribution: Sid with kernel 2.6.7
Posts: 30

Original Poster
Rep: Reputation: 16
Unhappy thankyou, but didn't work :(

hmm, i am very greatful for heema's prompt reply, but unfortunately that did not help my situation. i recompiled the kernel when i updated to 2.4.24, so i figure that step was covered.
since updating my kernel i had not done both the .deb install and the manual fglrx kernel module install so, as heema's instructions specified, i tried that. (i had only done the fglrx kernel module install - ./make.sh ./make_install.sh - after updating to 2.4.24)
i then proceeded to run fglrxconfig (is there something that i could have done wrong in that - can anyone help me with this one?), and saved it at the end as fglrxconfig wishes to do.
after following those steps, i restarted X.
still no direct rendering
tried running tuxkart racer as a test too - still got 2fps approx

i am starting to wonder if i have done something really wrong in my setup.
the only difference in my problem to what it would seem heema experienced is that i have the radeon 9600 SE, not radeon 9600 PRO. -would this make a difference????

HELP

-daemonTED
 
Old 01-19-2004, 07:11 AM   #4
daemonTED
Member
 
Registered: Jan 2004
Location: brisbane AUS
Distribution: Sid with kernel 2.6.7
Posts: 30

Original Poster
Rep: Reputation: 16
and just a quick li'l ditty - could this possibly be because i am running Woody?
-i do not have a full understanding as to whether it is only the kernel version that affects such compatibilities, or the also the distribution
???

-daemonTED
 
Old 02-16-2004, 04:30 PM   #5
Zolex
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
I'm quite nOOb in Linux and I also have a problem with Radeon Driver

I have followed the instruction descibe by heema, but when I launch Gnome (with x), it starts but I receive the message "Symbol from module /usr/X11R6/lib/modules/drivers/fglrx_drv.o is unresolved"

My kernel is 2.6.2.

Any idea ?
 
Old 07-13-2004, 01:03 PM   #6
unknown111
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Rep: Reputation: 0
Same thing here. I encountered the same problems on Debian with ATI Radeon 9600 Pro. Anyone know how to fix the problem?
 
Old 07-15-2004, 04:38 AM   #7
daemonTED
Member
 
Registered: Jan 2004
Location: brisbane AUS
Distribution: Sid with kernel 2.6.7
Posts: 30

Original Poster
Rep: Reputation: 16
unknown111 - what kernel and distro and such are you running?
really need more info.
i would suggest running 2.6.7. it is really good for things like DMA too.
also, are you running X4.3?

please provide as much information as possible
 
Old 10-27-2004, 02:34 AM   #8
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Rep: Reputation: 15
Quote:
Originally posted by heema
i also have 9600 pro and its working 3d now at LAST

i recompiled the kernel

From the ATI Linux driver page ( http://www.ati.com/support/drivers/l...eon-linux.html ) download the latest driver for XFree86 4.3.0 to /tmp. The file name should be similar to fglrx-glc22-4.3.0-3.7.0.i386.rpm.

As root run the following commands:
cd /tmp
alien fglrx-glc22-4.3.0-3.7.0.i386.rpm
dpkg --force-overwite -i fglrx-glc22_4.3.0-4.7_i386.deb
cd /lib/modules/fglrx/build_mod
./make.sh
cd /lib/modules/fglrx
./make_install.sh
fglrxconfig

After completing your X configuration using fglrxconfig, press CTRL-ALT-BACKSPACE to restart X
I am also trying to install these on Debian with a 9600 Pro.
I am using Debian Sid, kernel 2.6.7-1-k7 (downloaded the kernel-image, headers, kernel source).

Supposedly it installs the .deb I made with alien just fine:
Code:
debian:/home/pibby/Desktop# dpkg --force-overwrite -i fglrx_4.3.0-4.14_i386.deb (Reading database ... 51147 files and directories currently installed.)
Preparing to replace fglrx 4.3.0-4.14 (using fglrx_4.3.0-4.14_i386.deb) ...
Unpacking replacement fglrx ...
Setting up fglrx (4.3.0-4.14) ...
When I go into /lib/modules/fglrx/build_mod and do 'sh make.sh' I run into this:
Code:
debian:/lib/modules/fglrx/build_mod# sh make.sh
ATI module generator V 2.0
==========================
initializing...
Error:
XFree86 drm includes at /lib/modules/2.6.7-1-k7/build/include/../drivers/char/drm do not fit this driver.
This driver is designed to only work with X4.1.0 or higher.
You can match this by getting Linux kernel 2.4.8 or higher.
Your next step says to 'cd ..' and do './make_install.sh' but because of the above hangup I cannot do that and therefore am stuck when it comes to installing these drivers.

Any ideas?
 
Old 10-28-2004, 06:13 PM   #9
daemonTED
Member
 
Registered: Jan 2004
Location: brisbane AUS
Distribution: Sid with kernel 2.6.7
Posts: 30

Original Poster
Rep: Reputation: 16
i used to run a radeon 9600se. there was quite a bit of hassle invlolved, but i did get it going. this could be a stupid question, but could it have anything to do with you entering 'sh make.sh' rather than just './make.sh' ??
 
Old 10-28-2004, 07:37 PM   #10
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Rep: Reputation: 15
Well I tried that, this was the outcome:
Code:
debian:/lib/modules/fglrx/build_mod# ./make.sh
bash: ./make.sh: Permission denied
debian:/lib/modules/fglrx/build_mod# su -
debian:/lib/modules/fglrx/build_mod# ./make.sh
-su: ./make.sh: Permission denied
Tried as both 'su' and 'su -' :-/
 
Old 10-30-2004, 09:34 PM   #11
daemonTED
Member
 
Registered: Jan 2004
Location: brisbane AUS
Distribution: Sid with kernel 2.6.7
Posts: 30

Original Poster
Rep: Reputation: 16
ahh, okay. have you done chmod to make it so that make.sh is executable?
if you haven't, you will also have to chmod make_install.sh

in case you are not familiar with chmod, as root:

chmod +x make.sh

then

chmod +x make_install.sh


i hope this helps a little as i know how much of a PITA installing a radeon on linux is
 
Old 10-31-2004, 04:06 AM   #12
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Rep: Reputation: 15
Well I gave that a try, still getting that same error though. Argh, why must things be so difficult sometimes

Code:
debian:/lib/modules/fglrx/build_mod# ./make.sh
ATI module generator V 2.0
==========================
initializing...
Error:
XFree86 drm includes at /lib/modules/2.6.7-1-k7/build/include/../drivers/char/drm do not fit this driver.
This driver is designed to only work with X4.1.0 or higher.
You can match this by getting Linux kernel 2.4.8 or higher.
 
Old 11-03-2004, 09:33 AM   #13
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Rep: Reputation: 15
Installed kernel 2.6.9 in hopes that there might be a slight miracle and things would install properly, but still getting the same:
Code:
ATI module generator V 2.0
==========================
initializing...
Error:
XFree86 drm includes at /lib/modules/2.6.9-1-k7/build/include/../drivers/char/drm do not fit this driver.
This driver is designed to only work with X4.1.0 or higher.
You can match this by getting Linux kernel 2.4.8 or higher.
SysInfo: Linux 2.6.9-1-k7 | AMD Athlon(tm) XP 3000+ 2166.596 MHz | Bogomips: 4276.22 | Mem: 408/504M | Diskspace: 145.68G Free: 127.97G | Procs: 64 | Screen: ATI Technologies Inc RV350 AP [Radeon 9600] @ 1280x1024 (24 bpp)
 
Old 11-08-2004, 06:54 AM   #14
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Rep: Reputation: 15
Well I tried using the package "fglrx-driver" from Ubuntu's apt sources. That seemed to install fine, i.e. no error messages. However, I still get something like "FATAL: module fglrx does not exist" or something to that effect. So, I uninstalled that and am back to trying to use the official ATI drivers, but still getting no where.
Please oh please help!
 
Old 11-08-2004, 07:40 AM   #15
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Rep: Reputation: 15
Finally, a solution!

http://www.linuxquestions.org/questi...826#post646826

Basically, as pointed out in the howto, the make.sh file is looking for the drm drivers in the wrong place, so I simply copied the drm directory from the kernel source to the lib/modules section where it should be (before there were just 2 files, no drivers of any kind):
cp -Rf /usr/src/kernel-source-2.6.9/drivers/char/drm/ /lib/modules/2.6.9-1-k7/build/drivers/char/

And now....

pibby@poopsmith:~$ glxinfo
direct rendering: Yes

pibby@poopsmith:~$ glxgears
17114 frames in 5.0 seconds = 3422.800 FPS
23196 frames in 5.0 seconds = 4639.200 FPS
23186 frames in 5.0 seconds = 4637.200 FPS
23115 frames in 5.0 seconds = 4623.000 FPS
23290 frames in 5.0 seconds = 4658.000 FPS
23257 frames in 5.0 seconds = 4651.400 FPS
23195 frames in 5.0 seconds = 4639.000 FPS
23082 frames in 5.0 seconds = 4616.400 FPS
23204 frames in 5.0 seconds = 4640.800 FPS

pibby@poopsmith:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9600 Generic
OpenGL version string: 1.3.4641 (X4.3.0-3.14.1)

Hope this helps someone else in the future and thanks to those who tried to help out with my problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
direct rendering: No - 9600 schneidz Linux - Software 5 08-25-2005 07:41 PM
Direct Rendering with Radeon 9600, Slackware 10 and Kernel 2.4.26 Nigh Unstoppabl Linux - Hardware 2 08-02-2004 07:15 PM
Slackware 10, 2.4.26 kernel, and a Radeon 9600 direct rendering help Nigh Unstoppabl Linux - Newbie 0 07-15-2004 12:35 AM
ATI Radeon 9600 pro, Mandrake 10.0, Nforce2 Mobo, no direct rendering :( DarkNebula Linux - Hardware 10 06-01-2004 11:16 AM
ATI Radeon Direct Rendering chodviolin Linux - Hardware 0 03-27-2004 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration