无法加载内核模块“nvidia.ko”

无法加载内核模块“nvidia.ko”

在我的系统上,我无法安装推荐的图形驱动程序,所以我的安装一定有问题。

GPU 芯片组是 ATI ES1000,但推荐的驱动程序是从服务器供应商网站下载的 NVIDIA NVS300。

带有 Microsoft Windows 2012 本机驱动程序的板载图形控制器 ATI ES1000 的最大图形分辨率为 1280 x 1024。ATI 没有计划在 Windows 2012 中支持 ATI ES1000 图形芯片。因此没有可安装的 OEM 驱动程序在装有 Microsoft Windows 2012 的 PRIMERGY TX100 S3 或 TX100 S3p 上。为了在 PRIMERGY TX100 S3 或 TX100 S3p 上获得更高的图形分辨率,可以使用 PCIe 图形控制器 NVIDIA® Quadro® NVS 300。

在安装之前,我切换到运行级别 3 ( init 3) 和列入黑名单的 nouveau 驱动程序 ( echo blacklist nouveau > /etc/modprobe.d/nvidia.conf)。不存在任何冲突的驱动程序:

# lsmod | grep -e nouveau -e rivafb -e nvidiafb
(empty)

这些都是应该需要的步骤,我的Oracle Linux(基于Red Hat Enterprise Linux 6.7,Kernel Linux 3.8.13-118.2.1.el6uek.x86_64,GNOME 2.28.2)上还有什么问题,我在想不兼容的内核或某些 GPU 驱动程序冲突?

驱动程序支持的操作系统列表:

Red Hat Enterprise Linux 6.6 (x86_64)
Red Hat Enterprise Linux 6.7 (x86_64)
Red Hat Enterprise Linux 7 GA (x86_64)
Red Hat Enterprise Linux 7.1 (x86_64)
SUSE Linux Enterprise Server 11 SP3 (x86_64)
SUSE Linux Enterprise Server 11 SP4 (x86_64)

主要错误:

错误:无法加载内核模块“nvidia.ko”。当此内核模块是针对错误或配置不当的内核源构建的、使用的 gcc 版本与用于构建目标内核的版本不同、或者存在 rivafb、nvidiafb 或 nouveau 等驱动程序时,最常发生这种情况并阻止 NVIDIA 内核模块获取 NVIDIA 图形设备的所有权,或者此 NVIDIA Linux 图形驱动程序版本不支持此系统中安装的 NVIDIA GPU。

输出来自/var/log/nvidia-installer.log

-> Kernel module compilation complete.
-> Unable to determine if Secure Boot is enabled: No such file or directory
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.

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 './kernel/nvidia.ko': -1 No such device
-> Kernel messages:
survey done event(5c) band:0 for wlan0
==>rtw_ps_processor .fw_state(8)
==>ips_enter cnts:5
===> rtw_ips_pwr_down...................
====> rtw_ips_dev_unload...
usb_read_port_cancel
usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
usb_write_port_cancel 
==> rtl8192cu_hal_deinit 
bkeepfwalive(0)
card disble without HWSM...........
<=== rtw_ips_pwr_down..................... in 29ms
usb 2-1.2: USB disconnect, device number 7
usb 2-1.2: new low-speed USB device number 8 using ehci-pci
usb 2-1.2: New USB device found, idVendor=093a, idProduct=2510
usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1.2: Product: USB Optical Mouse
usb 2-1.2: Manufacturer: PixArt
input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/input/input7
hid-generic 0003:093A:2510.0005: input,hidraw1: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
NVRM: No NVIDIA graphics adapter found!
NVRM: NVIDIA init module failed!
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.

答案1

ES1000 内置于您的主板中,NVS300 是可选配件。这就是为什么您会收到一条错误消息:NVRM: No NVIDIA graphics adapter found!

您引用的文字说,如果您想要比 ATI ES1000 支持的分辨率更高的分辨率,那么您可以安装 Nvidia NVS300,这是一个完全不同且独立的 GPU 卡。

NVS300也是一张相当老的卡。您可能可以安装任何其他最新的 AMD 或 Nvidia 卡,这些卡在物理上适合插槽(需要 PCI-E x16 插槽)和机箱(您可能需要小型无风扇卡)。

例如,Nvidia GTX-750(约 110 美元)完全可以与 NVS300 相媲美,它的速度快得多,无法比较 - 而且 750 甚至还没有接近顶级的现代 GPU。即使是更便宜的卡(例如约 40 美元的 GT610)也比 NVS300 快得多。

根据http://www.fujitsu.com/tw/Images/ds-py-tx100-s3-en.pdf 您的系统有 1 个 pci-e 3.0 插槽,物理尺寸为 x16(因此它可以使用全尺寸 x16 GPU 卡),但电子尺寸仅为 x8,因此该卡可以正常运行,但带宽略有减少(GPU 不会在靠近无论如何,PCI-E 3.0 @ x16 的全带宽)。

最后,如果您只是想让 ES1000 内置 GPU 工作,它应该只与相当现代的 Linux 内核和 X 一起工作。不过,不要期望高分辨率或快速图形。

答案2

你的答案写在日志中:

No NVIDIA graphics adapter found!
NVRM: NVIDIA init module failed!

如果您的计算机上没有 NVIDIA 卡,则无法加载 nvidia 驱动程序。

您注意到的有关内核模块构建的主要错误消息是通用的。它不适用于您的情况,错误消息很明确。

相关内容