LinuxQuestions.org
Help answer threads with 0 replies.
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 11-09-2005, 08:24 AM   #1
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Rep: Reputation: 30
kernel source and nvidia driver installation issues - have searched


I've been struggling with the nvidia driver installation. I've got the NForce2 chipset on my Gigabyte mobo. I have installed the kernel-source package as well as the kernel-header package (redundant, as I found out). I get an error message when running the nvidia installer stating that the network drivers could not be installed. I have done everything from outside of X as SU. I have turned acpi off. I'm not sure why it is having these issues. I assume the kernel-source installed correctly since I never got an error message when installing the source package. I've included the nvidia installation log as well as the listing of some of my directories where the kernel source should/may be located below. I see that the log shows the kernel source as not specified. Please let me know where the problem may lie.

thanks....




nforce-installer log file '/var/log/nvidia-nforce-installer.log'
creation time: Wed Nov 9 06:52:13 2005

option status:
license pre-accepted : false
expert : false
uninstall : false
driver info : false
no precompiled interface : false
no ncurses color : false
no questions : false
silent : false
Installer install prefix : /usr
kernel source path : (not specified)
net kernel install path : (not specified)
audio kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp

Using: nvidia-installer ncurses user interface
-> Found package NVIDIA audio driver for Linux-x86
-> Found package NVIDIA network driver for Linux-x86
-> Please select packages for installation:
Selections:
NVIDIA network driver for Linux-x86 (1.0-12)
-> Starting install of NVIDIA network driver for Linux-x86
-> Checking for loaded module nvnet
-> Checking for loaded module forcedeth
-> License accepted.
-> Skipping check for conflicting rpms.
-> /proc/version is Linux version 2.4.26 (root@tree) (gcc version 3.3.4) #8 Mon
Jun 14 19:09:31 PDT 2004
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.4.26/build'
-> Kernel output path: '/lib/modules/2.4.26/build'
-> Performing cc_version_check with CC="cc".
-> running command /bin/grep "^PATCHLEVEL =" /lib/modules/2.4.26/build/Makefile
| /bin/cut -d " " -f 3
-> Kernel module filename is nvnet.o
Cleaning kernel module build directory.
executing: 'cd ./nvnet; make clean'...
rm -f nvenet.o nvenetif.o nvnet.o *~ core
-> Building kernel module:
executing: 'cd ./nvnet; make module SYSSRC=/lib/modules/2.4.26/build SYSOUT=
/lib/modules/2.4.26/build'...
cc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-co
mmon -fomit-frame-pointer -I/lib/modules/2.4.26/build/include -O -mpreferre
d-stack-boundary=2 -march=i686 -D__KERNEL__ -DMODULE -DLINUX -DDRIVERVER=
\"9999\" -DEXPORT_SYMTAB -DCONFIG_PM -I. -DMODVERSIONS -include /lib/modul
es/2.4.26/build/include/linux/modversions.h -c -o nvenet.o nvenet.c
ld -r -o nvenetif.o nvenet.o
ld -r -o nvnet.o nvenetif.o nvenetlib.o
-> done.
-> Kernel module compilation complete.
-> Testing kernel module:
-> Copying test module ./nvnet/nvnet.o to
/lib/modules/2.4.26/kernel/drivers/net/nvnet.o
ERROR: Unable to load the kernel module 'nvnet.o'. This is most likely because
the kernel module was built using the wrong kernel source files. Please
make sure you have installed the kernel source files for your kernel; on
Red Hat Linux systems, for example, be sure you have the 'kernel-source'
rpm installed. If you know the correct kernel source files are
installed, you may specify the kernel source path with the
'--kernel-source-path' commandline option.
-> Kernel module load error: Warning: loading
/lib/modules/2.4.26/kernel/drivers/net/nvnet.o will taint the kernel:
non-GPL license - NVIDIA
See http://www.tux.org/lkml/#export-tainted for information about tainted
modules
/lib/modules/2.4.26/kernel/drivers/net/nvnet.o: init_module: No such device
/lib/modules/2.4.26/kernel/drivers/net/nvnet.o: Hint: insmod errors can be
caused by incorrect module parameters, including invalid IO or IRQ
parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.26/kernel/drivers/net/nvnet.o: insmod
/lib/modules/2.4.26/kernel/drivers/net/nvnet.o failed
/lib/modules/2.4.26/kernel/drivers/net/nvnet.o: insmod nvnet failed
-> Testing completed.
ERROR: Installation of the network driver has failed. Please see the file
'/var/log/nvidia-nforce-installer.log' for details. You may find
suggestions on fixing installation problems in the README available on
the Linux driver download page at www.nvidia.com.
----------end of log--------------------


tim@tim:/usr/src$ ls -l
total 3
lrwxrwxrwx 1 root root 12 2005-11-09 06:29 linux -> linux-2.4.26/
drwxr-xr-x 15 root root 584 2004-05-31 00:35 linux-2.4.26/
drwxr-xr-x 7 root root 168 2003-10-29 00:08 rpm/
drwxr-xr-x 2 root root 176 2004-06-08 23:35 speakup-2.4.26/


tim@tim:/usr/src/linux-2.4.26$ ls
COPYING Documentation/ Makefile REPORTING-BUGS arch/ drivers/ include/ ipc/ lib/ net/
CREDITS MAINTAINERS README Rules.make crypto/ fs/ init/ kernel/ mm/ scripts/


tim@tim:/usr/src/linux-2.4.26/kernel$ ls
Makefile capability.c dma.c exit.c info.c kmod.c module.c pm.c ptrace.c sched.c softirq.c sysctl.c timer.c user.c
acct.c context.c exec_domain.c fork.c itimer.c ksyms.c panic.c printk.c resource.c signal.c sys.c time.c uid16.c


root@tim:/lib/modules/2.4.26# ls -l
total 510
lrwxrwxrwx 1 root root 21 2005-10-12 16:47 build -> /usr/src/linux-2.4.26
drwxr-xr-x 9 root root 216 2004-06-13 20:39 kernel
-rw-r--r-- 1 root root 140501 2005-11-09 06:52 modules.dep
-rw-r--r-- 1 root root 60663 2005-11-09 06:52 modules.generic_string
-rw-r--r-- 1 root root 443 2005-11-09 06:52 modules.ieee1394map
-rw-r--r-- 1 root root 21941 2005-11-09 06:52 modules.isapnpmap
-rw-r--r-- 1 root root 29 2005-11-09 06:52 modules.parportmap
-rw-r--r-- 1 root root 88397 2005-11-09 06:52 modules.pcimap
-rw-r--r-- 1 root root 24 2005-11-09 06:52 modules.pnpbiosmap
-rw-r--r-- 1 root root 185369 2005-11-09 06:52 modules.usbmap
drwxr-xr-x 2 root root 960 2005-10-12 16:47 pcmcia

root@tim:/lib/modules/2.4.26/kernel# ls
arch crypto drivers fs lib net sound
 
Old 11-10-2005, 01:07 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
If you know the correct kernel source files are
installed, you may specify the kernel source path with the
'--kernel-source-path' commandline option.
have you tried that?
 
Old 11-10-2005, 01:10 AM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,808

Rep: Reputation: 234Reputation: 234Reputation: 234
Re: kernel source and nvidia driver installation issues - have searched

Quote:
Originally posted by timsch75
I have installed the kernel-source package as well as the kernel-header package (redundant, as I found out).
No, it isn't redundant. The standard kernel-headers package must remain installed until you upgrade glibc. You can safely remove the kernel-source package, and upgrade it for a new one at any time.
Quote:
Originally posted by timsch75
...
-> Copying test module ./nvnet/nvnet.o to
/lib/modules/2.4.26/kernel/drivers/net/nvnet.o
ERROR: Unable to load the kernel module 'nvnet.o'. This is most likely because
the kernel module was built using the wrong kernel source files. Please
make sure you have installed the kernel source files for your kernel; on
Red Hat Linux systems, for example, be sure you have the 'kernel-source'
rpm installed. If you know the correct kernel source files are
installed, you may specify the kernel source path with the
'--kernel-source-path' commandline option.
Therein lies the problem. Do this:

Code:
# cp /boot/config /usr/src/linux-2.4.26/.config
# cd /usr/src/linux-2.4.26
# make oldconfig
Then try building your nvidia drivers again. The above process ensures that certain symlinks are created in the kernel source tree. These symlinks are not part of Pat's kernel source package, but may be needed by any drivers you wish to compile for a particular kernel.
 
Old 11-10-2005, 08:34 AM   #4
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
bOuncer,
I was not able to locate where the source or headers were installed. Using slocate (results below) turned up a few locations, but none looked right. I believe that the source and headers should be located in /usr/src. I showed the contents of that directory in my first post hoping that someone would see something there that I did not.

rkelsen,
I read that the headers were included in the source file. Regardless, I installed both packages:
kernel-headers-2.4.26-i386-3.tgz
kernel-source-2.4.26-noarch-4.tgz

I downloaded these from an ftp site and installed them without returning any error messages.
I tried the code you proposed for setting the symlinks, but got the same error as before.

Also, when I installed slack 10.0, I did a full install. Would this have installed the kernel source and headers?

thanks
 
Old 11-10-2005, 08:47 AM   #5
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Why not use the forcedeth net driver ? It works fine here

Try : modprobe forcedeth

Then run /sbin/netconfig and set your network connection, that should be ok
 
Old 11-10-2005, 05:44 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,808

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by timsch75
kernel-headers-2.4.26-i386-3.tgz
kernel-source-2.4.26-noarch-4.tgz
...
Also, when I installed slack 10.0, I did a full install. Would this have installed the kernel source and headers?
Both of these packages should have been installed already.

Have a look at this file: /var/log/nvidia-nforce-installer.log and post any errors.

Last edited by rkelsen; 11-10-2005 at 05:58 PM.
 
Old 11-11-2005, 07:58 AM   #7
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
rk,
I tried the nvidia installer with a full installation of 10.0 before installing the source and header packages individually. Both returned the same error. My problem is that I cannot find where they are located to instruct the installer where to look. I've posted /usr/src etc. previously, which is where I understand they should be.

keefaz,
I tried your suggestion. I got an error stating that forcedeth could not be found, although I found it with slocate.

This is getting pretty old. I'm about ready to reinstall from scratch. Perhaps I'll try 10.2 and try to specifically install headers and source at that time.
 
Old 11-12-2005, 07:36 PM   #8
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 536

Rep: Reputation: 36
Quote:
My problem is that I cannot find where they are located to instruct the installer where to look
Normally the headers are installed in /usr/include/linux and /usr/include/asm-i386. And the source in /usr/src, with a soft link named "linux" in the same directory.

If you ever want to know what files are installed by a package, and where, then just look at the files in /var/log/packages.

Cheers,
 
  


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
Installing NVIDIA Driver --- Kernel Source ??? aratis Red Hat 4 06-29-2005 09:07 PM
Trying to get 1280x800, need kernel source for nvidia driver Zonzhal Linux - Laptop and Netbook 6 03-23-2005 10:16 AM
Nvidia Driver Kernel Source SparkerR Linux - Hardware 1 09-29-2004 10:29 PM
nvidia driver issues with kernel 2.6 Da_Necromancer Linux - Software 3 05-04-2004 08:54 AM
Nvidia Driver can't find kernel source Forezt Fedora 9 04-20-2004 08:35 PM


All times are GMT -5. The time now is 03:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration