#linuxcnc-devel Logs

Dec 09 2018

#linuxcnc-devel Calendar

11:35 AM crazyben: Hi
11:38 AM crazyben is now known as crazyben_
11:38 AM crazyben_ is now known as crazyben
11:41 AM crazyben: ... someone out there?
11:42 AM hazzy-m: crazyben: hello
11:44 AM crazyben: hazzy-m: hello
11:45 AM crazyben: someone in here using ethercat on linuxcnc?
11:45 AM crazyben: looks like I am to stupid get it running using this https://forum.linuxcnc.org/27-driver-boards/35591-beckhoff-ethercat-64-with-bit-linuxcnc-help-needed
11:49 AM hazzy-m: crazyben: it's pretty quiet here today, but I'm sure somebody in here or #linuxcnc is using ethercat
11:50 AM crazyben: To be honest, I am totally lost at this point with this! Since almost 2 weeks I am trying to get this thing up and running.
12:08 PM crazyben: May I ask a realy stupid question? I migrated my machine config from my old installation to a new one. Each time I am starting linuxcnc 2.8pre using my migrated config (coming from 2.8pre), I am asked to confirm automatic update to my ini-file. When confirming the prompt with "YES", everything stuck
12:09 PM rmu: crazyben: i think you should post your .ini files somewhere, and if possible the git hashes of your initial 2.8 and current 2.8 versions
12:09 PM hazzy-m: hmm, that should not be happening
12:11 PM hazzy-m: I think the INI version is now up to 1.1 since multispindle was merged
12:11 PM crazyben: :-) sounds like a plan - where do I get the hash codes?
12:12 PM hazzy-m: if the config works then all you should need to do is change [EMC]VERSION=1.1 to stop the updater from running on the INI file
12:12 PM crazyben: ..just a sec
12:13 PM crazyben: hazzy-m: This solved the "issue"
12:13 PM crazyben: hazzy-m: Thank you!! :-) where do I get such informations from?
12:16 PM hazzy-m: crazyben: Excellent!
12:16 PM crazyben: Whats the current "status" of "/etc/init.d/realtime" has this thing to run as a service when starting os? e.g. systemctl status realtime
12:16 PM hazzy-m: I just know it from experiance, but it should be in the docs, somewhere ...
12:22 PM rmu: crazyben: read the source
12:25 PM rmu: crazyben: git rev-parse HEAD gives the current version. i don't know how to get your previous version
12:27 PM hazzy-m: there is also the linuxcnc_info script in linuxcnc/scripts which prints all kinds of useful info
12:27 PM crazyben: rmu: I will post the ini-file and the output to the forum
12:28 PM rmu: there seems to be a bug in the updater, it should not hang
12:30 PM crazyben: which sections of the script output may be of interest?
12:31 PM crazyben: linuxcnc_var all: LINUXCNCVERSION: 2.8.0~pre1 LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples REALTIME: /etc/init.d/realtime RTS: uspace HALLIB_DIR: /usr/share/linuxcnc/hallib
12:33 PM hazzy-m: unfortunately linuxcnc_info does not give the git hash, you can run get-version-from-git from the same directory for that
12:33 PM hazzy-m: I would upload the whole output as a text file
12:33 PM crazyben: the git hash here:
12:33 PM crazyben: 6dcf1738a2e6da9caa3cdc4dfa21de26ec930c34
12:34 PM crazyben: "/git/linuxcnc-dev/scripts# ./get-version-from-git v2.8.0-pre1-4067-g6dcf1738a"
12:35 PM hazzy-m: ok, so you are on the latest master
12:35 PM crazyben: yes - setup is only a couple hours old
12:35 PM hazzy-m: I would say there is definetly a bug in the INI update script then
12:37 PM crazyben: Do I have the chance to add additional folders to my ini-file to get linuxcnc to check for additional sources?
12:37 PM crazyben: Debug file information: Note: Using POSIX realtime lcec: dlopen: /usr/lib/linuxcnc/modules/lcec.so: undefined symbol: rtapi_mutex_get ./ethercat_io.hal:5: waitpid failed /usr/bin/rtapi_app lcec ./ethercat_io.hal:5: /usr/bin/rtapi_app exited without becoming ready ./ethercat_io.hal:5: insmod for lcec
01:35 PM rmu: crazyben: how did you install? i don't know anything about ethercat, but this "undefined symbol" error looks strange. where does lcec.so come from?
01:42 PM rmu: crazyben: did you build lcec.so yourself?
01:42 PM crazyben: yes
01:44 PM rmu: AFAICT rtapi_mutex_get is an inline function and lcec.so should not have an undefined reference to it. does building lcec.so need linuxcnc sources?
01:46 PM crazyben: rmu: I think so. https://github.com/sittner/ec-debianize
01:55 PM rmu: so you git-cloned linuxcnc, built and installed it, and then used ex-debianize?
02:01 PM crazyben: https://forum.linuxcnc.org/27-driver-boards/35591-beckhoff-ethercat-64-with-bit-linuxcnc-help-needed
02:05 PM rmu: crazyben: do/did you have any other linuxcnc or machinekit versions installed on that system
02:06 PM crazyben: no - I used this www.linuxcnc.org/testing-stretch-rtpreem...uspace-amd64-r13.iso
02:07 PM crazyben: but there is a 2.7 linuxcnc included
02:13 PM rmu: if I were you i would examine how this lcec.so is built, figure out if correct header files are used and go from there
02:14 PM crazyben: could it be related to my build call "debian/configure uspace ; debuild -uc -us" ?
02:15 PM rmu: of course it could
02:16 PM crazyben: http://linuxcnc.org/lucid/docs/devel/html/code/building-linuxcnc.html
02:16 PM crazyben: my kernel is: 4.9.0-8-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
02:22 PM rmu: crazyben: in linuxcnc-ethercat file src/lcec_main.c, can you add #include "rtapi_mutex.h" after #include "rtapi_app.h" and rebuild lcec?
02:22 PM crazyben: yes - give me a couple minutes please
02:24 PM rmu: np