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.
Created attachment 8541 [details] my emerge log this is what I get
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 #
Hmm... it works with sys-kernel/development-sources, but not if I download it myself.
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.
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.
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