[Solved] Can't startx with AMD 7800XT

Hi,

i'm new to freebsd and i tried to install it on my computer. A while ago i installed it with a nvidia card. I switched cards a few weeks ago and installed the system again fresh. I read that the amd drivers are ported from linux. And i'm thinking that the card is not supported yet. Can someone please confirm this? I searched the forums and reddit, but i didn't found an answer.

1. Is the AMD 7800XT supported on freebsd 14.1?
2. If not can i change this to something like a "rolling release", i read about the quarter updates

Thanks
 
Hi. Welcome to FreeBSD.

I guess this GPU is supported in Linux kernel above 6.1. You can try building drm-kmod 6.6 branch but I am not sure if you would need a FreeBSD CURRENT system to use this drm-kmod branch. If you can't build 6.6 branch, try switching to FreeBSD CURRENT but it's not recommended for production use.

Currently, 14.1-RELEASE uses drm-515-kmod which is ported from linux 5.15 kernel. When 14.0 will reach End Of Life, drm-61-kmod will be built for 14.1-R. You can still try drm-61-kmod package on 14.1-R but I don't think your GPU is supported in 6.1.
 
Currently, 14.1-RELEASE uses drm-515-kmod which is ported from linux 5.15 kernel. When 14.0 will reach End Of Life, drm-61-kmod will be built for 14.1-R. You can still try drm-61-kmod package on 14.1-R but I don't think your GPU is supported in 6.1.
So, in a month or so drm-61-kmod may come into 14.1-RELEASE packages?
 
A while ago i installed it with a nvidia card
If that worked, then probably best to use that for the time being to get FreeBSD (accelerated) graphics with your current hardware.

Based on AMD Radeon RX 7800XT - specs your card is from Aug 25th, 2023 and its code name is "Wheat Nas" with a "navi32" GPU: in FreeBSD terms that is (very) new; also exemplified by its recent RDNA 3.0 based architecture. The ports/packages that contain the graphics drivers must be supported by the latest drm-kmod driver and must have support for the accompanying firmware for your GPU: "navi32" or "Wheat Nas".

Your 7800XT seems to be too new and not supported yet: no mention of navi31 or Wheat Nas in amd - firmware flavors or graphics/gpu-firmware-amd-kmod/pkg-plist. Below is general info regarding the current situation where it concerns modesetting supported graphics drivers for FreeBSD developed drivers based on the LinuxKPI graphics drivers (Nvidia's proprietary drivers are not based on the LinuxKPI).

FreeBSD 14.0-RELEASE has just gone EoL, as per 30 sept 2024. The most recent graphics drm kmod driver, being graphics/drm-61-kmod should come available as a package vey soon (within a week or so): watch: drm-61-kmod - packages for it to appear for 14.1-RELEASE (amd64 CPU architecture) under "FreeBSD-14-quarterly" or "FreeBSD-14-latest". For every supported major release of FreeBSD, FreeBSD maintains the ports repository; the main branch, aka "latest", is on a a rolling release schedule. Packages are either build from this branch, or are build from the quarterly branch, the quarterly branch is basically snapshotted from "main" every quarter.

Even if the package drm-61-kmod isn't available yet, you can build the package yourself from ports, that is build it yourself from source. Try building graphics/drm-kmod (a meta port), that should build the package drm-61-kmod and other necessary packages. For building from ports, see 4.5. Using the Ports Collection.
 
The package is now out, and it's working now! But first i had a kernel panic because i did a pkg install drm-61-kmod and added kld_list="amdgpu" to /etc/rc.conf. After that i rebooted in single mode and edited the rc.conf to fix my mistake. You have just to follow the handbook. I removed the package drm-61-kmod. After i installed xorg i only did a:

sudo pkg install drm-kmod
This includes the new version 6.1.

After that i edited the /etc/rc.conf

kld_list="amdgpu"

Then i rebooted and the display recognized the resolution and i could start x for the first time! ?
So i can confirm that the Saphire Pure RX 7800XT is working with xorg.
 
Back
Top