:silly: SUCCESS :blush:
so in the end it was just a problem of permissions and folders .... this is what I did to solve .... attention I only use absolute paths to not confuse anyone:
for first,
I use ubuntu 18.04 and linux 4.18.9-rt9 64bit
... for install kernel and pach you can use google and/or search button here on forum .... there are many howto about ... when your rt-preempt SO is ready you can go here:
Code:
https://github.com/LinuxCNC/linuxcnc/tree/2.8 --> download .zip file
https://github.com/sittner/linuxcnc-ethercat --> download .zip file
https://github.com/sittner/ec-debianize --> download .zip file
after these go to:
Code:
/home/yourUser/Downloads/ec-debianize-master.zip ---> right click ---> extract here ----> right click ---> rename ---> "ec-debianize"
/home/yourUser/Downloads/linuxcnc-ethercat-master.zip ---> right click ---> extract here ----> right click ---> rename ---> "linuxcnc-ethercat"
/home/yourUser/Downloads/linuxcnc-2.8.zip ---> right click ---> extract here ----> right click ---> rename ---> "linuxcnc-dev"
move /home/yourUser/Downloads/ec-debianize and /home/yourUser/Downloads/linuxcnc-ethercat folder inside /home/yourUser/Downloads/linuxcnc-dev ... after these move /home/yourUser/Downloads/linuxcnc-dev on your home dir (/home/yourUser/linuxcnc-dev)
in these ways you obtain:
Code:
/home/yourUser/linuxcnc-dev
/home/yourUser/linuxcnc-dev/ec-debianize
/home/yourUser/linuxcnc-dev/linuxcnc-ethercat
Now you can install linuxcnc rip install in the usual manner using teminal emulator (or other one):
Code:
cd /home/yourUser/linuxcnc-dev/debian
./configure uspace noauto
cd ..
dpkg-checkbuilddeps (install required packages showed after command dpkg-checkbuilddeps then comeback)
cd src
./autogen.sh
./configure --with-realtime=uspace
make -j4 (if you have 4 core cpu)
sudo make setuid
cd ..
. ./scripts/rip-environment
now rip-install is complete NO EXIT FORM TERMINAL and linuxcnc folder!!
We can use Gitorius howto for run ec-debianize:
Code:
(in a new one terminal)sudo apt-get install quilt (dependency for ec-debianize) + sudo apt-get install mercurial
cd /home/yourUser/ ---> right click "create new empty document" ----> using gedit write inside it these:
[extensions]
mq = qpush
mq =
now "save as" ---> name these new documents '.hgrc' ----> save again and close
(now we can close the new terminal and return to old one with . ./scripts/rip-environment instance)
cd /home/yourUser/linuxcnc-dev/ec-debianize =>sudo ./get_source.sh
cd /home/yourUser/linuxcnc-dev/ec-debianize/etherlabmaster/ => sudo dpkg-buildpackage (dpkg-checkbuilddeps optional)
(the output error "failed to sign .dsc file is no issue)
cd ..
cd /home/yourUser/linuxcnc-dev/ec-debianize/ => sudo dpkg -i etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
cd /home/yourUser/linuxcnc-dev/ec-debianize/ => sudo dpkg -i etherlabmaster-dev_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
now we can set ethercat master device and correct a file inside linuxcnc-ethercat
... open new terminal and CLOSE THE OLD ONE
NOTE we work with
. ./scripts/rip-environment istance open on linuxcnc-dev folder all the time.
Code:
Find your mac adres : $ ip link show (output = link/ether ....) and copy it on clipboard
sudo gedit /etc/default/ethercat ---> find and type in row MASTER0_DEVICE="lo:ve:me:te:nd:er" (your mac adres my dear ... original joke of gitorius)
---> find and type in row DEVICE_MODULES="generic"
---> save and exit from gedit
sudo update-ethercat-config
cd gedit /home/yourUser/linuxcnc-dev/linuxcnc-ethercat/src/lcec_main.c (add here [#include "rtapi_mutex.h"] below [#include "rtapi_app.h"])
----> save and close gedit
----> cd
----> reboot
when your pc become ready ... open a new terminal windows:
Now we can compile linuxcnc-ethercat:
Code:
cd /home/yourUser/linuxcnc-dev ---> . ./scripts/rip-environment
cd /home/yourUser/linuxcnc-dev/linuxcnc-ethercat ----> make
After these we have installd all linuxcnc-ethercat glue .... for sure we need to copy lcec_main.so and conf ... but for these origina how to of Gitorius is a real valid help. I rewrite it here out of comedy:
4. To start linuxcnc with ethercat, start linuxcnc with simple axis gui.
copy lcec_conf ==> ../linuxcnc-ethercat/src/lcec_conf ==> to your linuxcnc sim map (copy it where your ini files is)
copy lcec_so ==> ../linuxcnc-ethercat/src/lcec.so ==> to your home/.../linuxcnc/rtlib/ (this is only for linuxcnc_dev users)
copy and edit the ethercat_config.xml from the linuxcnc-ethercat example directory and copy it where your ini file is.
In your ini file add "HALFILE = postgui.hal"
make a postgui.hal file include :
loadusr -W lcec_conf ethercat-conf.xml
#loadrt lcec
#addf lcec.read-all servo-thread
#addf lcec.write-all servo-thread
First check if lcec_conf will load, open your halmeter.
When you see the Lcec section, uncheck the # sign's in the postgui.hal file.
today my EK1100 has arrived ... so I can do live tests. If there are surprises I will write it here .... but I think I will find only the usual skirmishes.
After this step I will try to do the same with linuxcnc-2.9 (master) let's see if it works ... if it goes I'll bring it back here.
regards
bkt