Can't install etherlabmaster deb file

More
11 Feb 2022 02:25 - 11 Feb 2022 02:26 #234547 by rodw
got it!
Edit ~/.profile and add
export LD_LIBRARY_PATH=usr/local/lib

This will let the linker find the libethercat.so.1 library at run time

Thanks for the help guys.

Now I just have to get ethercat service to auto start. Any ideas?
I found this debian link so I think I'll give it a try
wiki.debian.org/systemd/Services
Last edit: 11 Feb 2022 02:26 by rodw.

Please Log in or Create an account to join the conversation.

More
11 Feb 2022 13:37 - 11 Feb 2022 13:40 #234571 by Grotius
One of my favorite script files, debootstrap chrooting and more:
github.com/grotius-cnc/Linux-Pro/release...d/1.0.0/this-iso.txt

line 47 tells you how to auto start the ethercat bus. Just edit the "enp0s25" to your value :
# Edit crontab -e
# Add lines :
@reboot echo MASTER0_DEVICE="$(cat /sys/class/net/enp0s25/address)" DEVICE_MODULES=generic > /etc/sysconfig/ethercat
# Slow down the process so above line is done before the restart.
@reboot /opt/ethercat/script/init.d/ethercat start
@reboot /opt/ethercat/script/init.d/ethercat stop
@reboot /opt/ethercat/script/init.d/ethercat restart


 
Last edit: 11 Feb 2022 13:40 by Grotius.
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
11 Feb 2022 15:42 #234577 by Grotius
lcec: dlopen: libethercat.so.1: cannot open shared object file: No such file or directory

Then i would suggest to do a : $ sudo ldconfig ~/paht_to_your_lib.

But I am having trouble opening my config. I suspect files may not be in the right spot yet because of the shortcuts we took.
I had to manually copy some files to the /lib/linuxcnc/modules folder but still they do not open. Any ideas here?


Here you see the whole lcnc-ethercat implementation is just a rt-component. A clean solution.
The lcec.so & lcec_conf & ethercat-conf.xml is copied to the ~/rtlib/
 
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
11 Feb 2022 15:46 - 11 Feb 2022 15:49 #234579 by Grotius
And if you look at the make file. You see it's compiled by gcc instead of halcompile.
You can easely add your own ethercat-drivers to the list. I think hal-core is rpi compatible thanks to a contribution.

You can just rip the ethercat hal-core code and put it in the lcnc environment.
Last edit: 11 Feb 2022 15:49 by Grotius.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.114 seconds
Powered by Kunena Forum