LinuxQuestions.org
Visit Jeremy's Blog.
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 12-23-2003, 02:55 PM   #1
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
Can't locate module fglrx


Hi all,

I'm trying to get this ATI Radeon 9600 pro working with Linux on my brother's machine. If I can't do this then I'll never be able to persuade him to give up Windows!!

Everything works but 3d acceleration. fglrxinfo gives me the following output:

Code:
[richard@localhost richard]$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
But glxgears gives the same frame rate (~340fps) whether I set Option "no_dri" to "yes" or "no" in my /etc/X11/XF86Config-4. Also, tuxracer runs unusably slow.

I notice in the console output when I execute startx:

Code:
modprobe: Can't locate module fglrx
[drm] failed to load kernel module "fglrx"
(EE) fglrx(0): DRIScreenInit failed!
I can't understand why it failed to load the driver. The file seems to be there in /usr/X11R6/lib/modules/drivers:

Code:
[root@localhost drivers]# ll
total 3588
-r--r--r--    1 root     root       117414 Mar 12  2003 apm_drv.o
-r--r--r--    1 root     root        15917 Mar 12  2003 ark_drv.o
-r--r--r--    1 root     root        49262 Mar 12  2003 ati_drv.o
-r--r--r--    1 root     root       130114 Mar 12  2003 atimisc_drv.o
-r--r--r--    1 root     root       151868 Mar 12  2003 chips_drv.o
-r--r--r--    1 root     root        34943 Mar 12  2003 cirrus_alpine.o
-r--r--r--    1 root     root        10048 Mar 12  2003 cirrus_drv.o
-r--r--r--    1 root     root        26307 Mar 12  2003 cirrus_laguna.o
-r--r--r--    1 root     root        24010 Mar 12  2003 cyrix_drv.o
-r--r--r--    1 root     root        10827 Mar 12  2003 dummy_drv.o
-r--r--r--    1 root     root        16094 Mar 12  2003 fbdev_drv.o
-rwxr-xr-x    1 root     root       338902 Sep 22 03:43 fglrx_drv.o*
-r--r--r--    1 root     root       284648 Mar 12  2003 glint_drv.o
-r--r--r--    1 root     root        54891 Mar 12  2003 i128_drv.o
-r--r--r--    1 root     root        43594 Mar 12  2003 i740_drv.o
-r--r--r--    1 root     root       165976 Mar 12  2003 i810_drv.o
drwxr-xr-x    2 root     root         4096 Dec 22 21:59 linux/
-r--r--r--    1 root     root       200902 Mar 12  2003 mga_drv.o
-r--r--r--    1 root     root        72730 Mar 12  2003 neomagic_drv.o
-r--r--r--    1 root     root       275209 Mar 12  2003 nsc_drv.o
-r--r--r--    1 root     root        78667 Mar 12  2003 nv_drv.o
-r--r--r--    1 root     root        95287 Mar 12  2003 r128_drv.o
-r--r--r--    1 root     root       136415 Mar 12  2003 radeon_drv.o
-r--r--r--    1 root     root        39431 Mar 12  2003 rendition_drv.o
-r--r--r--    1 root     root        56100 Mar 12  2003 s3_drv.o
-r--r--r--    1 root     root        79168 Mar 12  2003 s3virge_drv.o
-r--r--r--    1 root     root        78190 Mar 12  2003 savage_drv.o
-r--r--r--    1 root     root        79234 Mar 12  2003 siliconmotion_drv.o
-r--r--r--    1 root     root       443796 Mar 12  2003 sis_drv.o
-r--r--r--    1 root     root        68875 Mar 12  2003 tdfx_drv.o
-r--r--r--    1 root     root        48912 Mar 12  2003 tga_drv.o
-r--r--r--    1 root     root       137975 Mar 12  2003 trident_drv.o
-r--r--r--    1 root     root        68416 Mar 12  2003 tseng_drv.o
-r--r--r--    1 root     root        21959 Mar 12  2003 vesa_drv.o
-r--r--r--    1 root     root        16900 Mar 12  2003 vga_drv.o
-r--r--r--    1 root     root        35020 Mar 12  2003 vmware_drv.o
So I can't understand why the modprobe failed. I assume this must be the root of my problem. Anyone have any ideas? I am using Mandrake 9.1 btw.

Many thanks!
 
Old 12-23-2003, 03:04 PM   #2
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
soryr... you did not say.. but have you installed the ATI rpm?
 
Old 12-23-2003, 03:05 PM   #3
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
also.. do you have the kernel source installed?
 
Old 12-23-2003, 03:24 PM   #4
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Original Poster
Rep: Reputation: 30
ATI rpm was installed, but the kernel source is not. Is a recompilation required?
 
Old 12-23-2003, 10:03 PM   #5
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
regarding your questions, the kernel source was required for compiling your driver

It sounds like a newbie sister at the moment here.
so, we can't help you help on anything unless we know some information about your computer.
do "lspci" and post the output and information about what kind motherboard are you using. That's probably the most important thing.
what kernel are u using? i don't use mandrake so sorry about it.
take look at http://www.linuxquestions.org/questions/showthread.php?s=&threadid=111379
which might help you a little bit.
check did you compile for supporting your radeon card and /dev/agpgart support which all have to compile as M or modules.

Last edited by tricky_linux; 12-23-2003 at 10:08 PM.
 
Old 12-24-2003, 08:41 AM   #6
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Original Poster
Rep: Reputation: 30
Hi,

yes I am a newbie, but you'll be glad to hear I'm not completely helpless. I do require some guidance though. I read the ATI documentation with their driver, and also searched for any related threads, but didn't come across anything about compiling anything. I was told simply to install the rpm I downloaded from ATI's site, and then run fglrxconfig, which I duly did. I now have a working X server, but 3d acceleration does not seem to work, judging by the performance of applications that require it. Xvideo overlays, on the other hand, work perfectly, judging by the quality of DVD playback.

Anyhow, to the information you requested: this machine is using kernel version 2.4.21. The machine's motherboard is a Gigabyte GA 8IG 1000 Pro. The output of lspci is as follows:

Code:
[root@localhost chris]# lspci -v
00:00.0 Host bridge: Intel Corp.: Unknown device 2570 (rev 02)
        Subsystem: Giga-byte Technology: Unknown device 2570
        Flags: bus master, fast devsel, latency 0
        Memory at f0000000 (32-bit, prefetchable) [size=128M]
        Capabilities: [e4] #09 [0106]
        Capabilities: [a0] AGP version 3.0

00:01.0 PCI bridge: Intel Corp.: Unknown device 2571 (rev 02) (prog-if 00 [Norma
l decode])
        Flags: bus master, 66Mhz, fast devsel, latency 64
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        I/O behind bridge: 00009000-00009fff
        Memory behind bridge: f8000000-f9ffffff
        Prefetchable memory behind bridge: d0000000-efffffff

00:1d.0 USB Controller: Intel Corp.: Unknown device 24d2 (rev 02) (prog-if 00 [U
HCI])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at bc00 [size=32]

00:1d.1 USB Controller: Intel Corp.: Unknown device 24d4 (rev 02) (prog-if 00 [U
HCI])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 19
        I/O ports at b000 [size=32]

00:1d.2 USB Controller: Intel Corp.: Unknown device 24d7 (rev 02) (prog-if 00 [U
HCI])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at b400 [size=32]

00:1d.3 USB Controller: Intel Corp.: Unknown device 24de (rev 02) (prog-if 00 [U
HCI])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at b800 [size=32]

00:1d.7 USB Controller: Intel Corp.: Unknown device 24dd (rev 02) (prog-if 20 [E
HCI])
        Subsystem: Giga-byte Technology: Unknown device 5006
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at fa100000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2

00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev c2) (prog-if 00 [N
ormal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
        I/O behind bridge: 0000a000-0000afff
        Memory behind bridge: fa000000-fa0fffff

00:1f.0 ISA bridge: Intel Corp.: Unknown device 24d0 (rev 02)
        Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp.: Unknown device 24db (rev 02) (prog-if 8a [Ma
ster SecP PriP])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at f000 [size=16]
        Memory at 20000000 (32-bit, non-prefetchable) [size=1K]

00:1f.3 SMBus: Intel Corp.: Unknown device 24d3 (rev 02)
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: medium devsel, IRQ 17
        I/O ports at 1400 [size=32]

00:1f.5 Multimedia audio controller: Intel Corp.: Unknown device 24d5 (rev 02)
        Subsystem: Giga-byte Technology: Unknown device a002
        Flags: bus master, medium devsel, latency 0, IRQ 17
        I/O ports at d800 [size=256]
        I/O ports at dc00 [size=64]
        Memory at fa101000 (32-bit, non-prefetchable) [size=512]
        Memory at fa102000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

01:00.0 VGA compatible controller: ATI Technologies Inc: Unknown device 4150 (pr
og-if 00 [VGA])
        Subsystem: C.P. Technology Co. Ltd: Unknown device 2066
        Flags: bus master, 66Mhz, medium devsel, latency 255, IRQ 16
        Memory at d0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 9000 [size=256]
        Memory at f9000000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [58] AGP version 3.0
        Capabilities: [50] Power Management version 2

01:00.1 Display controller: ATI Technologies Inc: Unknown device 4170
        Subsystem: C.P. Technology Co. Ltd: Unknown device 2067
        Flags: bus master, 66Mhz, medium devsel, latency 32
        Memory at e0000000 (32-bit, prefetchable) [size=256M]
        Memory at f9010000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [50] Power Management version 2

02:05.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Contro                                                              ller (PHY/Link) (prog-if 10 [OHCI])
        Subsystem: Giga-byte Technology: Unknown device 1000
        Flags: bus master, medium devsel, latency 32, IRQ 21
        Memory at fa004000 (32-bit, non-prefetchable) [size=2K]
        Memory at fa000000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [44] Power Management version 2

02:08.0 Ethernet controller: Intel Corp.: Unknown device 1050 (rev 02)
        Subsystem: Giga-byte Technology: Unknown device 3013
        Flags: bus master, medium devsel, latency 32, IRQ 20
        Memory at fa005000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at a000 [size=64]
        Capabilities: [dc] Power Management version 2
Many thanks for your consideration!

Last edited by vasudevadas; 12-24-2003 at 08:44 AM.
 
Old 12-24-2003, 11:25 AM   #7
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Original Poster
Rep: Reputation: 30
Ah, problem solved.

I installed the kernel source from the distro installation discs, and then did:

cd /lib/modules/fglrx/build_mod
./make.sh
cd ..
./make_install.sh

This time after I startx everything is fine, 3d acceleration is clearly enabled (glxgears gives >2000 fps and tuxracer is nice and smooth) and nothing that worked before seems to have been broken. Many thanks for your help!
 
Old 03-12-2005, 12:10 AM   #8
edmlo
LQ Newbie
 
Registered: Mar 2005
Posts: 14

Rep: Reputation: 0
i had the same problem but what i do make.sh, i got the following error:

[root@localhost build_mod]# sh make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
probing for VMA API version...
doing script based build for kernel 2.4.x and similar
compiling './agpgart_be.c'...
In file included from /lib/modules/2.4.21-20.ELsmp/build/include/linux/module.h: 21,
from agpgart_be.c:105:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-hea ders system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropri ate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/in clude
/usr/include/linux/modversions.h:5:2: #error to build against the currently-runn ing kernel.
agpgart_be.c: In function `agp_find_supported_device':
agpgart_be.c:6526: warning: unused variable `cap_ptr'
agpgart_be.c: At top level:
agpgart_be.c:6507: warning: `agp_check_supported_device' defined but not used
compiling failed - object file was not generated

how do i fix that?
 
Old 03-12-2005, 02:34 AM   #9
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
edmlo, make sure that your kernel sources for your system are installed and the /usr/src/linux symbolic link points to the correct kernel source directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't Locate Module wlan0 mattp Linux - Laptop and Netbook 34 02-28-2005 10:16 AM
fglrx module not found but X runs using module biger problem though HELP! fireicer Linux - Newbie 4 07-30-2004 04:44 PM
Can't locate module cdrom cparx Linux - Newbie 4 04-20-2004 04:56 PM
modprobe?! can't locate Module?! DjRedMar Linux - Software 1 10-19-2003 01:55 PM
can't locate module in @INC john lee Programming 1 06-05-2002 10:12 AM

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

All times are GMT -5. The time now is 10:14 PM.

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