aekhv / vfdmod

Vfdmod is a LinuxCNC user space component designed to control any VFD that supports standard MODBUS RTU protocol
GNU General Public License v3.0
18 stars 7 forks source link

Any chance for a current ARM build for Raspberry Pi? #5

Open knipknap opened 1 year ago

knipknap commented 1 year ago

I tried the armhf .deb package, but it doesn't run on a Raspberry Pi:

pi@cnc:~/vfdmod-0.3.2 $ vfdmod 
vfdmod: error while loading shared libraries: libmodbus.so.5: wrong ELF class: ELFCLASS64
pi@cnc:~/vfdmod-0.3.2 $ 

(I also had to create a symlink using sudo ln -s /usr/lib/aarch64-linux-gnu/libmodbus.so.5 /usr/lib/libmodbus.so.5, otherwise it also couldn't work.)

Distro info:

pi@cnc:~/vfdmod-0.3.2 $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:    10
Codename:   buster
pi@cnc:~/vfdmod-0.3.2 $ 
knipknap commented 1 year ago

Ohh, nevermind, libmodbus is also available in armhf architecture version. So simply

sudo apt install libmodbus5:armhf

fixed that problem. (Still not working though, but the other issues are not related.)

While there is a "libmodbus5:armhf", this one is incompatible with the LinuxCNC image for Raspberry Pi, as the LinuxCNC package for RPi is compiled for arm64. Installing "libmodbus5:armhf" in fact causes LinuxCNC to be uninstalled for that reason.

In short, without an armhf release of vfdmod, it cannot be used with the LinuxCNC RPi image.

AnthonyJWilcox commented 3 months ago

Would be very useful - just setup Linuxcnc (Bookworm) on RPi5 with Mesa 7i92 to replace Wheezy on AMD64 with parallel port interface. Used vfdmod for wheezy to H100 vfd and works great. Now can't do same for Bookworm on Rpi5 ....