Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2024 15:02:10 +0100
From:      Mario Marietto <marietto2008@gmail.com>
To:        Simon Gusev <semfly@fly777.net>
Cc:        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:   Re: drm-kmod-20220907_2 not supported for this configuration / NVIDIA : Failed to initialize the NVIDIA kernel module
Message-ID:  <CA%2B1FSigxej0dnSq3BRknLFcU3wWaTXy0C2JRrSN0US1pbSb9uw@mail.gmail.com>
In-Reply-To: <CA%2B1FSii_WXn4qzY=%2Bohg6=yT3ud5oXWNq2iSZiCu9Fi02dDx8g@mail.gmail.com>
References:  <CA%2B1FSiiFeF6aNy3NRWHFL=LAOYdNZZG1ydGrbbroASXVowsTFw@mail.gmail.com> <20240224140856.2B99B49712@mail.fly777.net> <CA%2B1FSii_WXn4qzY=%2Bohg6=yT3ud5oXWNq2iSZiCu9Fi02dDx8g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000001d9ecc061221f8f1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

It persists installing nvidia-driver-535.146.02,but I suspect that it is
too now for FreeBSD 13.1.

On Sat, Feb 24, 2024 at 2:46=E2=80=AFPM Mario Marietto <marietto2008@gmail.=
com>
wrote:

> :(
>
> 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.
>
> On Sat, Feb 24, 2024 at 3:09=E2=80=AFPM Simon Gusev <semfly@fly777.net> w=
rote:
>
>>
>> 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 )
>>
>> - - -
>>
>>
>> -------- =D0=98=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=
=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5 --------
>> =D0=9E=D1=82: Mario Marietto <marietto2008@gmail.com>
>> =D0=94=D0=B0=D1=82=D0=B0: 24.02.2024 16:38 (GMT+03:00)
>> =D0=9A=D0=BE=D0=BC=D1=83: 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>
>> =D0=A2=D0=B5=D0=BC=D0=B0: drm-kmod-20220907_2 not supported for this con=
figuration / NVIDIA :
>> 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.
>>
>> Unfortunately I'm not able to compile it. This is what happened :
>>
>> root@marietto:/usr/ports/graphics/drm-kmod # make
>> =3D=3D=3D=3D> 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
>> =3D=3D=3D=3D> 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=3D"YES"
>> dbus_enable=3D"YES"
>> hald_enable=3D"YES"
>> kld_list=3D"nvidia nvidia-modeset"
>> rpcbind_enable=3D"YES"
>> dtcms_enable=3D"YES"
>> inetd_enable=3D"YES"
>>
>> nano /boot/loader.conf
>>
>> vmm_load=3D"YES"
>> nmdm_load=3D"YES"
>> tmpfs_load=3D"YES"
>> cryptodev_load=3D"YES"
>> zfs_load=3D"YES"
>> kern.racct.enable=3D"1"
>> kern.vty=3Dvt
>> kern.cam.scsi_delay=3D"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.
>>
>
>
> --
> Mario.
>


--=20
Mario.

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

<div dir=3D"ltr">It persists installing nvidia-driver-535.146.02,but I susp=
ect that it is too now for FreeBSD 13.1.<br></div><br><div class=3D"gmail_q=
uote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Feb 24, 2024 at 2:46=E2=
=80=AFPM Mario Marietto &lt;<a href=3D"mailto:marietto2008@gmail.com">marie=
tto2008@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote"=
 style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p=
adding-left:1ex"><div dir=3D"ltr"><div>:(</div><div><br></div><div>KLD nvid=
ia.ko : depends on kernel. Not available or version mismatch</div><div>link=
er_load_file : /boot/modules/nvidia.ko : unsupported file type.</div><div><=
br></div><div>Can you give me your &quot;nvidia.ko&quot; file ? thanks.<br>=
</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_=
attr">On Sat, Feb 24, 2024 at 3:09=E2=80=AFPM Simon Gusev &lt;<a href=3D"ma=
ilto:semfly@fly777.net" target=3D"_blank">semfly@fly777.net</a>&gt; wrote:<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"auto=
"><div dir=3D"auto"><br></div><div dir=3D"auto">Hello Mario.</div><div dir=
=3D"auto"><br></div><div dir=3D"auto">I have problem too.</div><div dir=3D"=
auto">A few days i try solve the same problem.</div><div dir=3D"auto">Alone=
 was a very difficult, but solved it.</div><div dir=3D"auto"><br></div><div=
 dir=3D"auto">Try this.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"=
auto">Remove all drm and clear.</div><div dir=3D"auto"><br></div><div dir=
=3D"auto"><br></div><div dir=3D"auto">Try steps below.</div><div dir=3D"aut=
o"><br></div><div dir=3D"auto">Install this</div><div dir=3D"auto">pkg ins =
nvidia-xconfig</div><div dir=3D"auto"><br></div><div dir=3D"auto">pkg ins n=
vidia-driver - you card driver select</div><div dir=3D"auto"><br></div><div=
 dir=3D"auto">pkg ins nvidia-drm - use pkg search and select your variant v=
ersion</div><div dir=3D"auto">But drm not needed for nvidia</div><div dir=
=3D"auto"><br></div><div dir=3D"auto">After instal</div><div dir=3D"auto">n=
vidia-xconfig - will create Xorg conf file</div><div dir=3D"auto"><br></div=
><div dir=3D"auto">Start and load=C2=A0</div><div dir=3D"auto">dbus</div><d=
iv dir=3D"auto">kldload nvidia</div><div dir=3D"auto"><br></div><div dir=3D=
"auto">Try xfce or KDE</div><div dir=3D"auto"><br></div><div dir=3D"auto">B=
est,</div><div dir=3D"auto">Simon )</div><div dir=3D"auto"><br></div><div d=
ir=3D"auto" id=3D"m_-659974719948730384m_-3824912456977288851composer_signa=
ture">- - -</div><div dir=3D"auto"><br></div><div><br></div><div dir=3D"aut=
o" style=3D"font-size:100%;color:rgb(0,0,0)"></div><div style=3D"font-size:=
100%;color:rgb(0,0,0)" dir=3D"auto" align=3D"left"><div>-------- =D0=98=D1=
=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=
=B5=D0=BD=D0=B8=D0=B5 --------</div><div>=D0=9E=D1=82: Mario Marietto &lt;<=
a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank">marietto2008@gma=
il.com</a>&gt; </div><div>=D0=94=D0=B0=D1=82=D0=B0: 24.02.2024  16:38  (GMT=
+03:00) </div><div>=D0=9A=D0=BE=D0=BC=D1=83: FreeBSD virtualization &lt;<a =
href=3D"mailto:freebsd-virtualization@freebsd.org" target=3D"_blank">freebs=
d-virtualization@freebsd.org</a>&gt;, FreeBSD Mailing List &lt;<a href=3D"m=
ailto:freebsd-questions@freebsd.org" target=3D"_blank">freebsd-questions@fr=
eebsd.org</a>&gt;, freebsd-hackers &lt;<a href=3D"mailto:freebsd-hackers@fr=
eebsd.org" target=3D"_blank">freebsd-hackers@freebsd.org</a>&gt;, <a href=
=3D"mailto:freebsd-x11@freebsd.org" target=3D"_blank">freebsd-x11@freebsd.o=
rg</a>, <a href=3D"mailto:freebsd-drivers@freebsd.org" target=3D"_blank">fr=
eebsd-drivers@freebsd.org</a>, Ronald Klop &lt;<a href=3D"mailto:ronald@fre=
ebsd.org" target=3D"_blank">ronald@freebsd.org</a>&gt;, Jake Freeland &lt;<=
a href=3D"mailto:jake@technologyfriends.net" target=3D"_blank">jake@technol=
ogyfriends.net</a>&gt; </div><div>=D0=A2=D0=B5=D0=BC=D0=B0: drm-kmod-202209=
07_2 not supported for this configuration / NVIDIA : Failed to initialize t=
he NVIDIA kernel module </div><div><br></div></div><div dir=3D"ltr"><div>He=
llo to everyone.</div><div><br></div><div>I need to conduct some tests on t=
op of the FreeBSD 13.1.</div><div>So,I&#39;ve installed it on one of my dis=
ks. 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 ar=
ises when I tried to install the package drm-kmod from ports.=C2=A0</div><d=
iv><br></div><div>Unfortunately I&#39;m not able to compile it. This is wha=
t happened :</div><div><br></div><div>root@marietto:/usr/ports/graphics/drm=
-kmod # make</div><div>=3D=3D=3D=3D&gt; drm-kmod-20220907_2 not supported f=
or this configuration.</div><div><br></div><div>ok. At this point I tried t=
o install it from the packages :</div><div><br></div><div><div>root@mariett=
o:/usr/ports/graphics/drm-kmod # make clean</div><div>=3D=3D=3D=3D&gt; clea=
ning for drm-kmod-20220907_2</div><div><br></div><div>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 INSTALLED :</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 --e=
xit-with-session startxfce4</div><div><br></div><div>nano /etc/rc.conf :</d=
iv><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_li=
st=3D&quot;nvidia nvidia-modeset&quot;</div><div>rpcbind_enable=3D&quot;YES=
&quot;</div><div>dtcms_enable=3D&quot;YES&quot;</div><div>inetd_enable=3D&q=
uot;YES&quot;</div><div><br></div><div></div><div>nano /boot/loader.conf</d=
iv><div><br></div><div>vmm_load=3D&quot;YES&quot;</div><div>nmdm_load=3D&qu=
ot;YES&quot;</div><div>tmpfs_load=3D&quot;YES&quot;</div><div>cryptodev_loa=
d=3D&quot;YES&quot;</div><div>zfs_load=3D&quot;YES&quot;</div><div>kern.rac=
ct.enable=3D&quot;1&quot;</div><div>kern.vty=3Dvt</div><div>kern.cam.scsi_d=
elay=3D&quot;10000&quot;</div><div><br></div><div>nano /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 Id=
entifier=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;PC=
I:1:0:0&quot;</div><div>EndSection</div><div><br></div><div><br></div><div>=
<div>root@marietto:/home/marietto # lspci</div><div><br></div><div>01:00.0 =
NVIDIA GP106</div><div>01:00.1 NVIDIA GP106 High Definition Audio Controlle=
r</div><div>02:00.0 NVIDIA TU102</div><div>02:00.1 NVIDIA TU102 High Defini=
tion Audio Controller<div>02:00.2 NVIDIA TU102 USB Controller</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>marietto@marietto: $ s=
tartx</div><div><br></div><div>Fatal server error : no screens found (EE)</=
div><div>Check the log file at &quot;/var/log/Xorg.0.log&quot;</div><div><b=
r></div><div>nano /var/log/Xorg.0.log :</div><div><br></div><div>NVIDIA dll=
oader X driver 535.146.02</div><div>NVIDIA Unified Driver for all Supported=
 NVIDIA gpus</div><div>NVIDIA : Failed to initialize the NVIDIA kernel modu=
le<br></div></div></div></div><div><br></div></div><div>How to fix it ?</di=
v><div><br></div><div><span class=3D"gmail_signature_prefix">-- </span><br>=
<div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></div></div></div>
</div></blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signatu=
re_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<=
br></div>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d=
iv>

--0000000000001d9ecc061221f8f1--



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