Ethercat HAL driver

More
10 years 2 months ago #78673 by REEEN
Replied by REEEN on topic Ethercat HAL driver
Hello Sirop :)

I tried this steps in Debian Jessie with RT-Preempt:


1st Download ethercat master from IgH from here:
www.etherlab.org/download/ethercat/ethercat-1.5.2.tar.bz2

2nd Open a shellTerminal, and go to the folder that contains the ethercat master, and Untar the file

3rd download debian folder from sittner from here:
github.com/sittner/ec-debianize/archive/master.zip

4th Unzip the file "ec-debianize-master.zip"

5th copy debian folder (the was produced in 4th step) to /ethercat-1.5.2/ (that was produced 2nd step)

6th Now I edited the configure File as you told me

7th now in the shell terminal, use the following instructions:
cd ethercat-1.5.2
cd debian
./configure -r -> configuration succesfull !!
cd ..
sudo apt-get update
dpkg-checkbuilddeps -> everything here
(I was missing dpatch package)
dpkg-buildpackage

with buildpackage following error occurs:

Attachment not found



Sorry I could not copy past this ..

I think I need to reconfigure something else ?

Please Log in to join the conversation.

More
10 years 2 months ago #78681 by sirop
Replied by sirop on topic Ethercat HAL driver
Seems to be that there are no drivers yet for 3.18:
sourceforge.net/p/etherlabmaster/code/ci/default/tree/devices/

Please Log in to join the conversation.

More
10 years 2 months ago #78682 by REEEN
Replied by REEEN on topic Ethercat HAL driver
I need to use generic driver for my network source anyway, on igh homepage I found out that generic works with preempt. Can I somehow disable them and only enable generic ?

Please Log in to join the conversation.

More
10 years 2 months ago #78683 by sirop
Replied by sirop on topic Ethercat HAL driver
Change
Code:
CONF_EXTRA=" --enable-8139too --enable-e100 --enable-e1000 --enable-e1000e --enable-r8169"
to
Code:
CONF_EXTRA="--enable-generic"

in configure .

Please Log in to join the conversation.

More
10 years 2 months ago #78685 by REEEN
Replied by REEEN on topic Ethercat HAL driver
Thank you really much Sirop, I will try this out :)

Iam really happy that there are people willing to help so much.

Please Log in to join the conversation.

More
10 years 2 months ago #78702 by REEEN
Replied by REEEN on topic Ethercat HAL driver
Hi again,

Sirop, I just tried out what you told me I only enabled generic in configure script.

I got the same error again.

This is how the configure-stamp in rules script looks like:

configure: configure-stamp
configure-stamp: unpack-stamp patch-stamp
dh_testdir
./bootstrap
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-linux-dir=/lib/modules/3.18.13-rt10mah+/build --enable-generic
touch $@


He is somehow trying to enable the others anyway.

Do you find out why ?

is configure -r okay or should it be configure -a ?

If you need any further information just tell me.

Thank you !

Please Log in to join the conversation.

More
10 years 2 months ago #78708 by sirop
Replied by sirop on topic Ethercat HAL driver
configure -r should be ok, but I do not know what to tell you now
but advise to build the master following etherlab.org/download/ethercat/ethercat-1.5.2.pdf , Chapter 9.

Please Log in to join the conversation.

More
10 years 2 months ago #78741 by REEEN
Replied by REEEN on topic Ethercat HAL driver
Thank you Sirop,

I did the following to install etherlab:

# hg clone hg.code.sf.net/p/etherlabmaster/code ethercat-hg
# cd ethercat-hg/
# hg update stable-1.5
# ./bootstrap
# ./configure --disable-8139too --enable-generic
# make
# make modules
# sudo make install
# sudo make modules_install
# sudo /sbin/depmod
# sudo ln -s /usr/local/etherlab/bin/ethercat /usr/local/bin/
#


--disable-8139too this was the key !

But Iam not sure what to do now ?

Can you help me ?

Please Log in to join the conversation.

More
10 years 2 months ago #78745 by sirop
Replied by sirop on topic Ethercat HAL driver
1. Make a simple test with a slave you have just to know that the master works.

2. Proceed with github.com/sittner/linuxcnc-ethercat .

Please Log in to join the conversation.

More
10 years 2 months ago #78746 by REEEN
Replied by REEEN on topic Ethercat HAL driver
Didn't I miss anything ?
how can I run the master ?

Please Log in to join the conversation.

Time to create page: 0.348 seconds
Powered by Kunena Forum