Discussion:
drm-kmod-20220907_2 not supported for this configuration / NVIDIA : Failed to initialize the NVIDIA kernel module
(too old to reply)
Mario Marietto
2024-02-24 12:36:31 UTC
Permalink
Hello to everyone.

I need to conduct some tests on top of the FreeBSD 13.1.
So,I've installed it on one of my disks. I've installed xfce4 and KDE,Xorg
and from the ports (after having upgraded them),I've installed the
nvidia-driver version. 535.146.02 ; I didn't have any problem.

The problem arises when I tried to install the package drm-kmod from ports.

Unfortunately I'm not able to compile it. This is what happened :

***@marietto:/usr/ports/graphics/drm-kmod # make
====> drm-kmod-20220907_2 not supported for this configuration.

ok. At this point I tried to install it from the packages :

***@marietto:/usr/ports/graphics/drm-kmod # make clean
====> cleaning for drm-kmod-20220907_2

so :

***@marietto:/usr/ports/graphics/drm-kmod # pkg install drm-kmod

New packages to be INSTALLED :
drm-kmod: 20220907_2
OK

now,I have performed additional configuration to :

nano /home/marietto/.xinitrc :

exec ck-launch-session dbus-launch --exit-with-session startxfce4

nano /etc/rc.conf :

kdm5_enable="YES"
dbus_enable="YES"
hald_enable="YES"
kld_list="nvidia nvidia-modeset"
rpcbind_enable="YES"
dtcms_enable="YES"
inetd_enable="YES"

nano /boot/loader.conf

vmm_load="YES"
nmdm_load="YES"
tmpfs_load="YES"
cryptodev_load="YES"
zfs_load="YES"
kern.racct.enable="1"
kern.vty=vt
kern.cam.scsi_delay="10000"

nano /etc/X11/xorg.conf

Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection


***@marietto:/home/marietto # lspci

01:00.0 NVIDIA GP106
01:00.1 NVIDIA GP106 High Definition Audio Controller
02:00.0 NVIDIA TU102
02:00.1 NVIDIA TU102 High Definition Audio Controller
02:00.2 NVIDIA TU102 USB Controller
02:00.3 NVIDIA TU102 Serial BUS Controller

Now,I want to startx to start xfce4 :

***@marietto: $ startx

Fatal server error : no screens found (EE)
Check the log file at "/var/log/Xorg.0.log"

nano /var/log/Xorg.0.log :

NVIDIA dlloader X driver 535.146.02
NVIDIA Unified Driver for all Supported NVIDIA gpus
NVIDIA : Failed to initialize the NVIDIA kernel module

How to fix it ?
--
Mario.
Mario Marietto
2024-02-24 13:46:58 UTC
Permalink
:(

KLD nvidia.ko : depends on kernel. Not available or version mismatch
linker_load_file : /boot/modules/nvidia.ko : unsupported file type.

Can you give me your "nvidia.ko" file ? thanks.
Hello Mario.
I have problem too.
A few days i try solve the same problem.
Alone was a very difficult, but solved it.
Try this.
Remove all drm and clear.
Try steps below.
Install this
pkg ins nvidia-xconfig
pkg ins nvidia-driver - you card driver select
pkg ins nvidia-drm - use pkg search and select your variant version
But drm not needed for nvidia
After instal
nvidia-xconfig - will create Xorg conf file
Start and load
dbus
kldload nvidia
Try xfce or KDE
Best,
Simon )
- - -
-------- ИсхПЎМПе сППбщеМОе --------
Дата: 24.02.2024 16:38 (GMT+03:00)
Failed to initialize the NVIDIA kernel module
Hello to everyone.
I need to conduct some tests on top of the FreeBSD 13.1.
So,I've installed it on one of my disks. I've installed xfce4 and KDE,Xorg
and from the ports (after having upgraded them),I've installed the
nvidia-driver version. 535.146.02 ; I didn't have any problem.
The problem arises when I tried to install the package drm-kmod from ports.
====> drm-kmod-20220907_2 not supported for this configuration.
====> cleaning for drm-kmod-20220907_2
drm-kmod: 20220907_2
OK
exec ck-launch-session dbus-launch --exit-with-session startxfce4
kdm5_enable="YES"
dbus_enable="YES"
hald_enable="YES"
kld_list="nvidia nvidia-modeset"
rpcbind_enable="YES"
dtcms_enable="YES"
inetd_enable="YES"
nano /boot/loader.conf
vmm_load="YES"
nmdm_load="YES"
tmpfs_load="YES"
cryptodev_load="YES"
zfs_load="YES"
kern.racct.enable="1"
kern.vty=vt
kern.cam.scsi_delay="10000"
nano /etc/X11/xorg.conf
Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
01:00.0 NVIDIA GP106
01:00.1 NVIDIA GP106 High Definition Audio Controller
02:00.0 NVIDIA TU102
02:00.1 NVIDIA TU102 High Definition Audio Controller
02:00.2 NVIDIA TU102 USB Controller
02:00.3 NVIDIA TU102 Serial BUS Controller
Fatal server error : no screens found (EE)
Check the log file at "/var/log/Xorg.0.log"
NVIDIA dlloader X driver 535.146.02
NVIDIA Unified Driver for all Supported NVIDIA gpus
NVIDIA : Failed to initialize the NVIDIA kernel module
How to fix it ?
--
Mario.
--
Mario.
Tomoaki AOKI
2024-02-24 14:54:01 UTC
Permalink
On Sat, 24 Feb 2024 13:36:31 +0100
Post by Mario Marietto
Hello to everyone.
I need to conduct some tests on top of the FreeBSD 13.1.
So,I've installed it on one of my disks. I've installed xfce4 and KDE,Xorg
and from the ports (after having upgraded them),I've installed the
nvidia-driver version. 535.146.02 ; I didn't have any problem.
The problem arises when I tried to install the package drm-kmod from ports.
====> drm-kmod-20220907_2 not supported for this configuration.
====> cleaning for drm-kmod-20220907_2
drm-kmod: 20220907_2
OK
exec ck-launch-session dbus-launch --exit-with-session startxfce4
kdm5_enable="YES"
dbus_enable="YES"
hald_enable="YES"
kld_list="nvidia nvidia-modeset"
rpcbind_enable="YES"
dtcms_enable="YES"
inetd_enable="YES"
nano /boot/loader.conf
vmm_load="YES"
nmdm_load="YES"
tmpfs_load="YES"
cryptodev_load="YES"
zfs_load="YES"
kern.racct.enable="1"
kern.vty=vt
kern.cam.scsi_delay="10000"
nano /etc/X11/xorg.conf
Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
01:00.0 NVIDIA GP106
01:00.1 NVIDIA GP106 High Definition Audio Controller
02:00.0 NVIDIA TU102
02:00.1 NVIDIA TU102 High Definition Audio Controller
02:00.2 NVIDIA TU102 USB Controller
02:00.3 NVIDIA TU102 Serial BUS Controller
Fatal server error : no screens found (EE)
Check the log file at "/var/log/Xorg.0.log"
NVIDIA dlloader X driver 535.146.02
NVIDIA Unified Driver for all Supported NVIDIA gpus
NVIDIA : Failed to initialize the NVIDIA kernel module
How to fix it ?
--
Mario.
(Dropped mailing lists I'm not subscribing from CC)

I myself haven't used graphics/drm-*-kmod, but looking into
graphics/drm-kmod/Makefile, minimum supportted version is 13.2.
If you really need to use DRM, you should update base at least to 13.2
first.
And if running nvidia GPUs on 13.2, you would need
graphics/nvidia-drm-510-kmod, too.

Moreover, 13.1 is already EOL'ed [1]. Using 13.1 is STRONGLY
DISCOURAGED.

[1] https://www.freebsd.org/security/#sup
--
Tomoaki AOKI <***@dec.sakura.ne.jp>


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...