Page 1 of 1
Nvidia driver nvidia.ko problem! (SOLVED)
Posted: 12. Sep 2017, 19:39
by silentwind
I’ve followed the steps from:
https://docs.salixos.org/wiki/How_to_In ... DIA_driver
The graphic card is Nvidia GT 240. The driver is NVIDIA-Linux-x86_64-340.102.run
Problems:
1. After running
sudo slapt-get -i xf86-video-nouveau-blacklist
the terminal said:
Reading Package Lists...Done
No such package: xf86-video-nouveau-blacklist
I’ve decided to continue anyway.
2. After running:
sh NVIDIA-Linux-*.run
Nvidia offered to blacklist nouveau. I agreed.
Then Nvidia started installing, but after a while it gave the error:
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, or nouveau is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release
After a system reboot,I’ve tried to run again
sh NVIDIA-Linux-*.run
but the same thing happened.
What can be done?
Re: Nvidia driver nvidia.ko problem!
Posted: 12. Sep 2017, 20:47
by gapan
Do you get any errors when building the nvidia driver?
If you don't, try:
to completely remove the nouveau driver and reboot.
Re: Nvidia driver nvidia.ko problem!
Posted: 13. Sep 2017, 05:31
by silentwind
gapan wrote:Do you get any errors when building the nvidia driver?
If you don't, try:
to completely remove the nouveau driver and reboot.
This is what happens after starting sh NVIDIA-Linux-*.run:
1.Nvidia license accept appears
2..'Build nvidia kernel module' screen appears and goes to 100%completion
3.'Build unified memory kernel module' screen appears and goes to 100%completion
4.The "nvidia.ko" error appears
I've completely removed the nouveau driver with the command you've provided, and then rebooted and tried again and same things happened.
Here is the content of the /var/log/nvidia-installer.log:
https://gist.github.com/anonymous/43973 ... 527fb39b9f
I'm using Salix Xfce 64 bit and the driver is for 64 bit also.
Re: Nvidia driver nvidia.ko problem!
Posted: 13. Sep 2017, 07:04
by DidierSpaier
In yur log I see:
Code: Select all
make[1]: Entering directory '/usr/src/linux-4.4.75'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
Shot in the dark: check that you have kernel-source for kernel 4.4.75 properly installed.
Re: Nvidia driver nvidia.ko problem!
Posted: 13. Sep 2017, 07:44
by silentwind
DidierSpaier wrote:Shot in the dark: check that you have kernel-source for kernel 4.4.75 properly installed.
Ok, but how do I do that? Sorry, I'm still at the very beginning with Gnu/Linux.
If I run in Terminal:
it lists:
4.4.29
Does that mean the kernel did not update correctly? I've followed the wiki to the letter so far, so I have no clue what the problem might be...
Re: Nvidia driver nvidia.ko problem!
Posted: 13. Sep 2017, 08:18
by gapan
You are running kernel 4.4.29 and you have the kernel source for 4.4.75. These need to match. Run:
You'll see a list of kernel packages that are being excluded. For each of them run:
Code: Select all
sudo slapt-get -i kernel_package_name
Don't forget to update lilo or elilo after you do that or your system won't boot if you use any of them.
For lilo:
For elilo, just copy /boot/vmlinuz to your /boot/efi/EFI/Salix-Xfce-14.2/
Re: Nvidia driver nvidia.ko problem!
Posted: 13. Sep 2017, 09:43
by silentwind
That solved it, gapan!
You guys are fantastic. I've never received such fast and accurate help before with concern to computer problems. And maybe with Salix it's no more distro-hopping for me
Since I have grub, I've run
as last line and then rebooted.
The Nvidia logo appeared. Now videos and apps work fine.
There is still the matter of the login screen resolution being different than what I've set for the desktop, but we could address that in the "newbie guide" post. Should I mark this topic solved?
Many thanks, again.
Re: Nvidia driver nvidia.ko problem!
Posted: 13. Sep 2017, 10:35
by silentwind
Oh, sorry, but I forgot to ask the most important questions:
Did the above driver & kernel problem happen due to any error on my part? Did I do something wrong?
-If yes, how can I prevent it in a future Salix install?
-If no, then I suppose it will be fixed in future Salix versions? And/or a wiki update maybe?
Re: Nvidia driver nvidia.ko problem!
Posted: 15. Sep 2017, 17:49
by gapan
slientwind wrote:Oh, sorry, but I forgot to ask the most important questions:
Did the above driver & kernel problem happen due to any error on my part? Did I do something wrong?
-If yes, how can I prevent it in a future Salix install?
-If no, then I suppose it will be fixed in future Salix versions? And/or a wiki update maybe?
Well, this was definitely not a bug. And it's not that you did something particularly wrong either. You should have just paid more attention at which kernel version you have installed and which kernel-source package you were installing to go with it. Ideally, you should have upgraded your kernel before you installed the kernel-source package and tried to build the nvidia driver. I have added a note in the wiki about it.