It's very Hard to Remember how to compile Fucking Pos Driver for Raspberry Pi. So i write all steps here for you. maybe when you want to install it the version of Rasbian changed! don't worry update your raspberry and enjoy!
- sudo apt-get update
- sudo apt-get dist-upgrade
- uname -a
I attached C files of the driver so clone them:
- git clone https://github.com/Mohammadpch/pos
- Extract Linux Driver_ttyPos V314.zip
- cd ttyPos_V314_20170802
- make
you see this Error: make[1]: *** /lib/modules/4.14.50-v7+/build: No such file or directory. Stop. Makefile:9: recipe for target 'all' failed make: *** [all] Error 2 Don't worry you read these to solve these fucking problem.
- cd /usr/src
- git clone --depth 1 https://github.com/raspberrypi/linux.git
- ln -s linux linux-4..18-v7+
- ln -s /usr/src/linux /lib/modules/4.1.18-v7+/build
Now Go to C files and Make adn install them.
- Cd ttyPos_V314_20170802
- sudo make
- sudo make install
- lsmod
- try to find ttPos :)
if it's not inserted insert it manually:
- cd /lib/modules/4.14.62-v7+/ttPos
- insmod ttyPos.ko
- and Check E2 again.
Good Luck