Ethercat installation from repositories - how to step by step

More
3 years 4 months ago #273907 by cncLab
Hello,
I performed all the steps described in your instructions.
Problem solved.

Great thanks to all for your efforts.

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

More
3 years 4 months ago #273908 by rodw

As Corbett  stated earlier, the debs are broken. 
 
I think the debs are now fixed after I reported a bug but I have not tested them yet.
The following user(s) said Thank You: jjdege

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

More
3 years 4 months ago #273960 by jjdege
Thanks everyone for your work.
I also had problems with the .debs, I tested the .debs updated to June 20, 2023, I followed the instructions and it works, but from the terminal if I request ethercat master, I get this message: "Inappropriate ioctl for device"
and the master is not recognized.
Thanks again !

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

More
3 years 4 months ago #273962 by rodw

Thanks everyone for your work.
I also had problems with the .debs, I tested the .debs updated to June 20, 2023, I followed the instructions and it works, but from the terminal if I request ethercat master, I get this message: "Inappropriate ioctl for device"
and the master is not recognized.
Thanks again !
Yes, I am getting the same error. I have lodged an issue with etherlabmaster. Initially they said they had a regression that was fixed in a later version and he reverted it in the packages for me yesterday. This lets EtherCAT load, but this error remains. Stay tuned....

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

More
3 years 4 months ago #274346 by leexi
Dear Fellows

I been using this installation notes from Mr. Rodw for deb  12
and I found the on Debian 12 the repository from Etherlab## for Bookworm
deb [allow-insecure=yes] download.opensuse.org/repositories/home:...rLab/Debian_Testing/ ./

is not working on fine
1 the file secure sing , but can be bypassed but
2 but on
sudo apt-get install ethercat-dkms libethercat libethercat-dev ethercat-master

has a error on the repositories by file chechsum , and I am not expert so I cannot install it

well to by pass I install the repository from deb 11
## for Bullseye
deb [allow-insecure=yes] download.opensuse.org/repositories/home:.../EtherLab/Debian_11/ ./

so on deb 12 I use the linux ethercat lib for deb 11 from etherlab

so I continue and after some linux cnc .ini, .hal, end .xml files mistakes and cia-402 repository installation missing files

finally I make my nuc pc with ECT86 step drive x 3, and RTEC1616 IOs card working

well by the moment by local lab works fine on my bridgeport cnc series 1 ,
I do not know what can happen in the future for the file mix bettween
dev12 Linux a 6.1.0.9-rt-amd64 #1 SMP PREETEM_RT debian 6.1.27-1 (2023-05-08) x86_64 with ~~/science:/EtherLab/Debian_11/
but by the moment looks ok with the screen qtdragon

Thank you

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

More
3 years 4 months ago - 3 years 4 months ago #274552 by pippin88
Thanks for the guide. Incredibly helpful.

Debian Bookworm ISO, then installed LinuxCNC 2.9 as per linuxcnc.org/docs/2.9/html/getting-start...etting-linuxcnc.html

I got the "undefined symbol: ecrt_slave_config_sdo" error after following the standard guide steps in the first post of this thread..

I tried replacing realtime.mk with the revisions in the spoiler:
Code:
include ../config.mk include Kbuild cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi .PHONY: all clean install ifeq ($(BUILDSYS),kbuild) module = $(patsubst %.o,%.ko,$(obj-m)) ifeq (,$(findstring -Wframe-larger-than=,$(EXTRA_CFLAGS))) EXTRA_CFLAGS += $(call cc-option,-Wframe-larger-than=2560) endif $(module): $(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" KBUILD_EXTRA_SYMBOLS="$(RTLIBDIR)/Module.symvers $(RTAIDIR)/modules/ethercat/Module.symvers" -C $(KERNELDIR) SUBDIRS=`pwd` CC=$(CC) V=0 modules clean:: rm -f $(obj-m) rm -f *.mod.c .*.cmd rm -f modules.order Module.symvers rm -rf .tmp_versions else module = $(patsubst %.o,%.so,$(obj-m)) EXTRA_CFLAGS := $(filter-out -Wframe-larger-than=%,$(EXTRA_CFLAGS)) $(module): $(lcec-objs) $(CC) -shared -o $@ $(lcec-objs) -Wl,-rpath,$(LIBDIR) -L$(LIBDIR) -llinuxcnchal -lethercat -lrt %.o: %.c $(CC) -o $@ $(EXTRA_CFLAGS) -Os -c $< endif all: $(module) clean:: rm -f $(module) rm -f $(lcec-objs) install: $(module) mkdir -p $(DESTDIR)$(RTLIBDIR) cp $(module) $(DESTDIR)$(RTLIBDIR)/

That did not work - giving an error about a missing ; (or : I can't remember). There is a difference between the code in the spoiler and the code in the linked thread.

The following code worked for me. From Stormholt's post in the linked thread ( forum.linuxcnc.org/9-installing-linuxcnc...ve-config-sdo#203252 )
Code:
Note the ";)" on line 5 after "fi" - this ";)" is not present in the spoiler code in the guide.
Code:
include ../config.mk include Kbuild cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) .PHONY: all clean install ifeq ($(BUILDSYS),kbuild) module = $(patsubst %.o,%.ko,$(obj-m)) ifeq (,$(findstring -Wframe-larger-than=,$(EXTRA_CFLAGS))) EXTRA_CFLAGS += $(call cc-option,-Wframe-larger-than=2560) endif $(module): $(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" KBUILD_EXTRA_SYMBOLS="$(RTLIBDIR)/Module.symvers $(RTAIDIR)/modules/ethercat/Module.symvers" -C $(KERNELDIR) SUBDIRS=`pwd` CC=$(CC) V=0 modules clean:: rm -f $(obj-m) rm -f *.mod.c .*.cmd rm -f modules.order Module.symvers rm -rf .tmp_versions else module = $(patsubst %.o,%.so,$(obj-m)) EXTRA_CFLAGS := $(filter-out -Wframe-larger-than=%,$(EXTRA_CFLAGS)) $(module): $(lcec-objs) $(CC) -shared -o $@ $(lcec-objs) -Wl,-rpath,$(LIBDIR) -L$(LIBDIR) -llinuxcnchal -lethercat -lrt %.o: %.c $(CC) -o $@ $(EXTRA_CFLAGS) -Os -c $< endif all: $(module) clean:: rm -f $(module) rm -f $(lcec-objs) install: $(module) mkdir -p $(DESTDIR)$(RTLIBDIR) cp $(module) $(DESTDIR)$(RTLIBDIR)/
Last edit: 3 years 4 months ago by pippin88.
The following user(s) said Thank You: rodw

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

Time to create page: 1.416 seconds
Powered by Kunena Forum