Is there a method to enable the kmod driver for the CoffeeLake-S GT2 [UHD Graphics 630] gpu on FreeBSD 16.0-CURRENT ?

Hello to everyone.

I wanted to work a little bit on the source code of Abhinav Chavali to improve it :


I see that he used FreeBSD 16.0-CURRENT,that I have already installed it.

Now,to work comfortably,I would like to use this graphic card :

Code:
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (rev 02)

instead of using a resolution of 640x480. Problem is... that I haven't been able to load the kmod driver for that GPU on FreeBSD 16.0-CURRENT because it does not support the driver i915 :

Code:
marietto# cd /usr/ports/graphics/drm-kmod
marietto# sudo make clean

make: "/usr/ports/Mk/bsd.port.mk" line 1192: UNAME_r (16.0-CURRENT) and OSVERSION (1403000) do not agree on major version number.
make: stopped in /usr/ports/graphics/drm-kmod

In addition Dumrich branch totally misses linuxkpi :

Code:
marietto# cd /usr/src/drm-kmod
marietto# mkdir -p linuxkpi/gplv2/include/linux
marietto# sudo touch linuxkpi/gplv2/include/linux/compiler_types.h
marietto# sudo make SYSDIR=/usr/src/sys

<built-in>:1:10: fatal error: '/usr/src/sys/compat/linuxkpi/common/include/linux/compiler_types.h' file not found    1 | #include "/usr/src/sys/compat/linuxkpi/common/include/linux/compiler_types.h"     |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated

I have also tried to copy linuxkpi from FreeBSD Main :

Code:
marietto# cd /tmp
marietto# git clone --depth 1 --branch main https://git.freebsd.org/src.git freebsd-main
marietto# sudo cp -r /tmp/freebsd-main/sys/compat/linuxkpi /usr/src/sys/compat/
marietto# ls -la /usr/src/sys/compat/linuxkpi/common/include/linux/compiler_types.h
marietto# cd /usr/src/drm-kmod
marietto# sudo make clean
marietto# sudo make SYSDIR=/usr/src/sys
marietto# sudo make install KMODDIR=/boot/modules
marietto# sudo kldload i915kms
marietto# ls -la /dev/dri/
marietto# dmesg | tail -20

the linuxkpi_seq_buf_printf symbol is not exported by Dumrich's kernel :

Code:
link_elf_obj: symbol linuxkpi_seq_buf_printf undefined

Can someone offer to me some help ?
 
ZioMario the current kernel should have that file for some weeks. If you are testing a fork of freebsd-src, try to rebase against the latest revision.
Otherwise try to open an issue on the drm-kmod github page and tag dumbbell he might be able to help.
 
Back
Top