From nobody Sat Feb 24 14:02:10 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 4Thqqx10K4z59xGy; Sat, 24 Feb 2024 15:02:53 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (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 4Thqqw2fPFz4Kxx; Sat, 24 Feb 2024 15:02:52 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=jwXaDDNz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-565b86c9943so328310a12.1; Sat, 24 Feb 2024 07:02:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708786966; x=1709391766; 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=pmsXL5fxizsP6epAqqXA7dm6NR4aK2TOWnRY1roMNnc=; b=jwXaDDNzao2IjtWD58zGBRJDuTzjppZ16MvfFtMNhyINO8tkBtmhXMDsjOuXMOMPEB B49pfeqYcbDz7dRSzQYlj9KNxcXL2TuO0IZ3iWqPKCptKJhhyKoPVTBRpRY+R9XDSGG3 CtkHgRUbYkFUTZU1eJPdBMrSybcFXMP22LU36PovW1snPJUdANGlAROB6Y0dYsLib7b1 qn3L+VaFH+zy+2anXm4ByEkvs74cGAHt+RrG0sblz7bnXwJMkF4etvwi7al36EI6DHQV Fl8JDKIusywHQaL1n3wKzQb8xZUtFQeuymVayWVB9U2WyAc4Pf3Bx7bGX6mdY6A1qh0Z YPQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708786966; x=1709391766; 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=pmsXL5fxizsP6epAqqXA7dm6NR4aK2TOWnRY1roMNnc=; b=VRbwrlV3BX7FUePMkDm4CR75Y+YD2KHC0oi29GD9CyX17m6cao/v2o1XdJsZ92A9iG UdWrv6kpO2ys63hE4sgoiuqESMjxgr9P4HCyFHJc5uiXxZLEUJ4JDUWe08/QOHCohOpg CsBwzufWbwsU/EpevYMVeevFlqDSiY/HaWuhZgLFnCsFbKHtwl8+yYHeAVWaPN7Nxbjn DqZwTe7H9gZwYXoja4+7aPeCQygfkNcNIBbNbVm9SiS46/sAYE4DGKmg4avO/k19tHAA XpbKnvMZLeCf1zxt0Kvs01x3TuIWRvyfTnTHVzENyFl/H0IB2Wdx7Hrcw9jXryJglavi jYqA== X-Forwarded-Encrypted: i=1; AJvYcCV8EggSefTroSMpZyFQMFbsirO9+nVqAowWHk1RpaStbOoeROfs5/1Z7W6iF+H81lB+lJNpX43dVlSA+cDiCmqtxBVAE4S12VHLdZfwcyHvGWPQJXEFsh7IHIjbZE4aS2tdOjagamsHn1D3/qGZ/fe2J98mSGs4yP8dt/cBmeL39Qtmgw453EeZuBJNaHmJPp+7oBPnoVkKHbTbIU0wglEWhLTJjBQc+1AcHVQiNsFgjsnJ0Bs= X-Gm-Message-State: AOJu0Yyqvf7+kpVuThHHkAP+G9qILGYlQFDoy/tKak//tuR+2QBBqDfC zix6/K/TXZNx7qMArlYdeZAHheLtqWIb65P9nZmrs8oZeeJg+HTdAKcsx9eA/5Yo5ZU1+MP5Jh8 fv7uRRtEJD5z3ke8+pEEp3P7wD6I= X-Google-Smtp-Source: AGHT+IEXF72P3W/11Sr+O15eO8Bw/5Iu76DfjGwY3E2qOi+334EmW80nbVjD1nQr0yrxX5S3s0N5duWAvVvSUeV6OZg= X-Received: by 2002:a17:906:4104:b0:a3e:8b8e:8795 with SMTP id j4-20020a170906410400b00a3e8b8e8795mr2212709ejk.34.1708786966174; Sat, 24 Feb 2024 07:02:46 -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: From: Mario Marietto Date: Sat, 24 Feb 2024 15:02:10 +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="0000000000001d9ecc061221f8f1" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_SOME(0.00)[]; RCPT_COUNT_SEVEN(0.00)[8]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org,freebsd-questions@freebsd.org,freebsd-hackers@freebsd.org,freebsd-x11@freebsd.org,freebsd-drivers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::535:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4Thqqw2fPFz4Kxx --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 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 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 >> =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 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
It persists installing nvidia-driver-535.146.02,but I susp= ect that it is too now for FreeBSD 13.1.

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

KLD nvid= ia.ko : depends on kernel. Not available or version mismatch
link= er_load_file : /boot/modules/nvidia.ko : unsupported file type.
<= br>
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> wrote:<= br>

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.=C2=A0

Remove all drm and clear.


Try steps below.

Install this
pkg ins = nvidia-xconfig

pkg ins n= vidia-driver - you card driver select

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

After instal
n= vidia-xconfig - will create Xorg conf file

Start and load=C2=A0
dbus
kldload nvidia

Try xfce or KDE

B= est,
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 <<= a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank">marietto2008@gma= il.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 <freebs= d-virtualization@freebsd.org>, FreeBSD Mailing List <freebsd-questions@fr= eebsd.org>, freebsd-hackers <freebsd-hackers@freebsd.org>, freebsd-x11@freebsd.o= rg, fr= eebsd-drivers@freebsd.org, Ronald Klop <ronald@freebsd.org>, Jake Freeland <<= a href=3D"mailto:jake@technologyfriends.net" target=3D"_blank">jake@technol= ogyfriends.net>
=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

He= llo to everyone.

I need to conduct some tests on t= op of the FreeBSD 13.1.
So,I've installed it on one of my dis= ks. 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.=C2=A0

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

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

root@marietto:/usr/ports/graphics/drm= -kmod # make
=3D=3D=3D=3D> drm-kmod-20220907_2 not supported f= or this configuration.

ok. At this point I tried t= o install it from the packages :

root@mariett= o:/usr/ports/graphics/drm-kmod # make clean
=3D=3D=3D=3D> clea= ning 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 --e= xit-with-session startxfce4

nano /etc/rc.conf :

kdm5_enable=3D"YES"
dbus_enable= =3D"YES"
hald_enable=3D"YES"
kld_li= st=3D"nvidia nvidia-modeset"
rpcbind_enable=3D"YES= "
dtcms_enable=3D"YES"
inetd_enable=3D&q= uot;YES"

nano /boot/loader.conf

vmm_load=3D"YES"
nmdm_load=3D&qu= ot;YES"
tmpfs_load=3D"YES"
cryptodev_loa= d=3D"YES"
zfs_load=3D"YES"
kern.rac= ct.enable=3D"1"
kern.vty=3Dvt
kern.cam.scsi_d= elay=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 Id= entifier=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 Driver=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 "PC= I:1:0:0"
EndSection


=
root@marietto:/home/marietto # lspci

01:00.0 = NVIDIA GP106
01:00.1 NVIDIA GP106 High Definition Audio Controlle= r
02:00.0 NVIDIA TU102
02:00.1 NVIDIA TU102 High Defini= tion 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: $ s= tartx

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

NVIDIA dll= oader X driver 535.146.02
NVIDIA Unified Driver for all Supported= NVIDIA gpus
NVIDIA : Failed to initialize the NVIDIA kernel modu= le

How to fix it ?

--
=
Mario.


--
Mario.<= br>


--
Mario.
--0000000000001d9ecc061221f8f1--