Devterm printer kernelspace driver

9 Likes

Ink is running out.

Grayscale print

4 Likes

Amazing print! I have to try it one of these days when I solve the pigment deposition issue.

hitherdither library

3 Likes

Can you explain whatā€™s this?

1 Like

Itā€™s kernelspace driver which you use instead of devterm-printer.service
no CUPS yet.
See prepare (No devterm linux headers package) and install files.
see py scripts for userspace interface.

As burn parameters are exposed via ioctl it is possible to do grayscale image.

5 Likes


For me effect which I wanted is realised.

BTW: Font borrowed from 24-pin matrix - here python scripts to export/render this font in python GitHub - korneliuszo/png2escp

1 Like


Done cups driver

4 Likes

This looks very cool, to install the cups driver do I need to follow the previous prepare and install instructions or just follow the cups install?

1 Like

Yes you need to install driver.
You can copy .ko file to /lib/modules/${uname -r}/ and do depmod for auto loading module

new here, iā€™m trying to install this driver but iā€™m having problems to compile it.

appears an error if i try to compileā€¦ any tips or help please??

Itā€™s probably problem which occured for me too.
Linux kernel changed revision in armbian but devterm team didnā€™t update its linux build.
Try installing https://mirrors.dotsrc.org/armbian-apt/pool/main/l/linux-5.10.60-rockchip64/linux-headers-current-rockchip64_21.08.1_arm64.deb

1 Like

thanks a lot for the reply, solved my problem when i compile the driver :smiley: but i think iā€™m making some mistakes when i try to make it autoload or similar :frowning_face:
i tried insmod, modprobe, copy the .ko file on the modules directory, etcā€¦ but the driver didnā€™t load automatically on booting the system :cry:
how i can proceed for install the driver correctly (surely iā€™m wrong on some step when i try to install it)

another detail i found when i try the github codes itā€™s on the python scriptsā€¦ keep appearing an error like this and make impossible to use itā€¦ any help??

OSError: [Errno 25] Inappropiate ioctl for device

this error appear on mtp02_ioctl.py :: get_settings (looks like on the code the device is ā€˜iiiiā€™ or maybe this is a problem related to driver installationā€¦)

sorry for keep disturbing with these questions, and thanks a lot for any help :smiley:

Iā€™ve put .ko into
/lib/modules/5.10.60-rockchip64/mtp02/mtp02.ko
and then run depmod, and it loads at start of system.

For ioctl I think you made file called /dev/mtp02.0 which souldnā€™t be made - itā€™s udev role to create it.

(sorry was quite busy last daysā€¦)
hope all of you had an awesome christmas :smiley:

back to topic, i tried the depmod and keeps without being automatically loadedā€¦
i found this error into ā€œ/var/log/kern.logā€ file:

mtp02: loading out-of-tree module taints kernel.
mtp02: module verification failed: signature and/or required key missing - tainting kernel.

looks like exists some kind of error when the kernel load the moduleā€¦ and i tried to apply on the ā€œMakefileā€ the line ā€œCONFIG_MODULE_SIG=nā€ to bypass this check but looks like keeps having the same problemā€¦

maybe youā€™re using other type of OS image or similar? (autocompiled or something?)

related to the /dev/ file, i checked and itā€™s automatically created, for this part looks like nothing wrong but keeps throwing the same problem when try to use the python codes.

Thanks a lot for any help :smiley:

taint kernel is normal.

creating /dev/ means dtbo is applied correctly

2021-12-21 - Iā€™ve changed ioctl structure - you need have module/python code in sync.

bwprint.py should work without problems.

can you strace ./grayprint.py ?

Made aur packages for tools from repo:

Needs image 20220117 or updated u-boot.
For running dkms you need to install linux-clockworkpi-a06-headers manually.
Also you need to append /boot/extlinux/extlinux.conf
with line

FDTOVERLAYS /overlays/mtp02-a06-devterm.dtbo
3 Likes

Apologies, the forum wouldnā€™t let me post again in the manjaro-linux-support topic. But here is the print-to-file you requested. Thanks again for your help!

output.pdf

Fixed in new version of driver.

Update package from aur and modify printer in cups to reload ppd file