Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
23 Mar 2021 18:15 - 23 Mar 2021 18:15 #203415
by Grotius
Replied by Grotius on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
Stormhold,
I hope your installation mint will be okey for ethercat !
I had no luck today with ec-debianize.
Ethercat 1.5 stable run's ok and is advised to run on production machines.
ec-debianize has corrupt code for the kernel > 5.0.0
I have to think what to do. Maybe start from a clean qt program to make a shared library.
I hope your installation mint will be okey for ethercat !
I had no luck today with ec-debianize.
Ethercat 1.5 stable run's ok and is advised to run on production machines.
ec-debianize has corrupt code for the kernel > 5.0.0
I have to think what to do. Maybe start from a clean qt program to make a shared library.
Last edit: 23 Mar 2021 18:15 by Grotius.
The following user(s) said Thank You: Stormholt
Please Log in or Create an account to join the conversation.
23 Mar 2021 19:45 #203420
by db1981
Replied by db1981 on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
Hi,
I've got an new project together with Sascha for the same customer. I think that ec-debianize will get migrated this or next week.....
I've got an new project together with Sascha for the same customer. I think that ec-debianize will get migrated this or next week.....
Please Log in or Create an account to join the conversation.
23 Mar 2021 20:36 - 23 Mar 2021 20:39 #203428
by Grotius
Replied by Grotius on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
Hi db1981,
Nice work !
What do you mean with migrating? You mean compatible for newer kernels or something else ?
If you can get it compatible, it would save me lot's of work. You can download the rt iso already for debian 11.
It's on a temp folder on sourceforge. No one know's it's there, but it's downloaded several times. I'm surprised.
And you can put linuxcnc on it as .deb package. Qt is ready, Ethercat-hg stable is ready.
Let me know if you are interested?
I just got linuxcnc-ethercat compiled. Wtf. There where a lot of typo's around in the source code.
Here is my log : github.com/grotius-cnc/debian_distro_liv.../fix-ec-debianize.md
Nice work !
What do you mean with migrating? You mean compatible for newer kernels or something else ?
If you can get it compatible, it would save me lot's of work. You can download the rt iso already for debian 11.
It's on a temp folder on sourceforge. No one know's it's there, but it's downloaded several times. I'm surprised.
And you can put linuxcnc on it as .deb package. Qt is ready, Ethercat-hg stable is ready.
Let me know if you are interested?
I just got linuxcnc-ethercat compiled. Wtf. There where a lot of typo's around in the source code.
Here is my log : github.com/grotius-cnc/debian_distro_liv.../fix-ec-debianize.md
Last edit: 23 Mar 2021 20:39 by Grotius.
Please Log in or Create an account to join the conversation.
23 Mar 2021 20:45 - 23 Mar 2021 20:47 #203430
by Hakan
Replied by Hakan on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
I had a go at ec-debianize a few days ago. For Rpi4 though.
Why this complex setup to compile? It didn't work for me.
This one did work github.com/icshwi/etherlabmaster, there were just the normal "make"s I am familiar with.
And it works, have it running with two beckhoffs right now (on Rpi4).
I would appreciate if we can go away from the build method in ec-debianize.
Why this complex setup to compile? It didn't work for me.
This one did work github.com/icshwi/etherlabmaster, there were just the normal "make"s I am familiar with.
And it works, have it running with two beckhoffs right now (on Rpi4).
I would appreciate if we can go away from the build method in ec-debianize.
Last edit: 23 Mar 2021 20:47 by Hakan.
Please Log in or Create an account to join the conversation.
23 Mar 2021 22:42 #203454
by db1981
Replied by db1981 on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
I mean, to get the source from git for the etherlabmaster, instead of using mercury..
ec-debianize is only an workaround for installing the ec master.
compiling linuxcnc-ethercat should not be kernel related, if the ecmaster is proper installed...
ec-debianize is only an workaround for installing the ec master.
compiling linuxcnc-ethercat should not be kernel related, if the ecmaster is proper installed...
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
24 Mar 2021 10:21 - 24 Mar 2021 10:39 #203501
by Stormholt
Replied by Stormholt on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
Hey Grotius
So far no luck with this new kernel 4.19.1-rt3 on mint 19.3
I have went and gotten this error nowWhich i have read somewhere is a kernel related error. Previously on the other none rt kernel, the version differing specified in the error message was inverted with /dev/EtherCAT0: 30, libethercat: 36 . So i have little to no clue what is going on.
User bkt seems to have had success with the same distro and kernel here. However i followed the instructions with no luck. Will keep trying though ! Good day to all
EDIT:
Also like bkt i have a weird output from update-ethercat-config, where the kernel is wrongAlthough i followed his step to fix this, and no luck
So far no luck with this new kernel 4.19.1-rt3 on mint 19.3
I have went and gotten this error now
ioctl() version magic is differing: /dev/EtherCAT0: 36, libethercat: 30.
LCEC: requesting master 0 (index 0) failed
lcec: rtapi_app_main: Invalid argument (-22)
LCEC: requesting master 0 (index 0) failed
lcec: rtapi_app_main: Invalid argument (-22)
hal/postgui.hal:7: waitpid failed /home/vaerks/linuxcnc/bin/rtapi_app lcec
hal/postgui.hal:7: /home/vaerks/linuxcnc/bin/rtapi_app exited without becoming ready
hal/postgui.hal:7: insmod for lcec failed, returned -1
User bkt seems to have had success with the same distro and kernel here. However i followed the instructions with no luck. Will keep trying though ! Good day to all
EDIT:
Also like bkt i have a weird output from update-ethercat-config, where the kernel is wrong
$ sudo update-ethercat-config
Updating EtherCAT master confiuration
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic
done
Last edit: 24 Mar 2021 10:39 by Stormholt. Reason: Added info
Please Log in or Create an account to join the conversation.
24 Mar 2021 10:50 - 24 Mar 2021 14:43 #203503
by Grotius
Replied by Grotius on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
Hi,
I was very lucky this morning..
Got the ethercat working without ec-debianize on linuxcnc for kernels > 5.0.0
I modified the linuxcnc-ethercat source code a little bit, removed unused code, did a clean up, fixed typo's, added linkers, removed
already done patches, etc.
Also thanks to your post the link problem was solved in no time. I am not so good in editing Makefile's.
Take a look : github.com/grotius-cnc/linuxcnc-ethercat
For your error. It looks like libethercat is not compatible at the moment.
Maybe do this :
[Edit]
This must work for all systems, installs etherlab source code :
github.com/grotius-cnc/debian_distro_liv.../ethercat-master.deb
$ sudo dpkg -i ethercat-master.deb
Then this one :
Maybe then you are lucky.. It worked for me.
Also like bkt i have a weird output from update-ethercat-config, where the kernel is wrong
update-ethercat-config is a linuxcnc command.
Before linuxcnc was connected with ethercat it was already messed up i think.
What i learned is that you have to check out stable 1.5. at git. In later version's, for me it was messed up.
This 1.5 stable version is the only version that is suitable for production machines.
I have to look now. There are several patches around. Wich patch can be used safely?
@Hakan,
I would appreciate if we can go away from the build method in ec-debianize.
It's indeed a abracadabra install procedure. It could be set up very clear, step by step.
We have too look at the patches it does. And see if they brake something or not.
I was very lucky this morning..
Got the ethercat working without ec-debianize on linuxcnc for kernels > 5.0.0
I modified the linuxcnc-ethercat source code a little bit, removed unused code, did a clean up, fixed typo's, added linkers, removed
already done patches, etc.
Also thanks to your post the link problem was solved in no time. I am not so good in editing Makefile's.
Take a look : github.com/grotius-cnc/linuxcnc-ethercat
For your error. It looks like libethercat is not compatible at the moment.
Maybe do this :
[Edit]
This must work for all systems, installs etherlab source code :
github.com/grotius-cnc/debian_distro_liv.../ethercat-master.deb
$ sudo dpkg -i ethercat-master.deb
Then this one :
git clone https://github.com/grotius-cnc/linuxcnc-ethercat.git
# edit configure.mk file, set your linuxcnc halcompile filepath.
make
make install
Also like bkt i have a weird output from update-ethercat-config, where the kernel is wrong
update-ethercat-config is a linuxcnc command.
Before linuxcnc was connected with ethercat it was already messed up i think.
What i learned is that you have to check out stable 1.5. at git. In later version's, for me it was messed up.
This 1.5 stable version is the only version that is suitable for production machines.
I have to look now. There are several patches around. Wich patch can be used safely?
@Hakan,
I would appreciate if we can go away from the build method in ec-debianize.
It's indeed a abracadabra install procedure. It could be set up very clear, step by step.
We have too look at the patches it does. And see if they brake something or not.
Last edit: 24 Mar 2021 14:43 by Grotius.
Please Log in or Create an account to join the conversation.
25 Mar 2021 08:55 #203593
by Stormholt
Replied by Stormholt on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
Hey Grotius
I feel very honored by my topic making it into your README.md, glad to have helped somehow.
Unfortunately i am on a bad luck streak. So no success so far, still problems with the versions of /dev/ethercat and libethercat.
When i eventually make it i will be sure to make a post about it here.
Good day to all!
I feel very honored by my topic making it into your README.md, glad to have helped somehow.
Unfortunately i am on a bad luck streak. So no success so far, still problems with the versions of /dev/ethercat and libethercat.
When i eventually make it i will be sure to make a post about it here.
Good day to all!
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
25 Mar 2021 09:26 #203594
by Grotius
Replied by Grotius on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
Hi Stormhold,
Do you have a download link for me to your linux mint iso? Or the one you are trying to get fixed?
I will install it and try it for you.
Do you have a download link for me to your linux mint iso? Or the one you are trying to get fixed?
I will install it and try it for you.
The following user(s) said Thank You: Stormholt
Please Log in or Create an account to join the conversation.
25 Mar 2021 10:16 #203600
by Stormholt
Replied by Stormholt on topic Linuxcnc-ethercat: undefined symbol: ecrt_slave_config_sdo
Wow that would be very helpful, thank you !
I used this one here
I used this one here
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
Time to create page: 0.136 seconds