From nobody Sat Feb 24 13:46:58 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ThqVK13XCz59w1Z; Sat, 24 Feb 2024 14:47:37 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ThqVJ5vBsz4F2l; Sat, 24 Feb 2024 14:47:36 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a3d484a58f6so247027066b.3; Sat, 24 Feb 2024 06:47:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708786055; x=1709390855; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iGw3w3Fi4+6nJndBWEVb8v4HvFP6ZzSPMTQAa9roF+4=; b=HRfDgZTMOoO9WQr3wd94rRqKFsE9t8ZXCJ3yIFm6p7rVs9U6j4+OmoDuDBYIahAKoa 3p8zlezWVgYBDOLGLpii6S+d/6/CuXvZb2obZwgXbSIA9m/gFfkH9f5j8ighnDdme4cV SmpXXugDLLE8D+XXDqUt6OcgwJQvuLQs2sjT2b0oZgc4hBCcHTJZ10TzknQlIg0ErgXF NARr8Eh7LpeMwxpLAIlVbGs/8cKPs6UeBXSxOtx8wx0LUGMIcucZrbxqYSwsXSZzKbCD a1LCu14TRpG8FKEqXIGjhzPEOIX+RlD1Ojrq9qA1nCFWKDMWSQQdf3yv9Clkz/Qmu8WM bxvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708786055; x=1709390855; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iGw3w3Fi4+6nJndBWEVb8v4HvFP6ZzSPMTQAa9roF+4=; b=SmwYsKCq/RGDkYROMpzaRRc0J1zu1HqZGvQ/vYSRit+2LL486yqlF3pYNpRi+H60DL 1llEz7zbAa0KvxNE/SY/NG170mxT5J/W0S67QfMeLRzD8fYiwp+5wlInWFlFCi+87Ox1 pP8kFsLW7UE+z6fLs/S0Heo3gyFmFiLcQJfT5+CmpdN5OU84jpFJUOf6Q2LamNSZi4ZD 3W/O5lfp++R07Zz+qTkSE+RPHojxjCE6eDgjaWlOiimdIMmtuB13iXzDhmI8bGXAjS8Z 5BPO6GVt27TtHuDTW3WJcE7XF3KeTEwWnc1DYeAcwzQlMYsNSeYGU73EM4Yn4hBg4xkz 2blw== X-Forwarded-Encrypted: i=1; AJvYcCVKFFbAQoXVbAsNeHJxWnapwwPDp06p4zKwlgWn3FwgcYKGybU2jnS899YDXpA+DbkxuwLCiKZE2oDHEV1ppGqZr6QpM8dUT0o85skLR74PBQzW1gd6Lco3I31PUTcQbZ9wPW32NIhMVhrEouWsS+DTl5MlQSHNonNl5hzFBXS++wD1c0m4leJ16U8IRyxRn97hbaxnOxftg+gqzjzihh0K3Q+FgLswjDzFbi0wpRtTgy2IN9I= X-Gm-Message-State: AOJu0YxKByiOR3jUeJzD9Ttg5rbF3V1F8yFRPh8z+dqmt2WF4bZsvTY2 wutpmU1laBi0IviFv4OrQHSQ/BQCndyOdfWjE+HhD4NkOCImRXnoG51Afy/9dtlDprUtClIIZxW k8VlBUnNt9dqZ3GjhE6i/fa3gUq8= X-Google-Smtp-Source: AGHT+IGFprjIxVIZUeHogwOO6ZwzK0D53MOp3txcH5BJtwSjdJ9I33b5UzcDxszH82YEgYRYo/hUuJtzYAAFp1Spztk= X-Received: by 2002:a17:906:ce30:b0:a3f:bd94:4d80 with SMTP id sd16-20020a170906ce3000b00a3fbd944d80mr1698545ejb.76.1708786054908; Sat, 24 Feb 2024 06:47:34 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: <20240224140856.2B99B49712@mail.fly777.net> In-Reply-To: <20240224140856.2B99B49712@mail.fly777.net> From: Mario Marietto Date: Sat, 24 Feb 2024 14:46:58 +0100 Message-ID: Subject: Re: drm-kmod-20220907_2 not supported for this configuration / NVIDIA : Failed to initialize the NVIDIA kernel module To: Simon Gusev Cc: FreeBSD virtualization , FreeBSD Mailing List , freebsd-hackers , freebsd-x11@freebsd.org, freebsd-drivers@freebsd.org, Ronald Klop , Jake Freeland Content-Type: multipart/alternative; boundary="000000000000ccd18d061221c1c1" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4ThqVJ5vBsz4F2l --000000000000ccd18d061221c1c1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable :( 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 wro= te: > > 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 > =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 Mailing List , freebsd-hackers < > freebsd-hackers@freebsd.org>, freebsd-x11@freebsd.org, > freebsd-drivers@freebsd.org, Ronald Klop , Jake > Freeland > =D0=A2=D0=B5=D0=BC=D0=B0: drm-kmod-20220907_2 not supported for this conf= iguration / 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,Xor= g > 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. > --=20 Mario. --000000000000ccd18d061221c1c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
:(

KLD nvidia.ko : depends o= n kernel. Not available or version mismatch
linker_load_file : /b= oot/modules/nvidia.ko : unsupported file type.

Can= you give me your "nvidia.ko" file ? thanks.

<= div class=3D"gmail_quote">
On Sat, Feb= 24, 2024 at 3:09=E2=80=AFPM Simon Gusev <semfly@fly777.net> wrote:

Hello Mario.

I have problem too.
A few days i try solve the sam= e problem.
Alone was a very difficult, but solved it= .

Try this.=C2=A0
<= div dir=3D"auto">
Remove all drm and clear.


= Try steps below.

Install= this
pkg ins nvidia-xconfig
=
pkg ins nvidia-driver - you card driver select<= /div>

pkg ins nvidia-drm - use= pkg search and select your variant version
But drm = not needed for nvidia

Af= ter instal
nvidia-xconfig - will create Xorg conf fi= le

Start and load=C2=A0<= /div>
dbus
kldload nvidia

Try xfce or KDE

Best,
Simon )

- - -


<= div dir=3D"auto" style=3D"font-size:100%;color:rgb(0,0,0)">
-----= --- =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 Ma= rietto <mari= etto2008@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 virtualiza= tion <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 Free= land <ja= ke@technologyfriends.net>
=D0=A2=D0=B5=D0=BC=D0=B0: drm-k= mod-20220907_2 not supported for this configuration / NVIDIA : Failed to in= itialize 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 (aft= er having upgraded them),I've installed the nvidia-driver version. 535.= 146.02 ; I didn't have any problem.=C2=A0

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

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

root@marietto:/usr/ports/g= raphics/drm-kmod # make
=3D=3D=3D=3D> drm-kmod-20220907_2 not = supported for this configuration.

ok. At this poin= t I tried to install it from the packages :

r= oot@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 ha= ve performed additional configuration to :

nano /h= ome/marietto/.xinitrc :

exec ck-launch-session dbu= s-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/lo= ader.conf

vmm_load=3D"YES"
nmd= m_load=3D"YES"
tmpfs_load=3D"YES"
c= ryptodev_load=3D"YES"
zfs_load=3D"YES"
<= div>kern.racct.enable=3D"1"
kern.vty=3Dvt
ker= n.cam.scsi_delay=3D"10000"

nano /etc/X11= /xorg.conf

Section "Device"
= =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 "Card0"
=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 Dr= iver=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "nvidia"
=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 "PCI:1:0:0"
EndSection

root@marietto:/home/marietto # lspci

<= div>01:00.0 NVIDIA GP106
01:00.1 NVIDIA GP106 High Definition Aud= io 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@m= arietto: $ startx

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

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

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

How to = fix it ?

--=
Mario.


--
Mario.<= br>
--000000000000ccd18d061221c1c1--