[opensuse-support] How can I get nvidia.ko installed in 15.0?

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 startx complains it could not modprobe nvidia.ko. The module does not exist. Telcontar:~ # rpm -ql nvidia-gfxG03-kmp-default | less /etc/modprobe.d/nvidia-default.conf /lib/modules/4.12.14-lp150.11-default /lib/modules/4.12.14-lp150.11-default/updates /lib/modules/4.12.14-lp150.11-default/updates/nvidia.ko <-- /usr/lib/nvidia ... But it is not there. Why? Telcontar:~ # l /lib/modules/4.12.14-lp150.11-default/updates total 8 drwxr-xr-x 2 root root 4096 Oct 12 15:55 ./ drwxr-xr-x 3 root root 4096 Mar 29 12:42 ../ Telcontar:~ # I look into the rpm with mc, and the file is not there. How can I then create it? How can I find why it was not created? There is nothing in the log. [...] I install the rpm manually. I get this: Telcontar:/data/storage_c/repositorios_zypp/15_0/download.nvidia.com-leap/x86_64 # rpm --install --force nvidia-gfxG03-kmp-default-340.107_k4.12.14_lp150.11-lp150.12.1.x86_64.rpm make: *** /usr/src/linux-obj/x86_64/default: No such file or directory. Stop. make: *** /usr/src/linux-obj/x86_64/default: No such file or directory. Stop. /usr/src/kernel-modules/nvidia-340.107-default / NVIDIA: calling KBUILD... make[1]: *** /lib/modules//source: No such file or directory. Stop. NVIDIA: left KBUILD. nvidia.ko failed to build! make: *** [Makefile:192: nvidia.ko] Error 1 / install: cannot stat '/usr/src/kernel-modules/nvidia-340.107-default/nvidia.ko': No such file or directory depmod: WARNING: could not open modules.order at /lib/modules/4.12.14-lp150.11-default: No such file or directory depmod: WARNING: could not open modules.builtin at /lib/modules/4.12.14-lp150.11-default: No such file or directory Modprobe blacklist files have been created at /etc/modprobe.d to prevent Nouveau from loading. This can be reverted by deleting /etc/modprobe.d/nvidia-*.conf. .... then it goes on with dracut. As you can see, the make procedure failed, yet YaST said nothing and continues with dracut, making one think that everything was alright. The local problem is here: Telcontar:/data/storage_c/repositorios_zypp/15_0 # Telcontar:/usr/src/linux-obj/x86_64 # l default lrwxrwxrwx 1 root root 47 Mar 28 19:39 default -> ../../linux-4.12.14-lp151.22-obj/x86_64/default Telcontar:/usr/src/linux-obj/x86_64 # Installation of the 15.0 kernel after removing 15.1 kernel did not make the correct link. - -- Cheers Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXJ5PxRwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVIWAAniZ5TAdnHmB2wtHPA1Fi HK5WI1jkAJsEpVixYpqELfpEW8T51x5cepyEnQ== =3IXb -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org

Carlos E. R. wrote:
As you found out, it's not part of the rpm, but compiled by a script of the package.
This should be a link to your kernel build environment, e.g., woodstock:~% l /usr/src/linux-obj/x86_64/default lrwxrwxrwx 1 root root 38 Mar 27 11:32 /usr/src/linux-obj/x86_64/default -> ../../linux-5.0.3-1-obj/x86_64/default/ Probably it got removed during your kernel replacement tests?
That one's missing the kernel version (between the double /) make sure the kernel-default-devel is installed. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org

On 01/04/2019 12.51, Peter Suetterlin wrote:
Carlos E. R. wrote:
The problem is that the compilation failed, yet YaST claimed success. I had to install with the rpm command on a terminal, to see the error message - and pause the screen before getting flooded with dracut messages. The rpm install does not abort on make error, and claims success.
Yes.
It was. When I removed the 15.1 kernel yast deleted the links, without reinstating the links of 15.0. The procedure is to force reinstall the 15.0 kernel again, even if it is already installed. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)

Carlos E. R. wrote:
As you found out, it's not part of the rpm, but compiled by a script of the package.
This should be a link to your kernel build environment, e.g., woodstock:~% l /usr/src/linux-obj/x86_64/default lrwxrwxrwx 1 root root 38 Mar 27 11:32 /usr/src/linux-obj/x86_64/default -> ../../linux-5.0.3-1-obj/x86_64/default/ Probably it got removed during your kernel replacement tests?
That one's missing the kernel version (between the double /) make sure the kernel-default-devel is installed. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org

On 01/04/2019 12.51, Peter Suetterlin wrote:
Carlos E. R. wrote:
The problem is that the compilation failed, yet YaST claimed success. I had to install with the rpm command on a terminal, to see the error message - and pause the screen before getting flooded with dracut messages. The rpm install does not abort on make error, and claims success.
Yes.
It was. When I removed the 15.1 kernel yast deleted the links, without reinstating the links of 15.0. The procedure is to force reinstall the 15.0 kernel again, even if it is already installed. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
participants (2)
-
Carlos E. R.
-
Peter Suetterlin