Cant compile nvidia driver
Hi All,
I just downloaded the latest Nvidia drivers (1.0-8774) and tried compiling the nvidia module on a brand new Slackware 10.2 installation, but after compiling the module it says that it failed trying to load it. I am running a newly compiled kernel 2.6.13 and the kernel source is where it should be.. No modules are loaded.. Any ideas? Log included... Code:
nvidia-installer log file '/var/log/nvidia-installer.log' Thanks |
Quote:
|
Yep.. read that part.
There are no modules loaded and I do not have Nvidia/Riva FB support compiled into the kernel |
Okay.. in the finest traditions of making myself look like a tw@t... I just noticed that the NvidiaFB IS loading, which is strange cause I recompiled the kernel after unselecting it, but its still there.
I've just done a make clean so hopefully this kernel will definitely compile without it. Sorry to waste peoples time! Thanks for your help :-) |
@Sugarat
So, how did your recompile go? I am having the same problem you had, or so I think, and when I do an "lsmod" I don't see rivafb or nvidiafb loaded. Reviewing dmesg, I see a where NVIDIA is loaded, and then it begins to complain about i2c_add_adapter and i2c_del_adapter being unknow symbols. I should mention that I am running -current and kernel 2.6.16.14. |
you should use the same gcc version that was being used to compile the kernels, so if you have just upgraded your gcc, then i suggest to use the old gcc or recompile your kernel with the current gcc version that are installed on your system.
It works on my Slackware with 2.6.18 loaded :D |
I just compiled a new 2.6.18 kernel, and I still have the problem with the nvidia installer complaining about having the rivafb or nvidiafb installed, incorrectly configured kernel, or a gcc mismatch.
In the meantime, I am also getting many, many errors during boot about i2c_core and other i2c_* modules with unknown symbols such as i2c_debug. |
I have found that recent nvidia driver versions do not like 2.4 kernels and need the correct 2.6 kernel headers. I get the riva warnings but ignore them without any snags.
|
I've recompiled 2.6.18 again without the rivafb and nvidiafb driver modules. When I run the nvidia driver install script, these are the error messages I get at the end. This has something to do with my system's current inability to load the i2c modules, and I haven't been able to figure out why they aren't loading.
The error messages: NVIDIA: left KBUILD. -> done. -> Kernel module compilation complete. ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s). Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for more information. -> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko': -1 Unknown symbol in module -> Kernel messages: eeprom: Unknown symbol i2c_smbus_write_byte eeprom: Unknown symbol i2c_smbus_read_byte eeprom: Unknown symbol i2c_smbus_read_i2c_block_data eeprom: Unknown symbol i2c_del_driver eeprom: Unknown symbol i2c_detach_client eeprom: Unknown symbol i2c_smbus_read_byte_data eeprom: Unknown symbol i2c_attach_client i2c_core: Unknown parameter `i2c_debug' i2c_isa: Unknown symbol i2c_adapter_dev_release i2c_isa: Unknown symbol i2c_adapter_driver i2c_isa: Unknown symbol i2c_bus_type i2c_isa: Unknown symbol i2c_adapter_class w83627hf: Unknown symbol i2c_isa_add_driver w83627hf: Unknown symbol i2c_isa_del_driver w83627hf: Unknown symbol i2c_detach_client w83627hf: Unknown symbol i2c_attach_client i2c_core: Unknown parameter `i2c_debug' i2c_core: Unknown parameter `i2c_debug' i2c_core: Unknown parameter `i2c_debug' nvidia: module license 'NVIDIA' taints kernel. nvidia: Unknown symbol i2c_del_adapter nvidia: Unknown symbol i2c_add_adapter i2c_core: Unknown parameter `i2c_debug' nvidia: Unknown symbol i2c_del_adapter nvidia: Unknown symbol i2c_add_adapter 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. |
Do you have i2c support in your kernel?
|
Yes, and after I saw the bit about "Unknown parameter 'i2c_debug'" I went back and selected the debugging option, recompiled and reinstalled. It had no effect, and I still get the error messages shown in my other posting.
The i2c stuff is compiled as modules. I could compile it into the kernel, but my past experience has been that you're better off with modules for some reason. I guess it might be worth a shot. |
Did you try to install 2.6 kernel headers as davidsrsb suggested?
|
Well, compiling the i2c stuff into the kernel seems to have worked. I was able to compile and install the nvidia driver and now I am back up again with X.
@gbonvehi Yes, I installed (actually, upgraded) the kernel headers to the latest in -current, which are 2.6.18, IIRC. It didn't have any effect on my ability to load the i2c modules. |
All times are GMT -5. The time now is 11:54 AM. |