What happened kernel-source?
Ernest L. Williams Jr.
ernesto at ornl.gov
Sun Jun 27 12:26:44 UTC 2004
On Sun, 2004-06-27 at 07:33, Arjan van de Ven wrote:
> On Sun, Jun 27, 2004 at 07:31:45AM -0400, Ernest L. Williams Jr. wrote:
> > NVIDIA suggests that kernel-source is indeed used.
> >
> > Here is the error directly from the nvidia installer:
> > ===========================================================================
> > ERROR: Unable to load the kernel module 'nvidia.ko'. 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-source-path should be /lib/modules/`uname -r`/build always...
> Their instructions seem to still be based on 2.4 kernel rpms not on the FC2
> 2.6 kernel rpms...
=================== From NVIDIA's installation manual ==================
If no matching precompiled kernel interface is found, then the installer
will compile the kernel interface for you. However, first it will
check that you have the correct kernel headers intalled on your system.
If the installer must compile the kernel interface, then you must install
the kernel-sources package for your kernel.
--kernel-include-path=[KERNEL SOURCE PATH]
The directory containing the kernel include files that should
be used when compiling the NVIDIA kernel module. This option
is deprecated; please use '--kernel-source-path' instead.
--kernel-source-path=[KERNEL SOURCE PATH]
The directory containing the kernel source files that should be
used when compiling the NVIDIA kernel module. When not
specified, the installer will use '/lib/modules/`uname
-r`/build', if that directory exists. Otherwise, it will use
'/usr/src/linux'.
===========================================================================
I tried the following:
sh NVIDIA-Linux-x86-1.0-5336-pkg1.run --add-this-kernel \
--kernel-source-path /lib/modules/2.6.7-1.448/build
The above failed with the same error as before.
Details from the build log are shown below:
===================================================
[root at localhost NVIDIA]# more /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Jun 27 08:22:00 2004
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com
Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system
(version: 1.0-
5336). As part of installing this driver (version: 1.0-5336), the
existing
driver will be uninstalled. Are you sure you want to continue? ('no'
will a
bort installation) (Answer: Yes)
-> A precompiled kernel interface for kernel 'Linux 2.6.7-1.448 #1 Tue
Jun 22
11:53:21 EDT 2004 i686' has been found here:
./usr/src/nv/precompiled/precompiled-nv-linux.o-1.0-5336.1088338869.
executing: 'cd ./usr/src/nv; /usr/bin/ld -d -r -o nvidia.ko
precompiled-nv-l
inux.o nv-kernel.o'...
-> Kernel module linked successfully.
ERROR: Unable to load the kernel module 'nvidia.ko'. 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: insmod: error inserting
'./usr/src/nv/nvidia.ko':
-1 Invalid module format
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-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.
>
>
> >
> > What is the kernel-sourcecode package used for?
>
> for building your own custom kernel if you want a different .config file
> than we use..
--
Ernest L. Williams Jr. <ernesto at ornl.gov>
More information about the fedora-test-list
mailing list