Hi All,
Before I get started I just wanted to say how impressed I am with the development of the LinuxCNC Ethercat HAL Driver. Well done!
This has inspired me to retrofit a Thermwood C50 Gantry Router with an Ethercat system that includes Beckhoff I/O modules and Delta ASDA AC Servo amps.
I did a fresh install of LinuxCNC 2.7.3 and then followed Sascha's instructions on pg 16 of this thread.
I also have set up a simple Debian repos (currently without keys) which is intended to be used with the current LinuxCNC Debian Wheezy based dist. This way installation should be very easy:
create a file "/etc/apt/sources.list.d/linuxcnc-mds.list":
deb
repo.modusoft.de/linuxcnc/wheezy
./
# sudo apt-get update
# sudo apt-get install linuxcnc-ethercat
The etherlabmaster should be installed automaticaly.
Currently you will get a warning about missing key.
edit /etc/default/ethercat to match your setup
# sudo update-ethercat-config
reboot
# ethercat slaves
The output of which looks like :
Code:
daniel@linuxcnc://$ sudo ethercat slaves
[sudo] password for daniel:
0 0:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 0:1 PREOP + EL1008 8K. Dig. Eingang 24V, 3ms
2 0:2 PREOP + EL2022 2K. Dig. Ausgang 24V, 2A
daniel@linuxcnc://$
So far so good.

However when I create a basic machine configuration Linuxcnc fails with the following output from the dmesg command
Code:
daniel@linuxcnc://$ dmesg | grep eth
[ 13.837409] eth0: 0xf802e000, 08:62:66:45:95:4c, IRQ 18
[ 13.914039] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 16.921149] r8168: eth0: link up
[ 16.921240] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Which doesn't seem right because I want to use eth1 @ c4:12:F5:32:fe:d2 ... like when I run ethercat master
Code:
daniel@linuxcnc://$ sudo ethercat master
[sudo] password for daniel:
Master0
Phase: Idle
Active: no
Slaves: 3
Ethernet devices:
[color=#ff0000] Main: c4:12:f5:32:fe:d2 (attached)[/color]
and
Code:
daniel@linuxcnc://$ dmesg | grep lcec
[32892.810025] lcec: disagrees about version of symbol hal_param_float_newf
[32892.810028] lcec: Unknown symbol hal_param_float_newf (err -22)
[32892.810031] lcec: disagrees about version of symbol hal_pin_u32_newf
[32892.810033] lcec: Unknown symbol hal_pin_u32_newf (err -22)
[32892.810056] lcec: disagrees about version of symbol hal_param_bit_newf
[32892.810057] lcec: Unknown symbol hal_param_bit_newf (err -22)
[32892.810068] lcec: disagrees about version of symbol hal_param_s32_newf
[32892.810070] lcec: Unknown symbol hal_param_s32_newf (err -22)
[32892.810082] lcec: disagrees about version of symbol hal_pin_s32_newf
[32892.810083] lcec: Unknown symbol hal_pin_s32_newf (err -22)
[32892.810101] lcec: disagrees about version of symbol hal_pin_bit_newf
[32892.810102] lcec: Unknown symbol hal_pin_bit_newf (err -22)
[32892.810163] lcec: disagrees about version of symbol hal_param_u32_newf
[32892.810164] lcec: Unknown symbol hal_param_u32_newf (err -22)
[33453.100981] lcec: disagrees about version of symbol hal_param_float_newf
[33453.100985] lcec: Unknown symbol hal_param_float_newf (err -22)
[33453.100988] lcec: disagrees about version of symbol hal_pin_u32_newf
[33453.100989] lcec: Unknown symbol hal_pin_u32_newf (err -22)
[33453.101013] lcec: disagrees about version of symbol hal_param_bit_newf
[33453.101015] lcec: Unknown symbol hal_param_bit_newf (err -22)
[33453.101026] lcec: disagrees about version of symbol hal_param_s32_newf
[33453.101027] lcec: Unknown symbol hal_param_s32_newf (err -22)
[33453.101040] lcec: disagrees about version of symbol hal_pin_s32_newf
[33453.101041] lcec: Unknown symbol hal_pin_s32_newf (err -22)
[33453.101058] lcec: disagrees about version of symbol hal_pin_bit_newf
[33453.101060] lcec: Unknown symbol hal_pin_bit_newf (err -22)
[33453.101121] lcec: disagrees about version of symbol hal_param_u32_newf
[33453.101122] lcec: Unknown symbol hal_param_u32_newf (err -22)
I think this was solved (pg22) by boyzo
I saw Sascha post "fixed debien dependencies for linuxcnc 2.7 userspace version" in its git repository.
How can I install this fix on installed ethercat driver on 2.7 linuxcnc?
and cgc
Install linuxcnc-dev beforeInstall linuxcnc-dev before
Download the source with : git clone ....
change to the directory: linuxcnc-ethercat
delete old installation: make clean
compile the source with: sudo make install
Download the source with : git clone ....
change to the directory: linuxcnc-ethercat
delete old installation: make clean
compile the source with: sudo make install
Not sure how to proceed since I am using the main distribution instead of the -dev files. Any guidance would greatly be appreciated.
Also, I have attached my test configuration files.
Kind Regards
Daniel