Solved Radeon Caicos HD 6450 and kernel 12.2

How to make radeon card working with kernel 12.2
With kernel 12.1 i had the lines :
rc.conf:
Code:
kld_list="/boot/modules/radeonkms.ko

And :
xorg.conf
Code:
Section "Device"
    Identifier "Card0"
    Option "AccelMethod" "EXA"
    BusID "PC:1:0:0"
    Screen 0
EndSection

This worked fine. However I cannot make it work with kernel 12.2-RC3
I.e. "https://svn.freebsd.org/base/releng/12.2/"
The line /boot/modules/radeonkms.ko makes the kernel crash.
And without the line, or the resolution is very low or xorg does not start.
Please advice.

My installed drm ports are:
Code:
drm-fbsd12.0-kmod-4.16.g20200221 DRM modules for the linuxkpi-based KMS components
drm-kmod-g20190710             Metaport of DRM modules for the linuxkpi-based KMS components
libdrm-2.4.102,1               Userspace interface to kernel Direct Rendering Module services
gpu-firmware-kmod-g20200920    Firmware modules for the linuxkpi-based KMS components

Do I load a module in rc.conf ? Do i change xorg.conf ? Do i need to manually compile the drm ports ?
 
I'll try to recompile "graphics/drm-fbsd12.0-kmod" with kernel 12.2
There is also "graphics/drm-current-kmod" but I don't know if this works with kernel 12.2 ?
 
It worked when i
1.recompiled the drm,kmod ports.
2.After booting loaded the "drm2" kernel module
3.And then loaded the "radeonkms" kernel module.
 
The output of "kldstat -v | grep 'radeonkms.ko\|drm2.ko'" is ,
9 2 0xffffffff82135000 44408 drm2.ko (/boot/kernel/drm2.ko)
11 1 0xffffffff8217e000 afdd8 radeonkms.ko (/boot/kernel/radeonkms.ko)
So it are indeed it the kernel modules. (But they work, what is the most important for me)
The port modules gave me kernel crash even after recompilation. I'll do some other tests.
 
The output of "kldstat -v | grep 'radeonkms.ko\|drm2.ko'" is ,
9 2 0xffffffff82135000 44408 drm2.ko (/boot/kernel/drm2.ko)
11 1 0xffffffff8217e000 afdd8 radeonkms.ko (/boot/kernel/radeonkms.ko)
So it are indeed it are the kernel modules. (But they work, what is the most important for me)
The port modules gave me kernel crash even after recompilation. I'll do some other tests.
 
When I try to load ,
kldload /boot/modules/radeonkms.ko
I get the error,
- KLD radeonkms.ko: depends on drmn - not available or version mismatch
- linker_load_file: /boot/modules/radeonkms.ko - unsupported file type
 
kldload /boot/modules/radeonkms.ko
I get the error,
- KLD radeonkms.ko: depends on drmn - not available or version mismatch
- linker_load_file: /boot/modules/radeonkms.ko - unsupported file type
I assume the ports tree is updated and the (kernel) sources of 12.2-RC3 are also updated to latest revision. Is this assumption correct?
 
The source tree i've got via:
Code:
https://svn.freebsd.org/base/releng/12.2/
The ports tree via,
Code:
https://svn.freebsd.org/ports/branches/2020Q4/

But now i see i had forgotten to upgrade my poudriere jail. Time for a new test
 
It did not worked.
#freebsd-version -ukr
12.2-RC3
12.2-RC3
12.2-RC3
Please note there is a module
/boot/kernel/drm2.ko
But a module
/boot/modules/drm2.ko
does not exist.
 
It did not worked.
If you provide details, the situation could be better analyzed, otherwise it's guesswork. Do you still get the same error as in posting #10, "drmn - not available or version mismatch"?

After my posting #13, you changed you posting #12, adding the poudrier jails upgrade. Does the jails freebsd version now match exactly the host systems? Do the kernel sources in the jail match the hosts?
Please note there is a module
/boot/kernel/drm2.ko
But a module
/boot/modules/drm2.ko
does not exist.
I don't think that is relevant. graphics/drm-fbsd12.0-kmod port doesn't install / has the drm2.ko module, and the user mentioned in the bug report claims having his card running. That would suggest it's not needed. Also you don't need to worry about it, or explicitly set the drm module in kld_list. Loading radeonkms loads it automatically.
 
Back
Top