After installing and upgrading a bunch of packages on my A06 in order to get Blender working, I found that my thermal printer no longer works. I found that the devterm-printer service is failing to start. My dmesg log contains the following:
/etc/systemd/system/devterm-printer.service:3: Failed to add dependency on devterm-socat, ignoring: Invalid argument
The devterm-socat service (which creates a virtual serial port for the printer) does appear to be working as normal. My devterm-printer.err.log contains this:
Oops: Unable to determine board revision from /proc/device-tree/system/linux,revision
or from /proc/cpuinfo
→ No “Hardware” line
→ You’d best google the error to find out why.
I’ve looked into this and it seems it’s an error with wiringPi. After hours of looking through various logs, recompiling and reinstalling the devterm-printer driver, the cups driver, and wiringPi, from the ClockworkPi github, I have kind of hit a brick wall. I probably need to look deeper and learn more about wiringPi if I want to solve this, but if anybody has any wisdom to share about why this might be happening–or maybe how to find all the dependencies of the thermal printer–I would appreciate it!
Thanks for the guidance! It gives the same error as the log:
Oops: Unable to determine board revision from /proc/device-tree/system/linux,revision
or from /proc/cpuinfo
→ No “Hardware” line
→ You’d best google the error to find out why.
Oops! No, I compiled it with ./build from the ClockworkPi github. I removed it and installed it from apt now per your instructions. Now the driver gives me this error:
/usr/local/bin/devterm_thermal_printer.elf: error while loading shared libraries: libwiringPi.so.2: cannot open shared object file: No such file or directory
Getting closer! I’ll keep looking, and I’ll appreciate your help if you have any other tips!
OK, I made a link to libwiringPi.so.2.50 and restarted devterm-printer, then did echo -en “\x12\x54” > /tmp/DEVTERM_PRINTER_IN. It worked! Test print successful.
However, I still can’t print from the shell (from the “Print” command in Firefox, for example.) In the Printers menu, any print jobs become “Held” and it shows an error message that the printer “may not be connected.”
I don’t know where to begin with this one–I guess this is an issue with the cups driver?–so any help would be much appreciated. And thanks so much for your help so far, @guu !