View Full Version : Compile and Install for Kernel 2.5.66
I have successfully compiled the drivers with the unsupported patch. Problem is with doing make install. It comes up with a message that it could not unload the loaded nvidia driver.
Sanity check with rmmod is the error.
Does anyone know where to get the instructions on installing the 2.5.x patch and loading the drivers.
I did install the new modutils rpm.
Who else is running the v4349 drivers with the 2.5.x kernel??????
I would love to test it out.
Thanks.
Ohhh.. All the black console screen issues with locking up have disappeared with these latest drivers.
Thanks Nvidia!!!!
You cannot be running X when you install the driver...
Try to manually rmmod nvidia, then run through make install.
Originally posted by bwkaz
You cannot be running X when you install the driver...
Try to manually rmmod nvidia, then run through make install.
I'm not running X when I'm trying to install the drivers. i'm getting a fatal error and the makefile says that the rmmod sanity check failed.
Also, There is no way that the nvidia driver is loaded. Fresh installation.
I get the fatal error message when I do "make install".
Also, in "/lib/modules/2.5.66/driver/video" there is no nvidia.o file.
It's the only thing which is stopping me from running 2.5.6 kernel.
Any other suggestions? I'll try the manual one that you suggested.
Thanks
modprobe did not work. So I figured I would load it manual.
insmod nvidia.o
It worked!!!!!! Patched for 2.5.66 with the 4349 drivers.
Works great. No problems....
Thanks for the help.:eek: :eek:
The rmmod sanity check is just trying to rmmod the kernel module if it's loaded, so that the new version can get reloaded later. If that sanity check fails, it's because the rmmod binary returned something other than "success" to the Makefile.
But if you've got it working, then it really doesn't matter.
freelsjd
04-10-03, 08:00 PM
I cannot seem to get this patch to apply correctly with the 4349 driver. Can you give the detailed instructions for doing just this part of the build?
$ cd NVIDIA-Linux-x86-1.0-4349/usr/src/nv
$ patch -Np1 </path/to/patchfile
$ ln -sf Makefile.nvidia Makefile
$ make
$ su
<enter root password>
# make install
Alternatively, you can ln -sf Makefile.kbuild Makefile in the third step, but that's experimental so I wouldn't recommend it. (the ln -s stuff came from reading the instructions at minion.de -- that is where you got the patches from, right?)
freelsjd
04-11-03, 09:00 AM
This worked perfrect for me. However, I had better luck with the .kbuild Makefile. I will recommend to Christian Zander to put these instructions on his web page.
Thanks
Hi,
I wrote the KBUILD Makefile for the linux 2.5 patches. Christian kindly made some improvements and merged them into the patch on http://minion.de/. Please direct any KBUILD problems to me, not him, as I would prefer to maintain this part of the patches.
Also, please do not try linking to Makefile.nvidia first, as somebody here has said. It is incorrect to assume that the "nvidia" makefile is actually any less experimental than the KBUILD one -- it isn't.
The only makefile to fully support the linux 2.5 build system features is Makefile.kbuild. Please try this and report any problems you have; they will not be fixed unless they are reported.
As for the file not being in kernel/video/nvidia.o, that is correct. The correct place for drivers that are installed external to the kernel tree is in fact extra/ (under 2.5) or lost/ (under 2.4), which is where the .kbuild makefile puts it.
The rmmod sanity check problem is odd -- it's unlikely to be a problem with the new patches. Just delete your old NVdriver or nvidia.o module from /lib/modules/<your kernel>/blah and reboot -- on bootup, modprobe will fail to insert the driver module and you can start from scratch quite safely.
Cheers,
Alistair Strachan.
Ahh, ok. From the sounds of the minion.de page, I was under the impression that the kbuild one was more experimental.
Have to remember that if I ever move to 2.5.
You're right insofar that the new kbuild makefiles are more difficult to get working properly; due to kbuild changes in 2.5, you can't build modules without building vmlinux (bzImage) for instance. We're looking into fixing these issues.
However, since "vendor kernels" don't yet exist for 2.5, it's a safe bet that a make bzImage will have been done.
Secondly, only the KBUILD makefile supports 2.5's implementation of MODVERSIONS. If you have problems with that with the .nvidia Makefile, try the .kbuild one.
Another thing that's not mentioned on the page is that these patches still support 2.4. Please test the makefile in general terms on 2.4 if you get a chance. You can build against a variety of kernels without rebooting with the (also undocumented) KERNDIR variable:
make KERNDIR=/usr/src/linux-2.4 build
builds the driver, against and for 2.4, under 2.5.
I'm still mystified by that rmmod sanity check problem. I've tried several kernels (2.5 and 2.4 alike) and never had that problem. Could the person who reported it clarify how and why it was happening?
Cheers,
Alistair Strachan.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.