如何在重新编译 Linux 内核时禁用 rivafb(Ubuntu 22.04)

如何在重新编译 Linux 内核时禁用 rivafb(Ubuntu 22.04)

我是 Linux 新手,我想使用以下方法安装显卡驱动程序本教程但我不能。(nvidia-installer.log以下文件内容)

我做了一些研究,发现我需要重新编译 Linux 内核并在编译过程中禁用 rivafb(我不知道 rivafb 是什么),但我不知道如何做到这一点,而且我没有找到任何相关教程。


内容/var/log/nvidia-installer.log

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Sep 17 04:37:24 2022
installer version: 367.57

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> Detected 2 CPUs online; setting concurrency level to 2.
-> License accepted.
-> Installing NVIDIA driver version 367.57.
-> An alternate method of installing the NVIDIA driver was detected. (This is usually a package provided by your distributor.) A driver installed via that method may integrate better with your system than a driver installed by nvidia-installer.

Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:

The NVIDIA driver provided by Ubuntu can be installed by launching the "Software & Updates" application, and by selecting the NVIDIA driver from the "Additional Drivers" tab.


(Answer: Continue installation)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: No)
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: '/lib/modules/5.15.0-47-generic/build'
-> Kernel output path: '/lib/modules/5.15.0-47-generic/build'
-> Performing rivafb check.
ERROR: Your kernel was configured to include rivafb support!

The rivafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and *disable* rivafb support, then
try installing the NVIDIA kernel module again.
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.

输出sudo lsmod | grep rivafb

nothing!

答案1

我终于自己成功了,以下是我所做的:

我跟着本教程构建内核并在步骤 4.4 中我nvidia riva support在此位置禁用:

Main menu> Device Drivers > Graphical support > Frame buffer Device > Support for frame buffer devices > nVidia Riva support 

相关内容