Ethercat HAL driver
- mariusl
- Offline
- Platinum Member
-
Less
More
11 years 9 months ago #54486
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic Ethercat HAL driver
Is there a configure script in the directory?
Regards
Marius
www.bluearccnc.com
- sdfzz
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
11 years 9 months ago #54488
by sdfzz
Replied by sdfzz on topic Ethercat HAL driver
Thank you for your reply
There is a configure file inside debian folder. There are 10 files and 2 folders inside debian folder.
There is a configure file inside debian folder. There are 10 files and 2 folders inside debian folder.
- sdfzz
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
11 years 9 months ago #54646
by sdfzz
Replied by sdfzz on topic Ethercat HAL driver
UPDATE:
I've been testing the installation on Ubuntu 12.04 LTS with LinuxCNC 2.6 installed (3.4-9-rtai-686-pae).
I'm stuck at the step where I place "debian" folder inside "ethercat-1.5.2" folder and do configuration and packaging.
1. "debian" folder from ec-debianize-master.zip
--> at "./configure -a"
"sudo: ./configure: command not found"
2. "debian" folder from linuxcnc-add-hal-ethercat.zip
--> at dpkg-buildpackage
cd src && ./autogen.sh
/bin/sh: 1: cd: can't cd to src
make: *** [clean] Error 2
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
3. "debian" folder from linuxcnc-master.zip
--> at dpkg-buildpackage
cd src && ./autogen.sh
/bin/sh: 1: cd: can't cd to src
make: *** [clean] Error 2
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
4. debian folder in linuxcnc-master/src/hal/drivers/ethercat/master/
--> there is no configure file
it seems quiet strange for case 2 and 3 that the dpkg-buildpackage command asks for src/autogen.sh....the file is in linuxCNC directory, not in etherCAT. It sounds like dpkg-buildpackage command is trying to install LinuxCNC...
If you successed in installing EtherCAT driver for LinuxCNC, would you please let me know of your set up? Like kernel/RTAI version, LinuxCNC version and OS?
I've tried this on LinuxCNC Live CD(Debian) and Ubuntu (12.04 LTS) and both systems failed.
Any help will be appreciated
Regards,
Steve
I've been testing the installation on Ubuntu 12.04 LTS with LinuxCNC 2.6 installed (3.4-9-rtai-686-pae).
I'm stuck at the step where I place "debian" folder inside "ethercat-1.5.2" folder and do configuration and packaging.
1. "debian" folder from ec-debianize-master.zip
--> at "./configure -a"
"sudo: ./configure: command not found"
2. "debian" folder from linuxcnc-add-hal-ethercat.zip
--> at dpkg-buildpackage
cd src && ./autogen.sh
/bin/sh: 1: cd: can't cd to src
make: *** [clean] Error 2
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
3. "debian" folder from linuxcnc-master.zip
--> at dpkg-buildpackage
cd src && ./autogen.sh
/bin/sh: 1: cd: can't cd to src
make: *** [clean] Error 2
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
4. debian folder in linuxcnc-master/src/hal/drivers/ethercat/master/
--> there is no configure file
it seems quiet strange for case 2 and 3 that the dpkg-buildpackage command asks for src/autogen.sh....the file is in linuxCNC directory, not in etherCAT. It sounds like dpkg-buildpackage command is trying to install LinuxCNC...
If you successed in installing EtherCAT driver for LinuxCNC, would you please let me know of your set up? Like kernel/RTAI version, LinuxCNC version and OS?
I've tried this on LinuxCNC Live CD(Debian) and Ubuntu (12.04 LTS) and both systems failed.
Any help will be appreciated
Regards,
Steve
- roschi
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 29
11 years 9 months ago #54709
by roschi
Replied by roschi on topic Ethercat HAL driver
Hi Steve,
So if you have checked all posts and tutorials find in this thread and have no succes. Here are the principal steps:
- Install LinuxCNC from Live CD --> get running OS with RTAI
- Download, Build, Install and test the EtherCAT Master (IgH EtherLAB) --> configure EtherCAT Master (MAC, start on boot time, kernel modul ec_master and e.g. ec_e1000e are loaded)
- Get / Download the source for LinuxCNC with EtherCAT HAL Driver
- Build LinuxCNC; the build process have to know where are the Header files from EtherCAT are stored.
Perhaps see also the Paper from 'narogon' Control de movimientos mediante bus EtherCAT y LinuxCNC were also step by step is presented
Up to now you have to rebuild LinuxCNC from source
In previous discussions in this thread there was the topic about including the EtherCAT driver in official releases. But this is not possible due to license issues.
Perhaps some one on the fourm can give a recommendation on how to proced for deploy adidtional binaries (RT-Modules, Kernel Modulkes) to just use the 'lcec' module in HAL config without recompiling LinuxCNC
Regards Andreas
So if you have checked all posts and tutorials find in this thread and have no succes. Here are the principal steps:
- Install LinuxCNC from Live CD --> get running OS with RTAI
- Download, Build, Install and test the EtherCAT Master (IgH EtherLAB) --> configure EtherCAT Master (MAC, start on boot time, kernel modul ec_master and e.g. ec_e1000e are loaded)
- Get / Download the source for LinuxCNC with EtherCAT HAL Driver
- Build LinuxCNC; the build process have to know where are the Header files from EtherCAT are stored.
Perhaps see also the Paper from 'narogon' Control de movimientos mediante bus EtherCAT y LinuxCNC were also step by step is presented
Up to now you have to rebuild LinuxCNC from source
In previous discussions in this thread there was the topic about including the EtherCAT driver in official releases. But this is not possible due to license issues.
Perhaps some one on the fourm can give a recommendation on how to proced for deploy adidtional binaries (RT-Modules, Kernel Modulkes) to just use the 'lcec' module in HAL config without recompiling LinuxCNC
Regards Andreas
- sdfzz
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
11 years 9 months ago #54742
by sdfzz
Replied by sdfzz on topic Ethercat HAL driver
roschi, thank you for your reply
I tried again with LinuxCNC liveCD with ubuntu 10.04, and the installation was much more smooth
One thing was that when compiling "debian" folder from "ec-debianize-master.zip", I had to set the configure file to be "executable as program" to avoid permission denied problem.
Now I've finished installing linuxCNC
I don't have actual hardware yet, so I guess I will have to wait to test my system.
One question though...how do you configure your system? It's a big question, and there are some good materials in the tutorial file, and it seems to me that the key factor is creating hal and xml files. So, I can create a config from 'stepconf wizard' and modify it so that it works with ethercat devices?
Regards,
Steve
I tried again with LinuxCNC liveCD with ubuntu 10.04, and the installation was much more smooth
One thing was that when compiling "debian" folder from "ec-debianize-master.zip", I had to set the configure file to be "executable as program" to avoid permission denied problem.
Now I've finished installing linuxCNC
I don't have actual hardware yet, so I guess I will have to wait to test my system.
One question though...how do you configure your system? It's a big question, and there are some good materials in the tutorial file, and it seems to me that the key factor is creating hal and xml files. So, I can create a config from 'stepconf wizard' and modify it so that it works with ethercat devices?
Regards,
Steve
- sdfzz
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
11 years 9 months ago #54744
by sdfzz
Replied by sdfzz on topic Ethercat HAL driver
Sorry...one more question..
when I tried roschi's sameple hal and ini files to load linuxcnc, i got errors:
my-mill.hal:4: execv(lcec_conf): No such file or directory
my-mill.hal:4: lcec_conf exited without becoming ready
This line gives the error: loadusr -W lcec_conf /root/linuxcnc/configs/my-mill/ethercat_config_n.xml
I did place the correct xml file inside my config folder.
I saw from one of the video that you run
/etc/init.d/ethercat start
before you run linuxcnc. However, for my case, there is no ethercat file in /etc/init.d. Is there any mistakes in my installation?
Regards,
Steve
when I tried roschi's sameple hal and ini files to load linuxcnc, i got errors:
my-mill.hal:4: execv(lcec_conf): No such file or directory
my-mill.hal:4: lcec_conf exited without becoming ready
This line gives the error: loadusr -W lcec_conf /root/linuxcnc/configs/my-mill/ethercat_config_n.xml
I did place the correct xml file inside my config folder.
I saw from one of the video that you run
/etc/init.d/ethercat start
before you run linuxcnc. However, for my case, there is no ethercat file in /etc/init.d. Is there any mistakes in my installation?
Regards,
Steve
Time to create page: 0.731 seconds