Beckhoff ethercat 64 with bit linuxcnc, How to install.

More
6 years 3 months ago #174896 by Nico2017
Hi @btk,

are you sure you got the right header installed with your real time linux?

Otherwise try this:

This first step is required to make the ethercat+linuxcnc work, as indicated by @Hawkeye in forum.linuxcnc.org/24-hal-components/223...ver?start=670#123888 . On my case this is required to avoid the error while launching linuxcnc with ethercat:

<stdin>:3: waitpid failed /usr/bin/rtapi_app lcec
<stdin>:3: /usr/bin/rtapi_app exited without becoming ready
<stdin>:3: insmod for lcec failed, returned -1

Go to the directory where you have been cloning the git linuxcnc-ethercat. Mine is in ~/linuxcnc-ethercat.

cd ~/linuxcnc-ethercat
gedit ~/linuxcnc-ethercat/src/lcec_main.c

edit this file adding #include "rtapi_mutex.h" below #include "rtapi_app.h" then save and close gedit.


as written on page 4 steps of this thread.

For this make, try also without sudo.

Nicolas

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

More
6 years 3 months ago #174933 by bkt
@Grotius .... thanks but seems my problem was ../config.mk related no other, because linuxcnc-dev is installed and work well .... with real machine ...

@Nico2017 ...thanks but these trick not solve my problem because i can launch "make" proces only inside forlder: ***/linuxcnc-ethercat-master/src .... file user.mk -include ../config.mk .... but config.mk not exist. Exist on ***/linuxcnc-ethercat-master folder, but not sure is the same .... ... I try to copy and rename it ......

regards
bkt

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

More
6 years 3 months ago #174935 by bkt
@all .... I have an enormus doubt ... did i make a big mistake if i installed ethercat-linuxcnc and ec-debianize / etherlabmaster outside the linuxcnc-dev folder?

because now i try to run "make" on folder ~/linuxcnc-ethercat-master and I can see the error mentioned by Nico2017 .... so if never find halcompile/comp ..... probabily is because is not in the right folder. Is these right?

regards
bkt

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

More
6 years 3 months ago #175167 by chimeno
Hello @bkt
Code:
demo @ demo: ~ / linuxcnc-ethercat-master / src $ sudo make / ***** sudo o no son los mismos mensajes ***** / make [1]: Entrando en el directorio '/ home / demo / linuxcnc-ethercat-master / src' user.mk:1: ../config.mk: no existe tal archivo o directorio make [1]: *** No hay regla para hacer objetivo '../config.mk'. Detener. make [1]: Saliendo del directorio '/ home / demo / linuxcnc-ethercat-master / src' Makefile: 6: la receta para el objetivo 'todos' falló make: *** [all] Error 2

I do not know if you have solved the problem, but this simply means that you are not in the correct location, you are doing
Code:
/ linuxcnc-ethercat-master / src $ sudo make
should be
Code:
/ linuxcnc-ethercat-master / sudo make

after the first compilation you can also do
Code:
make
from the
Code:
/ src
location

Other things .... sittner have add patch for 2.8 Lcnc .... it works on 2.9 too?

if they also work in 2.9

Greeting
Chimeno

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

More
6 years 3 months ago - 6 years 3 months ago #175180 by bkt
I explain again my problem, because not well explained yet I think:
  1. linuxcnc-dev 2.9 is installed and work on real machinery.
  2. Install ec-debianize is done, I can set my mac adress etc etc
  3. Install linuxcnc-ethercat ... these is a problem, if try to launch these command: $ cd linuxcnc-ethercat/ => make .... make process not find halcomp file ...... but i use Grotius guide on page 1, reply 2 of these thread

Any one have these problem? Only depends from Linuxcnc-dev versions 2.9 instead 2.8?

regards
bkt
Last edit: 6 years 3 months ago by bkt.

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

More
6 years 3 months ago #175185 by TheRoslyak
Install linuxcnc-dev

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

Time to create page: 0.166 seconds
Powered by Kunena Forum