LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-20-2007, 06:12 PM   #1
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Rep: Reputation: 15
installing ATI driver 8.32.5 gives module build error


I decided to finally tackle getting the ATI drivers working on my Slack 11 install. I downloaded the latest (8.32.5) driver from ATI's site. When I follow the directions in ATI's how to I get:

Code:
There were errors during installation.         
Details can be found in                        
/usr/share/ati/fglrx-install.log
Which reads:
Code:
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Error] Kernel Module : No kernel module build environment - please consult readme.
I'm running a custom built 2.6.19.1 kernel. and I dont see a readme, so...

What I'd like to know is how do I fix it so there is a kernel module build environment?
 
Old 01-20-2007, 06:21 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You need the kernel sources ... are they installed ? Usually it checks for them in
Code:
/usr/src/`uname -r`
or
Code:
/lib/modules/`uname -r`/build
and
Code:
/lib/modules/`uname -r`/source
. If the kernel sources for your kernel are not in those places and not configured properly you cannot build kernel modules.

Also refer to the guide on enabling 3d accel (includes ati cards).
 
Old 01-20-2007, 06:52 PM   #3
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
You need the kernel sources ... are they installed ? Usually it checks for them in
Code:
/usr/src/`uname -r`
or
Code:
/lib/modules/`uname -r`/build
and
Code:
/lib/modules/`uname -r`/source
. If the kernel sources for your kernel are not in those places and not configured properly you cannot build kernel modules.

Also refer to the guide on enabling 3d accel (includes ati cards).
Code:
user@computer:/usr/src$ uname -r
2.6.19.1
Code:
user@computer:/lib/modules$ uname -r
2.6.19.1
I followed the kernel compile guide posted by AlienBob, I assumed the kernel source would be installed, but maybe there's another step I missed?

Anyway thanks for the reply.
 
Old 01-20-2007, 07:05 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Hmmm ... well to check if the source is installed run the following:

Code:
ls -l /lib/modules/`uname -r`
ls -l /usr/src/linux-`uname -r`
Made a small mistake in my original post, should be /usr/src/linux-`uname -r` not /usr/src/`uname -r`.
 
Old 01-20-2007, 07:12 PM   #5
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
Hmmm ... well to check if the source is installed run the following:

Code:
ls -l /lib/modules/`uname -r`
ls -l /usr/src/linux-`uname -r`
Made a small mistake in my original post, should be /usr/src/linux-`uname -r` not /usr/src/`uname -r`.
Thanks!

ok, tried uname on /usr/src/linux and got the same result.

also:
Code:
user@computer:/lib/modules$ ls -l /lib/modules/`uname -r`
total 40
-rw-r--r-- 1 root root  45 2007-01-20 17:16 modules.alias
-rw-r--r-- 1 root root  69 2007-01-20 17:16 modules.ccwmap
-rw-r--r-- 1 root root   0 2007-01-20 17:16 modules.dep
-rw-r--r-- 1 root root  73 2007-01-20 17:16 modules.ieee1394map
-rw-r--r-- 1 root root 141 2007-01-20 17:16 modules.inputmap
-rw-r--r-- 1 root root  81 2007-01-20 17:16 modules.isapnpmap
-rw-r--r-- 1 root root  74 2007-01-20 17:16 modules.ofmap
-rw-r--r-- 1 root root  99 2007-01-20 17:16 modules.pcimap
-rw-r--r-- 1 root root  43 2007-01-20 17:16 modules.seriomap
-rw-r--r-- 1 root root  49 2007-01-20 17:16 modules.symbols
-rw-r--r-- 1 root root 189 2007-01-20 17:16 modules.usbmap
and
Code:
/lib/modules$ ls -l /usr/src/linux-`uname -r`
total 9798
-rw-rw-rw-  1 root root   18693 2006-12-11 13:32 COPYING
-rw-rw-rw-  1 root root   90307 2006-12-11 13:32 CREDITS
drwxrwxrwx 59 root root    6088 2006-12-11 13:32 Documentation/
-rw-rw-rw-  1 root root    1262 2006-12-11 13:32 Kbuild
-rw-rw-rw-  1 root root   75926 2006-12-11 13:32 MAINTAINERS
-rw-rw-rw-  1 root root   50186 2006-12-11 13:32 Makefile
-rw-r--r--  1 root root  200671 2006-12-14 00:07 Module.symvers
-rw-rw-rw-  1 root root   16538 2006-12-11 13:32 README
-rw-rw-rw-  1 root root    3065 2006-12-11 13:32 REPORTING-BUGS
-rw-r--r--  1 root root 1116029 2006-12-14 00:07 System.map
drwxrwxrwx 27 root root     656 2006-12-11 13:32 arch/
drwxrwxrwx  2 root root    1112 2006-12-14 00:02 block/
drwxrwxrwx  2 root root    2832 2006-12-14 00:07 crypto/
drwxrwxrwx 62 root root    1648 2006-12-14 00:04 drivers/
drwxrwxrwx 63 root root    6432 2006-12-14 00:01 fs/
drwxrwxrwx 43 root root    1176 2006-12-13 23:58 include/
drwxrwxrwx  2 root root     896 2006-12-14 00:07 init/
drwxrwxrwx  2 root root     712 2006-12-14 00:01 ipc/
drwxrwxrwx  5 root root    5800 2006-12-13 23:59 kernel/
drwxrwxrwx  5 root root    5288 2006-12-14 00:07 lib/
drwxrwxrwx  2 root root    3856 2006-12-13 23:59 mm/
drwxrwxrwx 37 root root    1296 2006-12-14 00:06 net/
drwxrwxrwx  9 root root    1752 2006-12-13 23:58 scripts/
drwxrwxrwx  4 root root     448 2006-12-14 00:01 security/
drwxrwxrwx 17 root root     800 2006-12-14 00:05 sound/
drwxrwxrwx  2 root root     536 2006-12-13 23:58 usr/
-rwxr-xr-x  1 root root 8395985 2006-12-14 00:07 vmlinux*
thanks again!
 
Old 01-20-2007, 07:35 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Looks like the sources are available, but maybe somewhere where the installer doesn't check. Try symlinking the following (as root):

Code:
ln -s /usr/src/linux-`uname -r` /lib/modules/`uname -r`/build
ln -s /usr/src/linux-`uname -r` /lib/modules/`uname -r`/source
 
Old 01-20-2007, 07:58 PM   #7
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
Looks like the sources are available, but maybe somewhere where the installer doesn't check. Try symlinking the following (as root):

Code:
ln -s /usr/src/linux-`uname -r` /lib/modules/`uname -r`/build
ln -s /usr/src/linux-`uname -r` /lib/modules/`uname -r`/source
alright we made progress!

(and I feel good, cuz I'd thought about symlinking /src to /source (saw a reference to it in my googling), just didn't want to go blindly tossing commands around.

ok. on to the results:

it appeared to install fine, and then I got a similar error message referencing the same logfile which gives a bunch of stuff, the end of which reads:
Code:
- recreating module dependency list
- trying a sample load of the kernel modules
failed.
[Error] Kernel Module : Failed to install compiled kernel module - please consult readme.
Thanks a million for the help so far. any ideas on this latest error?
 
Old 01-20-2007, 10:21 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
did you run the installer as root ? if not then you have to.
 
Old 01-20-2007, 10:45 PM   #9
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
did you run the installer as root ? if not then you have to.
sure did.

I wish it was that simple. problem is I dont see a "readme" anywhere, or I might have a clue what to start looking at next. The install notes on the ATI website provide me no clues, and the error refrences the mystery readme. I'm about to give up unless someone can give me a hint or clue.

thanks for all the help so far, I appreciate it.
 
Old 01-20-2007, 10:56 PM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
post the output of

Code:
lsmod
 
Old 01-20-2007, 11:03 PM   #11
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
post the output of

Code:
lsmod
tried that, and it puzzles me.

the output is blank:
Code:
root@computer:/home/user# lsmod
Module                  Size  Used by
 
Old 01-20-2007, 11:35 PM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
restart and try it again ... that's kinda weird.
 
Old 01-21-2007, 01:31 AM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Wait, I think I know what's wrong (it must have slipped me last time). When you were building the custom kernel did you run:

Code:
make modules
make modules_install
If not, then run it. If you already ran it, then copy the directory tree from /lib/modules/2.4.33.3/kernel to /lib/modules/`uname -r` so you get a new directory /lib/modules/`uname -r`/kernel with lots of subdirectories.
 
Old 01-22-2007, 12:05 AM   #14
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H
Wait, I think I know what's wrong (it must have slipped me last time). When you were building the custom kernel did you run:

Code:
make modules
make modules_install
If not, then run it. If you already ran it, then copy the directory tree from /lib/modules/2.4.33.3/kernel to /lib/modules/`uname -r` so you get a new directory /lib/modules/`uname -r`/kernel with lots of subdirectories.
I'm about to try it as you suggest. When I built the kernel I followed Alien Bob's how to, and used these comands (comments from the how to I didn't type them when building my kernel ):

Code:
make bzImage modules            # compile the kernel and the modules
make modules_install            # installs the modules to /lib/modules/<kernelversion>
gonna try it now. brb.

Edit: ok, I did the make modules, make modules_install and it rolled through a bunch of stuff, but I still get blank output from lsmod.
I looked in /lib/modules/2.6.19.1 and see a directory structure similar to that in /lib/modules/2.4.33.3. Will I still benefit from copying the directory from 2.4.33.3?

Thanks again, I appreciate the help.

Last edited by drlouis; 01-22-2007 at 12:22 AM.
 
Old 01-22-2007, 10:29 AM   #15
Crooksey
LQ Newbie
 
Registered: Mar 2006
Distribution: Gentoo
Posts: 25

Rep: Reputation: 15
On Zenwalk you can run netpkg kernelsource, does this work on Slackware 11?
 
  


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
error installing ati driver rje_NC Slackware 2 05-18-2006 12:13 PM
ati (8.16.20) : Module Installing | Error After Kernel Compile dfwcomputer Linux - Newbie 2 05-10-2006 08:03 PM
ATI driver install: AGPGART module build failed michapma Debian 9 12-22-2005 09:46 AM
build and Install the module (ATI driver install) michapma Debian 5 11-13-2005 10:30 AM
ATI Driver module build fail Bana Linux - Software 0 02-16-2004 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:30 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