Re: Radeon R2/R3/R4/R5 Graphics card fails: open /dev/dri/card0: No such file or directory

Johannes Lundberg <[email protected]>
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <CAECmPwsVbPwFiBRn3HhBPJX_=EEy5io+VQLu2GrPsfm_7EmBOg@mail.gmail.com>
On Sat, May 26, 2018 at 8:16 AM Yuri <[email protected]> wrote:

> I've managed to make it work using just one section in xorg config:
>
> Section "Device"
>          Identifier "Card0"
>          Driver "scfb"
>          BusID "pci0:0:1:0"
> EndSection
>
>
Hi

Unfortunately, scfb is software rendering so won't give you the benefits of
the GPU.

On my Kaveri APU (Sea Islands I think) I can run both amdgpu and radeonkms
drivers. To enable amdgpu on older cards I put this in /boot/loader.conf

compat.linuxkpi.cik_support=1
compat.linuxkpi.si_support=1

If your card is newer it is only supported by amdgpu so you can ignore the
above.

For amdgpu:
/etc/rc.conf:
kld_list="amdgpu"
/etc/X11/xorg.conf (in Device section)
Driver "amdgpu"

For radeonkms:
/etc/rc.conf:
kld_list="radeonkms"
/etc/X11/xorg.conf (in Device section)
Driver "radeon"

And you'll need at least FreeBSD 11.2 as mentioned before.
To make sure there are no collisions with older drm2 from base,I usually do
#mv /boot/kernel/drm.ko /root/
to make sure the correct drm (/boot/modules/drm.ko) is loaded as dependency.

Some further googling show that Stoney is Volcanic Islands so that would be
the amdgpu case above^

PS, before you put the kld_list in /etc/rc.conf make sure that the driver
loads with kldload so you don't end up in a nasty crash loop...



> No drivers from drm-next-kmod are loaded. xf86-video-ati is installed.
>
>
> Yuri
>
> _______________________________________________
> [email protected] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "[email protected]"
>
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.