I am working with Raspberry Pi 3 and i am trying to interface a R305 fingerprint sensor to it. For this purpose, I am using CP2102 usb to ttl converter for serial communication. It is being detected by the port /dev/ttyUSB0 as i have checked it using the cmd "dmesg | grep tty". Also, i have downloaded the driver for it through this "link https://www.silabs.com/documents/login/software/Linux_3.x.x_4.x.x_VCP_Driver_Source.zip" using wget command on raspberry pi cmdline. But when i run the "make" cmd to install the driver it doesn't work. It shows the following message every time i run the "make" command to install the driver.
Please help ASAP!
Is ttyUSB0 available in your device drivers in **dev** folder??.....
If it is you don't need to install it as there could be a configuration error.. Go to dev folder using terminal and type " ls -a " and search for ttyUSB0 If it is available then device driver is installed.... If it is not available what other drivers are available like ttyAMA0 or ttyS0etc?
The issue here is not with the driver code, but with the 'build' executable which is not present under your /lib/modules/4.9.80-v7+/ directory.
Use 'ls -al /lib/modules/4.9.80-v7+/' to cross-check this.
This means that you need to install the resources to allow compiling code on your Pi.
I've been dealing with the same 2 days ago, and you should probably get it working by installing dkms (a bit of an overkill, but it will install the necessary compilation tools) and the raspberry Pi headers.
This is done using:
sudo apt-get install dkms sudo apt-get install raspberrypi-kernel-headers
NB: You may need debhelper as well, but this was probably related to my use of dkms:
sudo apt-get install debhelper
At least, this should allow you to get rid of the message about the missing /lib/modules/4.9.80-v7+/build