Kernel 4.10.1-1 and 340.102 driver. ERROR: Unable to load the kernel module 'nvidia.ko'
Hello! I patched 340.102 with http://pastebin.com/u2STDSNd this patch. Now driver is compiled successfully, but after compiling there are some errors: [code]9949 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 t hat 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 g raphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release. 9950 9951 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. 9952 -> Kernel module load error: No such device 9953 -> Kernel messages: 9954 [ 472.211462] warn_slowpath_fmt+0x4f/0x60 9955 [ 472.211466] proc_register+0xf3/0x120 9956 [ 472.211471] proc_mkdir_data+0x61/0x90 9957 [ 472.211580] nv_register_procfs+0x4c/0x1d0 [nvidia] 9958 [ 472.211669] nvidia_init_module+0x286/0x770 [nvidia] 9959 [ 472.211753] ? nv_drm_init+0xf/0xf [nvidia] 9960 [ 472.211832] nvidia_frontend_init_module+0x4c/0x881 [nvidia] 9961 [ 472.211916] ? nv_drm_init+0xf/0xf [nvidia] 9962 [ 472.211918] do_one_initcall+0x4e/0x1a0 9963 [ 472.211922] ? __vunmap+0x6d/0xc0 9964 [ 472.211923] ? __vunmap+0x6d/0xc0 9965 [ 472.211925] do_init_module+0x5b/0x207 9966 [ 472.211928] load_module+0x197f/0x1d80 9967 [ 472.211932] ? __symbol_put+0x50/0x50 9968 [ 472.211934] SYSC_finit_module+0xa4/0xe0 9969 [ 472.211938] entry_SYSCALL_64_fastpath+0x1e/0xad 9970 [ 472.211940] ---[ end trace fbd0f784be317d92 ]--- 9971 [ 472.211941] NVRM: failed to register procfs! 9972 [ 472.211970] NVRM: request_mem_region failed for 16M @ 0xfd000000. This can 9973 NVRM: occur when a driver such as rivatv is loaded and claims 9974 NVRM: ownership of the device's registers. 9975 [ 472.211974] nvidia: probe of 0000:01:00.0 failed with error -1 9976 [ 472.211991] Error: Driver 'nvidia' is already registered, aborting... 9977 [ 472.211991] NVRM: DRM init failed[/code] Why driver nvidia is already registered?
Hello! I patched 340.102 with http://pastebin.com/u2STDSNd this patch. Now driver is compiled successfully, but after compiling there are some errors:
9949 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 t     hat 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 g     raphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.
9950
9951 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.
9952 -> Kernel module load error: No such device
9953 -> Kernel messages:
9954 [ 472.211462] warn_slowpath_fmt+0x4f/0x60
9955 [ 472.211466] proc_register+0xf3/0x120
9956 [ 472.211471] proc_mkdir_data+0x61/0x90
9957 [ 472.211580] nv_register_procfs+0x4c/0x1d0 [nvidia]
9958 [ 472.211669] nvidia_init_module+0x286/0x770 [nvidia]
9959 [ 472.211753] ? nv_drm_init+0xf/0xf [nvidia]
9960 [ 472.211832] nvidia_frontend_init_module+0x4c/0x881 [nvidia]
9961 [ 472.211916] ? nv_drm_init+0xf/0xf [nvidia]
9962 [ 472.211918] do_one_initcall+0x4e/0x1a0
9963 [ 472.211922] ? __vunmap+0x6d/0xc0
9964 [ 472.211923] ? __vunmap+0x6d/0xc0
9965 [ 472.211925] do_init_module+0x5b/0x207
9966 [ 472.211928] load_module+0x197f/0x1d80
9967 [ 472.211932] ? __symbol_put+0x50/0x50
9968 [ 472.211934] SYSC_finit_module+0xa4/0xe0
9969 [ 472.211938] entry_SYSCALL_64_fastpath+0x1e/0xad
9970 [ 472.211940] ---[ end trace fbd0f784be317d92 ]---
9971 [ 472.211941] NVRM: failed to register procfs!
9972 [ 472.211970] NVRM: request_mem_region failed for 16M @ 0xfd000000. This can
9973 NVRM: occur when a driver such as rivatv is loaded and claims
9974 NVRM: ownership of the device's registers.
9975 [ 472.211974] nvidia: probe of 0000:01:00.0 failed with error -1
9976 [ 472.211991] Error: Driver 'nvidia' is already registered, aborting...
9977 [ 472.211991] NVRM: DRM init failed

Why driver nvidia is already registered?

#1
Posted 03/04/2017 11:41 AM   
You also need to patch for 4.9 kernel https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-340xx-kmod.git/tree/4.9.0_kernel.patch

#2
Posted 03/04/2017 11:49 AM   
[quote=""]You also need to patch for 4.9 kernel https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-340xx-kmod.git/tree/4.9.0_kernel.patch[/quote] nope. the same error
said:You also need to patch for 4.9 kernel


https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-340xx-kmod.git/tree/4.9.0_kernel.patch


nope. the same error

#3
Posted 03/04/2017 11:55 AM   
Make sure nomodeset is in your /etc/default/grub at the end of the GRUB_CMDLINE_LINUX_DEFAULT options grub2-mkconfig -o /boot/grub2/grub.cfg to update your grub, and reboot. Also need to add nv_unregister_procfs in kernel/nv.c right after line 1041: pci_unregister_driver(&nv_pci_driver); nv_unregister_procfs(); failed5: rm_shutdown_rm(sp); ================================== Save it and build again, you need both patches 4.9 & 4.10 applied too. This worked succesful for me using (last updated) OpenSuSE Tumbleweed 20170303 kernel 4.10.1-1-default x86_64
Answer Accepted by Original Poster
Make sure nomodeset is in your /etc/default/grub at the end of the GRUB_CMDLINE_LINUX_DEFAULT options

grub2-mkconfig -o /boot/grub2/grub.cfg

to update your grub, and reboot.

Also need to add nv_unregister_procfs in kernel/nv.c

right after line 1041:

pci_unregister_driver(&nv_pci_driver);

nv_unregister_procfs();

failed5:
rm_shutdown_rm(sp);

==================================
Save it and build again, you need both patches 4.9 & 4.10 applied too.

This worked succesful for me using (last updated) OpenSuSE Tumbleweed 20170303 kernel 4.10.1-1-default x86_64

#4
Posted 03/04/2017 08:40 PM   
[quote=""]Make sure nomodeset is in your /etc/default/grub at the end of the GRUB_CMDLINE_LINUX_DEFAULT options grub2-mkconfig -o /boot/grub2/grub.cfg to update your grub, and reboot. Also need to add nv_unregister_procfs in kernel/nv.c right after line 1041: pci_unregister_driver(&nv_pci_driver); nv_unregister_procfs(); failed5: rm_shutdown_rm(sp); ================================== Save it and build again, you need both patches 4.9 & 4.10 applied too. This worked succesful for me using (last updated) OpenSuSE Tumbleweed 20170303 kernel 4.10.1-1-default x86_64 [/quote] Thank you! It works! I also using OpenSUSE Tumbleweed and you saved my day!
said:Make sure nomodeset is in your /etc/default/grub at the end of the GRUB_CMDLINE_LINUX_DEFAULT options

grub2-mkconfig -o /boot/grub2/grub.cfg

to update your grub, and reboot.

Also need to add nv_unregister_procfs in kernel/nv.c

right after line 1041:

pci_unregister_driver(&nv_pci_driver);

nv_unregister_procfs();

failed5:
rm_shutdown_rm(sp);

==================================
Save it and build again, you need both patches 4.9 & 4.10 applied too.

This worked succesful for me using (last updated) OpenSuSE Tumbleweed 20170303 kernel 4.10.1-1-default x86_64


Thank you! It works! I also using OpenSUSE Tumbleweed and you saved my day!

#5
Posted 03/05/2017 04:30 AM   
Hello Tumbleweed Folks, Would you be kind to give full "how to" with patch links (downloadable) and numbered steps for making the 340.102 work for kernel 4.10 (64 bit)? Thanks in advance!!!
Hello Tumbleweed Folks,

Would you be kind to give full "how to" with patch links (downloadable) and numbered steps
for making the 340.102 work for kernel 4.10 (64 bit)?

Thanks in advance!!!

#6
Posted 03/15/2017 10:22 PM   
[quote=""]Hello! I patched 340.102 with http://pastebin.com/u2STDSNd this patch. Now driver is compiled successfully, but after compiling there are some errors: [code]9949 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 t hat 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 g raphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release. [/quote] What is the patch you used? Link is dead
said:Hello! I patched 340.102 with http://pastebin.com/u2STDSNd this patch. Now driver is compiled successfully, but after compiling there are some errors:
[code]9949 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 t hat 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 g raphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.



What is the patch you used?
Link is dead

icomputo.com

#7
Posted 03/21/2017 06:30 AM   

#8
Posted 07/10/2017 09:44 AM   
[quote=""]Make sure nomodeset is in your /etc/default/grub at the end of the GRUB_CMDLINE_LINUX_DEFAULT options grub2-mkconfig -o /boot/grub2/grub.cfg to update your grub, and reboot. Also need to add nv_unregister_procfs in kernel/nv.c right after line 1041: pci_unregister_driver(&nv_pci_driver); nv_unregister_procfs(); failed5: rm_shutdown_rm(sp); ================================== Save it and build again, you need both patches 4.9 & 4.10 applied too. This worked succesful for me using (last updated) OpenSuSE Tumbleweed 20170303 kernel 4.10.1-1-default x86_64 [/quote] Hello, please tell details in us how install your property driver nvidia-340.102 on kali linux 2017.1.
said:Make sure nomodeset is in your /etc/default/grub at the end of the GRUB_CMDLINE_LINUX_DEFAULT options

grub2-mkconfig -o /boot/grub2/grub.cfg

to update your grub, and reboot.

Also need to add nv_unregister_procfs in kernel/nv.c

right after line 1041:

pci_unregister_driver(&nv_pci_driver);

nv_unregister_procfs();

failed5:
rm_shutdown_rm(sp);

==================================
Save it and build again, you need both patches 4.9 & 4.10 applied too.

This worked succesful for me using (last updated) OpenSuSE Tumbleweed 20170303 kernel 4.10.1-1-default x86_64


Hello, please tell details in us how install your property driver nvidia-340.102 on kali linux 2017.1.

#9
Posted 07/12/2017 08:32 PM   
Scroll To Top

Add Reply