Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2024 13:36:31 +0100
From:      Mario Marietto <marietto2008@gmail.com>
To:        FreeBSD virtualization <freebsd-virtualization@freebsd.org>,  FreeBSD Mailing List <freebsd-questions@freebsd.org>,  freebsd-hackers <freebsd-hackers@freebsd.org>, freebsd-x11@freebsd.org,  freebsd-drivers@freebsd.org, Ronald Klop <ronald@freebsd.org>,  Jake Freeland <jake@technologyfriends.net>
Subject:   drm-kmod-20220907_2 not supported for this configuration / NVIDIA : Failed to initialize the NVIDIA kernel module
Message-ID:  <CA%2B1FSiiFeF6aNy3NRWHFL=LAOYdNZZG1ydGrbbroASXVowsTFw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000d1afdf061220c57a
Content-Type: text/plain; charset="UTF-8"

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 :

root@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 :

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

so :

root@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


root@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@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.

--000000000000d1afdf061220c57a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello to everyone.</div><div><br></div><div>I need to=
 conduct some tests on top of the FreeBSD 13.1.</div><div>So,I&#39;ve insta=
lled it on one of my disks. I&#39;ve installed xfce4 and KDE,Xorg and from =
the ports (after having upgraded them),I&#39;ve installed the nvidia-driver=
 version. 535.146.02 ; I didn&#39;t have any problem.=C2=A0</div><div><br><=
/div><div>The problem arises when I tried to install the package drm-kmod f=
rom ports.=C2=A0</div><div><br></div><div>Unfortunately I&#39;m not able to=
 compile it. This is what happened :</div><div><br></div><div>root@marietto=
:/usr/ports/graphics/drm-kmod # make</div><div>=3D=3D=3D=3D&gt; drm-kmod-20=
220907_2 not supported for this configuration.</div><div><br></div><div>ok.=
 At this point I tried to install it from the packages :</div><div><br></di=
v><div><div>root@marietto:/usr/ports/graphics/drm-kmod # make clean</div><d=
iv>=3D=3D=3D=3D&gt; cleaning for drm-kmod-20220907_2</div><div><br></div><d=
iv>so :</div><div><br></div><div><div>root@marietto:/usr/ports/graphics/drm=
-kmod # pkg install drm-kmod</div><div><br></div><div>New packages to be IN=
STALLED :</div><div>drm-kmod: 20220907_2</div><div>OK</div><div><br></div><=
div>now,I have performed additional configuration to :</div><div><br></div>=
<div>nano /home/marietto/.xinitrc :</div><div><br></div><div>exec ck-launch=
-session dbus-launch --exit-with-session startxfce4</div><div><br></div><di=
v>nano /etc/rc.conf :</div><div><br></div><div>kdm5_enable=3D&quot;YES&quot=
;</div><div>dbus_enable=3D&quot;YES&quot;</div><div>hald_enable=3D&quot;YES=
&quot;</div><div>kld_list=3D&quot;nvidia nvidia-modeset&quot;</div><div>rpc=
bind_enable=3D&quot;YES&quot;</div><div>dtcms_enable=3D&quot;YES&quot;</div=
><div>inetd_enable=3D&quot;YES&quot;</div><div><br></div><div></div><div>na=
no /boot/loader.conf</div><div><br></div><div>vmm_load=3D&quot;YES&quot;</d=
iv><div>nmdm_load=3D&quot;YES&quot;</div><div>tmpfs_load=3D&quot;YES&quot;<=
/div><div>cryptodev_load=3D&quot;YES&quot;</div><div>zfs_load=3D&quot;YES&q=
uot;</div><div>kern.racct.enable=3D&quot;1&quot;</div><div>kern.vty=3Dvt</d=
iv><div>kern.cam.scsi_delay=3D&quot;10000&quot;</div><div><br></div><div>na=
no /etc/X11/xorg.conf</div><div><br></div><div>Section &quot;Device&quot;</=
div><div>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 Identifier=C2=A0=C2=A0 &quot;Card0&quot;</div><div>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 Driver=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &quot;nvidia&=
quot;</div><div>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 BusID=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 &quot;PCI:1:0:0&quot;</div><div>EndSection</div><div><br></div=
><div><br></div><div><div>root@marietto:/home/marietto # lspci</div><div><b=
r></div><div>01:00.0 NVIDIA GP106</div><div>01:00.1 NVIDIA GP106 High Defin=
ition Audio Controller</div><div>02:00.0 NVIDIA TU102</div><div>02:00.1 NVI=
DIA TU102 High Definition Audio Controller<div>02:00.2 NVIDIA TU102 USB Con=
troller</div><div>02:00.3 NVIDIA TU102 Serial BUS Controller</div><div><br>=
</div><div>Now,I want to startx to start xfce4 :</div><div><br></div><div>m=
arietto@marietto: $ startx</div><div><br></div><div>Fatal server error : no=
 screens found (EE)</div><div>Check the log file at &quot;/var/log/Xorg.0.l=
og&quot;</div><div><br></div><div>nano /var/log/Xorg.0.log :</div><div><br>=
</div><div>NVIDIA dlloader X driver 535.146.02</div><div>NVIDIA Unified Dri=
ver for all Supported NVIDIA gpus</div><div>NVIDIA : Failed to initialize t=
he NVIDIA kernel module<br></div></div></div></div><div><br></div></div><di=
v>How to fix it ?</div><div><br></div><div><span class=3D"gmail_signature_p=
refix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature" data-smartm=
ail=3D"gmail_signature">Mario.<br></div></div></div>

--000000000000d1afdf061220c57a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiiFeF6aNy3NRWHFL=LAOYdNZZG1ydGrbbroASXVowsTFw>