Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16082 - NVIDIA kernel on development kernel
Summary: NVIDIA kernel on development kernel
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-20 09:05 UTC by Patrik Kullman
Modified: 2003-02-26 04:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
my emerge log (nvidia-kernel_errors,13.41 KB, text/text)
2003-02-20 09:07 UTC, Patrik Kullman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrik Kullman 2003-02-20 09:05:52 UTC
I can't get this to work on development kernels after 2.5.59.
The patch for 2.5.54+ has never worked for me (made my own modifications).
And the new patch for 2.5.60+ (even though it applies ok) doesn't work either.

I've talked to Christian Zander, he who maintains the minion.de/nvidia.html, and
he says: "modversions.h is now modsetver.h, the #include statement in nv-linux.h
needs to be adjusted to reflect this change."

This wasn't what the 2.5.61 patch reflected, but even with this change in the
patch, it doesn't compile.

Reproducible: Always
Steps to Reproduce:
1. You know the drill...

Actual Results:  
Compilation failure.

Expected Results:  
Compilation success.
Comment 1 Patrik Kullman 2003-02-20 09:07:34 UTC
Created attachment 8541 [details]
my emerge log

this is what I get
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-20 14:05:12 UTC
Works fine here.

--------------------------------------------------------------------
nosferatu src # uname -a
Linux nosferatu.lan 2.5.62 #1 Thu Feb 20 19:52:31 SAST 2003 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
nosferatu src # ls -ld `pwd`/linux
lrwxr-xr-x    1 root     root           12 Feb 20 20:56 /usr/src/linux -> linux-2.5.62
nosferatu src # emerge nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.4191-r1 to /
>>> md5 ;-) NVIDIA_kernel-1.0-4191.tar.gz
>>> Unpacking source...
>>> Unpacking NVIDIA_kernel-1.0-4191.tar.gz to /space/var/tmp/portage/nvidia-kernel-1.0.4191-r1/work
 * Applying tasklet patch for kernel 2.5...                                                                                                          [ ok ] * Applying module loader no common sections...                                                                                                      [ ok ] * Applying include patch for 2.5.61+...                                                                                                             [ ok ]>>> Source unpacked.
rm -f nv.o os-agp.o os-interface.o os-registry.o  nv-linux.o nv_compiler.h *.d NVdriver nvidia.o
echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -1`\" > nv_compiler.h
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar  -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DKBUILD_MODNAME="nvidia" -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86       -I. -I/usr/src/linux/include 			             -I/usr/src/linux/include/asm-i386/mach-default -I/usr/src/linux/include 			             -I/usr/src/linux/include/asm-i386/mach-default/asm/mach-default -Wno-cast-qual nv.c
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar  -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DKBUILD_MODNAME="nvidia" -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86       -I. -I/usr/src/linux/include 			             -I/usr/src/linux/include/asm-i386/mach-default -I/usr/src/linux/include 			             -I/usr/src/linux/include/asm-i386/mach-default/asm/mach-default -Wno-cast-qual os-agp.c
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar  -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DKBUILD_MODNAME="nvidia" -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86       -I. -I/usr/src/linux/include 			             -I/usr/src/linux/include/asm-i386/mach-default -I/usr/src/linux/include 			             -I/usr/src/linux/include/asm-i386/mach-default/asm/mach-default -Wno-cast-qual os-interface.c
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar  -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DKBUILD_MODNAME="nvidia" -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86       -I. -I/usr/src/linux/include 			             -I/usr/src/linux/include/asm-i386/mach-default -I/usr/src/linux/include 			             -I/usr/src/linux/include/asm-i386/mach-default/asm/mach-default -Wno-cast-qual os-registry.c
ld -r -o nv-linux.o nv.o os-agp.o os-interface.o os-registry.o 
ld -d -r -o nvidia.o nv-linux.o nv-kernel.o
size nvidia.o
   text	   data	    bss	    dec	    hex	filename
1249092	  94968	  35160	1379220	 150b94	nvidia.o

>>> Install nvidia-kernel-1.0.4191-r1 into /space/var/tmp/portage/nvidia-kernel-1.0.4191-r1/image/ category media-video
man:
>>> Completed installing into /space/var/tmp/portage/nvidia-kernel-1.0.4191-r1/image/

>>> Merging media-video/nvidia-kernel-1.0.4191-r1 to /
--- /lib/
--- /lib/modules/
--- /lib/modules/2.5.62/
--- /lib/modules/2.5.62/video/
>>> /lib/modules/2.5.62/video/nvidia.o
--- /etc/
--- /etc/modules.d/
>>> /etc/modules.d/nvidia
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/nvidia-kernel-1.0.4191-r1/
>>> /usr/share/doc/nvidia-kernel-1.0.4191-r1/README.gz
--- /sbin/
>>> /sbin/NVmakedevices.sh

>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/doc/nvidia-kernel-1.0.4191-r1/README.gz
--- !mtime obj /sbin/NVmakedevices.sh
--- !mtime obj /lib/modules/2.5.62/video/nvidia.o
--- cfgpro obj /etc/modules.d/nvidia
--- cfgpro dir /etc/modules.d
--- !empty dir /usr/share/doc/nvidia-kernel-1.0.4191-r1
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr
--- !empty dir /sbin
--- !empty dir /lib/modules/2.5.62/video
--- !empty dir /lib/modules/2.5.62
--- !empty dir /lib/modules
--- !empty dir /lib
--- !empty dir /etc
>>> original instance of package unmerged safely.

 * If you are not using devfs, loading the module automatically at
 * boot up, you need to add "nvidia" to your /etc/modules.autoload.

 * Please note that the driver name changed from "NVdriver"
 * to "nvidia.o".

>>> Regenerating /etc/ld.so.cache...
>>> media-video/nvidia-kernel-1.0.4191-r1 merged.

 media-video/nvidia-kernel
    selected: none
   protected: 1.0.4191-r1
     omitted: none

>>> clean: No packages selected for removal.

>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.

nosferatu src #
Comment 3 Patrik Kullman 2003-02-21 03:33:16 UTC
Hmm... it works with sys-kernel/development-sources, but not if I download it myself.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-24 09:37:52 UTC
Did you add the /usr/src/linux symlink ?  Also, did you already compiled it,
and not made a make clean ?  It need to have the dep and version info in it...
I think a 'make menuconfig' and then 'make dep' should be sufficient.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-26 02:58:57 UTC
Reopen if you are sure your source tree in /usr/src is ok.  Check maybe
in #gentoo on irc if you not sure how we handle kernel stuff.
Comment 6 Patrik Kullman 2003-02-26 04:36:26 UTC
Hehe.. well.
All (I'm aware of) that I did was:
<< tar xjvf linux-2.5.XX.tar.bz2
<< cp /usr/src/linux/.config linux-2.5.XX
<< cd linux-2.5.XX
<< make oldconfig
<< make dep
>> *** Warning: make dep is unnecessary now.
<< make bzImage modules modules_install
<< ln -sf /usr/src/linux-2.5.XX /usr/src/linux
<< reboot
<< emerge nvidia-kernel