The linked github page confirmed what I figured out too: remove everything but the name as a parameter. That is fine. However, there are more changes and at least gpio-related are critical: driver can't assign/release GPIO ports anymore. (gpio_request and gpio_unexport).
The target header folder does not have the gpio.h file which is probably the root-cause. Running "make" reports the following errors:
make[3]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /opt/sensordriver/sensordriver.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile
/opt/sensordriver] Error 2
make[1]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:246: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.20+rpt-rpi-v7l'
make: *** [Makefile:7: all] Error 2
I tried to solve those but the list of missing files gets longer.
The target header folder does not have the gpio.h file which is probably the root-cause. Running "make" reports the following errors:
make[3]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/scripts/Makefile.build:248: /opt/sensordriver/sensordriver.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile
make[1]: *** [/usr/src/linux-headers-6.6.20+rpt-common-rpi/Makefile:246: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.20+rpt-rpi-v7l'
make: *** [Makefile:7: all] Error 2
I tried to solve those but the list of missing files gets longer.
Statistics: Posted by gotaf80307 — Sun Mar 17, 2024 5:40 pm