GeForce GT 1030 driver installation problem on freshly installed FreeBSD 14.3-RELEASE

Hi everybody!

I have above mentioned graphics card and just installed a fresh FreeBSD 14.3-RELEASE:

Code:
root@mf:~ # pciconf -lv | grep -B3 display
vgapci0@pci0:9:0:0:     class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1d01 subvendor=0x1043 subdevice=0x85f5
    vendor     = 'NVIDIA Corporation'
    device     = 'GP108 [GeForce GT 1030]'
    class      = display

Code:
root@mf:~ # freebsd-version
14.3-RELEASE

Boot mode is UEFI:
Code:
root@mf:~ # sysctl machdep.bootmethod
machdep.bootmethod: UEFI

I have installed latest Nvidia driver (graphics/nvidia-drm-kmod) and executed this command sysrc kld_list+=nvidia-drm and put this hw.nvidiadrm.modeset="1" in the /boot/loader.conf.

After restart I see this lines during booting.

Code:
nvidia0: <NVIDIA GeForce GT 1030> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  570.169  Thu Jun 12 19:58:07 UTC 2025
link_elf_obj: symbol linux_kfree_async undefined
Warning: memory type debugfsint leaked memory on destroy (2 allocations, 80 bytes leaked).
nvidia-modeset: Unloading
nvidia0: detached
Warning: memory type linux leaked memory on destroy (1 allocations, 64 bytes leaked).
linker_load_file: /boot/modules/nvidia-drm.ko - unsupported file type

Then I install xorg with pkg install xorg and issue the command startx.

Unfortunately, xorg doesn't start. I get this error.

Code:
xauth:  file /home/kazham/.serverauth.52641 does not exist

X.Org X Server 1.21.1.18
X Protocol Version 11, Revision 0
Current Operating System: FreeBSD mf 14.3-RELEASE FreeBSD 14.3-RELEASE releng/14.3-n271432-8c9ce319fef7 GENERIC amd64
 
Current version of pixman: 0.46.2
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Aug  4 15:08:44 2025
(==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
scfb trace: probe start
scfb trace: probe done
(EE) 
Fatal server error:
(EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

I do not know if these two issues are connected to each other.

Can someone help me to figure out how to set everything with Nvidia driver and Xorg?
Thank you for reading this.
 
Last edited by a moderator:
I've sometimes had trouble because the package and kernel weren't in sync. I always do gitup ports, then install nvidia-driver from ports. If using drm-kmod I *think* you have to have the linux service running too. Not sure about that part, hopefully someone can confirm it or correct it. This goes even if you do it sko's way, without drm, I'd do the driver from a freshly gitup-ed port. (And if using drm, then do the drm-kmod from the same freshly gitup-ed ports.)
 
Don't use pkg to install x11/nvidia-driver* and graphics/nvidia-drm-* for 14.3 for now. Install via ports instead until first full pkg rebuilds are done after 14.2 is EoL'ed (scheduled at Sep.30, 2025).

This is because nvidia-driver* and nvidia-drm-*-kmod* are NOT built by kmod repo builder for now with regard to its limitations, and main pkg repo for 14.* is built against 14.2 until 14.2 is EoL'ed. Not against 14.3.

Most recent related (almost identical with this!) is
Thread pkg-upgrade-does-not-upgrade-kernel-modules.98761.
.
 
Don't use pkg to install x11/nvidia-driver* and graphics/nvidia-drm-* for 14.3 for now. Install via ports instead until first full pkg rebuilds are done after 14.2 is EoL'ed (scheduled at Sep.30, 2025).

This is because nvidia-driver* and nvidia-drm-*-kmod* are NOT built by kmod repo builder for now with regard to its limitations, and main pkg repo for 14.* is built against 14.2 until 14.2 is EoL'ed. Not against 14.3.

Most recent related (almost identical with this!) is
Thread pkg-upgrade-does-not-upgrade-kernel-modules.98761.
.
Thank you for the info!
 
I've sometimes had trouble because the package and kernel weren't in sync. I always do gitup ports, then install nvidia-driver from ports. If using drm-kmod I *think* you have to have the linux service running too. Not sure about that part, hopefully someone can confirm it or correct it. This goes even if you do it sko's way, without drm, I'd do the driver from a freshly gitup-ed port. (And if using drm, then do the drm-kmod from the same freshly gitup-ed ports.)
This *should* be solved by the new kmod-repositories. That being said: I haven't used the official repos for several years now, so no idea how well that works.
It might be the best to just fetch the current source files via git (clear /usr/src before the next freebsd-update though, updating the sources via this mechanism will take forever and also break the local git repo) as well as the desired ports tree (usually quarterly) and build kernel-drivers locally. You can use make pkg and then install the generated package, so pkg will keep track of dependencies and updates.
 
This *should* be solved by the new kmod-repositories.
It should but it isn't (yet).
That's because the nvidia driver ports do not have clear separation between kernel module and other components (userland libraries, etc).
I believe that T-Aoki has a patch for that and hopefully we will have nvidia kernel drivers in the kmod repos soon.
 
Last edited:
I believe that T-Aoki has a patch for that and hopefully we will have nvidia kernel drivers in the kmod repos soon.
The patch is at PR 288314 if you're interested. Waiting for feedback whether this concept is acceptable or not for the kmod pkg builder.

There are some more thing to do to make it committable (thus, WPI).
  • Maybe need to add x11/nvidia-driver[-deve] as a dependency for x11/nvidia-drm-kmod[-devel] metaport to pull required userland things at the first time.
  • Need UPDATING entry, as x11/nvidia-driver[-304|-340|-390|-470|-devel] need to be deinstalled first for upgrading existing installation to avoid single time conflict on installing newly introduced x11/nvidia-kmod[-304|-340|-390|-470|-devel] as usual splitting.
Once the concept officially turns out to be acceptable, I'll proceed the remaining part and open review for it.
 
The type or model of the video card is mostly irrelevant (as long as it's supported by the version of the Nvidia driver you are using). It's not the type or model of the card that's the cause of this problem.
Thanks SirDice, I am of the belief the issue is being addressed as we speak. I'll simply be patient.
 
The supported GPUs by current ports tree (both latest and Q4 are at 580.82.07) are listed here.
And for upcoming (waiting for commit) version, 580.95.05, listed here.
For old GPUs which cannot be found above, listed here with versions.

Note that using any GPUs which are NOT supported even on 470.256.02 is STRONGLY DISCOURAGED, because drivers older than 470 series are EoL'ed upstream and once upstream tarballs become unfetchable, we would delete x11/nvidia-[kmod|driver]-3* from ports tree.

[Edit] Ugh, posted in incorrect thread. Sorry for the noise.
But it would be useful info anyway, keep this.
 
The patch is at PR 288314 if you're interested. Waiting for feedback whether this concept is acceptable or not for the kmod pkg builder.

There are some more thing to do to make it committable (thus, WPI).
  • Maybe need to add x11/nvidia-driver[-deve] as a dependency for x11/nvidia-drm-kmod[-devel] metaport to pull required userland things at the first time.
  • Need UPDATING entry, as x11/nvidia-driver[-304|-340|-390|-470|-devel] need to be deinstalled first for upgrading existing installation to avoid single time conflict on installing newly introduced x11/nvidia-kmod[-304|-340|-390|-470|-devel] as usual splitting.
Once the concept officially turns out to be acceptable, I'll proceed the remaining part and open review for it.
The patch is committed as f4e907a49258 at Oct.01, 2025.
This is before 2025Q4 is branched, so both latest and 2025Q4 has it.

But currently nvidia driver ports are not yet built on kmod builder and bapt@ is looking into why.

Fortunately, as 14.2-Release is EoL'ed at the end of last September, pkgs for 14.* are now built against 14.3 (maybe still ongoing for mainly huge ports, though). So non-kmod repo should have these (I found 15.0 has nvidia related pkgs with pkg search).
 
pkgs for 14.* are now built against 14.3 (maybe still ongoing for mainly huge ports, though)
Looks like they finished a couple of hours ago. Now they need to be copied to the mirrors, which takes a bit of time too. It should all be available really soon now.


There's a bit of fallout, haven't looked at what specifically yet, but it doesn't appear to be anything major.
 

Attachments

  • freebsd-nvidia.jpg
    freebsd-nvidia.jpg
    142.5 KB · Views: 17
Thought this might have been a problem, but these are expected to "fail".
DRM counterpart of nvidia drivers depends on upstream tarballs both from correesponding graphics/drm-*-kmod and from x11/nvidia-kmod[-devel] to build, and need both ports to run. So limitations with graphics/drm-*-kmod matters.
 
Back
Top