Open klogg opened 5 months ago
can you add support for 6.1 too?
ragnarok@ragnarok:~/src/fl2000_drm$ make
make CHECK="/usr/bin/sparse" -C /lib/modules/6.1.0-20-amd64/build M=/home/ragnarok/src/fl2000_drm modules
make[1]: se entra en el directorio '/usr/src/linux-headers-6.1.0-20-amd64'
CC [M] /home/ragnarok/src/fl2000_drm/fl2000_drv.o
In file included from /home/ragnarok/src/fl2000_drm/fl2000_drv.c:7:
/home/ragnarok/src/fl2000_drm/fl2000.h:33:10: fatal error: drm/drm_fbdev_generic.h: No existe el fichero o el directorio
33 | #include <drm/drm_fbdev_generic.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-6.1.0-20-common/scripts/Makefile.build:255: /home/ragnarok/src/fl2000_drm/fl2000_drv.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-20-common/Makefile:2035: /home/ragnarok/src/fl2000_drm] Error 2
make[1]: se sale del directorio '/usr/src/linux-headers-6.1.0-20-amd64'
make: *** [Makefile:20: modules] Error 2
ragnarok@ragnarok:~/src/fl2000_drm$ uname -a
Linux ragnarok 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux
build error on 6.5.0 debian bookworm
ragnarok@ragnarok:~/src/fl2000_drm$ make
make CHECK="/usr/bin/sparse" -C /lib/modules/6.5.0-0.deb12.4-amd64/build M=/home/ragnarok/src/fl2000_drm modules
make[1]: se entra en el directorio '/usr/src/linux-headers-6.5.0-0.deb12.4-amd64'
CC [M] /home/ragnarok/src/fl2000_drm/fl2000_drv.o
CC [M] /home/ragnarok/src/fl2000_drm/fl2000_registers.o
CC [M] /home/ragnarok/src/fl2000_drm/fl2000_interrupt.o
CC [M] /home/ragnarok/src/fl2000_drm/fl2000_streaming.o
CC [M] /home/ragnarok/src/fl2000_drm/fl2000_i2c.o
CC [M] /home/ragnarok/src/fl2000_drm/fl2000_drm.o
LD [M] /home/ragnarok/src/fl2000_drm/fl2000.o
CC [M] /home/ragnarok/src/fl2000_drm/bridge/it66121_drv.o
LD [M] /home/ragnarok/src/fl2000_drm/it66121.o
MODPOST /home/ragnarok/src/fl2000_drm/Module.symvers
ERROR: modpost: "drm_fb_dma_get_gem_obj" [/home/ragnarok/src/fl2000_drm/fl2000.ko] undefined!
ERROR: modpost: "drm_gem_dma_dumb_create" [/home/ragnarok/src/fl2000_drm/fl2000.ko] undefined!
ERROR: modpost: "drm_gem_dma_prime_import_sg_table_vmap" [/home/ragnarok/src/fl2000_drm/fl2000.ko] undefined!
make[3]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/scripts/Makefile.modpost:144: /home/ragnarok/src/fl2000_drm/Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/Makefile:2011: modpost] Error 2
make[1]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/Makefile:246: __sub-make] Error 2
make[1]: se sale del directorio '/usr/src/linux-headers-6.5.0-0.deb12.4-amd64'
make: *** [Makefile:20: modules] Error 2
Please provide (attach) your kernel config. On running system you can do it like described here
From the first glance, you have CONFIG_DRM_GEM_DMA_HELPER
disabled in your kernel
hi @klogg
seem to are disabled on debian:
cat /boot/config-6.5.0-0.deb12.4-amd64 |grep CONFIG_DRM_GEM_DMA_HELPER return empty
Sorry, this is needed for the driver... Can you rebuild the kernel for test?
Implemented with compile checks only in 0c87d7c. Need testing on the hardware