Ethercat HAL driver

More
31 Jan 2018 12:33 #105229 by automata
Replied by automata on topic Ethercat HAL driver
Hi Chimeno,
Did you get ethercat with stretch working?
I was trying with stretch-amd64 and ran into problems.
I have it working with Debian Wheezy and 3.4.9-rtai kernel. The motherboard is using rtl8139 drivers and ethercat works well with panasonic A5 and A6 series drives.
When trying to upgrade to debian stretch, I am not able to patch the network drivers and the exact error message is:
applying patch 30_add_kernel-3.5.7_drivers to ./ ...patch: **** malformed patch at line 37097: _flagwork, (i

Do you have any how to guide or list of steps you used to get it working?
Regards,
-automata

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

More
31 Jan 2018 13:32 - 31 Jan 2018 13:35 #105230 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hello Automata,
I used the stretch version with core RT-PREEMPT, you have to use the "generic" driver, try to have it help you.

regards
Chimeno
Last edit: 31 Jan 2018 13:35 by chimeno.
The following user(s) said Thank You: Nico2017

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

More
31 Jan 2018 13:41 #105231 by automata
Replied by automata on topic Ethercat HAL driver
I used the preempt-rt amd64 kernel.
automata@stretchrt64:~/ecat/ethercat-1.5.2$ uname -a
Linux stretchrt64 4.9.0-3-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux
The only difference I am seeing right of the bat is you are using the i386 kernel instead of the amd64 kernel.
Still appreciate any guidance on getting this to work.
Trying with the i386 kernel with preempt-rt patch. Will report results soon.
-automata

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

More
31 Jan 2018 13:57 #105232 by chimeno
Replied by chimeno on topic Ethercat HAL driver
hello Automata,
installed "strech RT-PREEMPT" from here?
www.linuxcnc.org/testing-stretch-rtpreempt/

Igh Ethercat Master configured "--enable-driver-generic"

regards
Chimeno

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

More
31 Jan 2018 17:03 #105237 by sirop
Replied by sirop on topic Ethercat HAL driver
So you used the generic driver all the time trying to sync your slaves?

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

More
31 Jan 2018 17:54 #105242 by automata
Replied by automata on topic Ethercat HAL driver
Hi sirop,
Have you installed the Igh ethercat master on stretch with preempt-rt ?
Are there any other successful attempts (other than chimeno) at running the Igh ethercat master with debian preempt-rt kernel?
Regards,
automata

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

More
31 Jan 2018 18:40 - 31 Jan 2018 18:41 #105243 by sirop
Replied by sirop on topic Ethercat HAL driver
Actually, I use machinekit on debian 8 with xenomai, so kernel 3.8.

The official repo sourceforge.net/p/etherlabmaster/code/ci/default/tree/devices/ has adopted drivers 8139too for up to 3.16 kernel version.

The unoffical repo sourceforge.net/u/uecasm/etherlab-patche...default/tree/#readme has some device patches for up to 4.13 kernel version.
Please report if you succeed to use these patches.
Last edit: 31 Jan 2018 18:41 by sirop. Reason: typo
The following user(s) said Thank You: chimeno

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

More
31 Jan 2018 19:06 #105245 by chimeno
Replied by chimeno on topic Ethercat HAL driver

So you used the generic driver all the time trying to sync your slaves?



hi Sirop,
If I use generic driver because I did not find for e1000e, is not it a good idea?

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

More
31 Jan 2018 19:53 #105246 by sirop
Replied by sirop on topic Ethercat HAL driver
well, generic driver always means higher latency.
The following user(s) said Thank You: chimeno, Nico2017

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

More
31 Jan 2018 19:56 #105247 by chimeno
Replied by chimeno on topic Ethercat HAL driver

well, generic driver always means higher latency.



thanks, I will install debian again on a new hard drive and I will try to install the patches and re-compile everything if it works, I will inform you of the progress, thanks
Chimeno

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

Time to create page: 0.224 seconds
Powered by Kunena Forum