Mellow-3D / klipper-docs

klipper documentation for FLY motherboards
klipper-docs.vercel.app
50 stars 16 forks source link

Error while compiling TFT V2 driver on Rasp. Pi running Mainsail OS #304

Open Ciresias opened 7 months ago

Ciresias commented 7 months ago

I receive an error when compiling driver for the TFT V2 display on a Raspberry Pi 4 running the latest Mainsail OS Error as follows: make -C /lib/modules/uname -r/build M=$PWD make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v8+' CC [M] /home/alex/FLY-TFT/tiny/st7796.o /home/alex/FLY-TFT/tiny/st7796.c:28:10: fatal error: drm/drm_fbdev_generic.h: No such file or directory 28 | #include <drm/drm_fbdev_generic.h> | ^~~~~~~~~ compilation terminated. make[2]: [scripts/Makefile.build:250: /home/alex/FLY-TFT/tiny/st7796.o] Error 1 make[1]: [Makefile:2012: /home/alex/FLY-TFT/tiny] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+' make: *** [Makefile:6: default] Error 2 cp: cannot stat 'st7796.ko': No such file or directory modprobe: FATAL: Module st7796 not found in directory /lib/modules/6.1.21-v8+

kluoyun commented 7 months ago

The problem has been fixed. Please pull the TFT driver again and install it. Thank you for your feedback.