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+
Failed to apply overlay '0_fly-tft-v2' (kernel)
请在/boot/config.txt中添加以下内容以启用fly-tft-v2
Please add the following content in /boot/config.txt to enable fly-tft-v2
dtoverlay=fly-tft-v2
修改后重启生效
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+