- Posts: 59
- Thank you received: 0
Beckhoff ethercat 64 with bit linuxcnc, How to install.
I use a special EtherCAT driver for RTL8139 cards on many systems, always without problems. These cards are today almost free and the driver is OK. So I think it's a good choice.
It is definitely a good idea to use special native drivers and not "generic", if possible. This will result in less system load and higher reliability.
So when configuring ./configure, turn on --enable-8139too.
After compiling and installing check, if in the directory /lib/modules/<version_of_your_kernel>/ethercat/devices exists the file ec_8139too.ko.
And everything has to work.
Please Log in to join the conversation.
then I update ethercat config it can not to change driver and tells me
and I do not know why it not want to allow natural driver... defenetly there are missing thats files which you said before... in that folder
how will restart configuring subroutine?
Do you have any experiences with it please?
Please Log in to join the conversation.
/lib/modules/<version_of_your_kernel>/ethercat/devices
At the same time, it must be listed in the list of usable modules:
/lib/modules/<version_of_your_kernel>/modules.dep
Where it will be written by the command "depmod". But the Makefile installer should arrange this.
To create this ec_8139too.ko driver there, you need to enter it in the "configure" command:
./configure --enable-8139too
And then you must compile and install everything:
make all modules
make modules_install install
depmod
If the ec_8139too.ko driver is not in the appropriate directory, "DEVICE_MODULES=8139too" cannot be configured.
If you asked something else and I didn't understand, I'm sorry.
Please Log in to join the conversation.
I expierenced the same problem as Foxington a time ago. But never solved this and simply used the generic type.
Please Log in to join the conversation.
Please Log in to join the conversation.
can you explain, following which way you installed ethercat ?
ec-debianize or compiling the igh master by your own?
the realtek drivers needs to be build at compile time....
Please Log in to join the conversation.
- ./configure --enable-8139too
- make all modules
- make modules_install install
- depmod
Please Log in to join the conversation.
I just downloaded the hybrid ISO file like " tommylight " told me in this answer
with preinstalled ethecat from this link as a most fastest way.Code:https://forum.linuxcnc.org/27-driver-boards/35591-beckhoff-ethercat-64-with-bit-linuxcnc-how-to-install?start=200#211106Code:https://sourceforge.net/projects/linux-debian-bullseye-11-rtos/
And because When I want to installed ethercat myself by commands it never - never works as it was described and I did not know why...
I followed this guides :but it is my fail I think therefore...
Code:https://github.com/grotius-cnc/install_script Code:https://forum.linuxcnc.org/27-driver-boards/35591-beckhoff-ethercat-64-with-bit-linuxcnc-how-to-install?start=110#184991 Code:https://forum.linuxcnc.org/27-driver-boards/35591-beckhoff-ethercat-64-with-bit-linuxcnc-how-to-install?start=30#135811
Every time I want to started with installation I began with
1. blank 2.8.0 buster preemt-rt
2. kept root pasword empty during installation
3. update and upgarade to actual releases
4. for example I used this install guide5.Code:https://github.com/grotius-cnc/install_script6. ethercat works but I never found this fileCode:./setup.sh reboot ./setup1.sh7. and when I created files around like "ethercat.hal" where I want to call "lcec_conf" I can not find the folder where "lcec_conf" is located yet...Code:/home/user/linuxcnc-ethercat/src/lcec_conf
rollfree
no I have never used this commands before. I am not most advanced user of Linux + ethercat I just learning it and I want to learn it soo much becouse it is a future...
understanding right, I have disbled that driver and therefore It want not to use it.
I need just add driver for 8139too network card "ec_8139too" to some list of enabled drivers which it loads on for using?
Please Log in to join the conversation.
Every time I want to started with installation I began with
ok, we will start after point 5:1. blank 2.8.0 buster preemt-rt
2. kept root pasword empty during installation
3. update and upgarade to actual releases
4. for example I used this install guide github.com/grotius-cnc/install_script5../setup.sh reboot ./setup1.sh6. ethercat works but I never found this file
/home/user/linuxcnc-ethercat/src/lcec_conf
-cd ec-debianize/etherlabmaster/debian -open the file rules with an editor, edit line 8 "--disable-8139too" to "--enable-8139too"
-open the file etherlabmaster.dkms, add the following in front of the two "Post_xxxx" lines at file end.
BUILT_MODULE_NAME[2]="devices/8139too"
DEST_MODULE_NAME[2]="ec_8139too"
DEST_MODULE_LOCATION[2]="/updates/dkms"
-go to ec-debianize/etherlabmaster ->type "dpkg-buildpackage" , i hope this will run without errors...
-cd... to ec-debianize there should be three deb packages.
-install the three packages with "sudo dpkg -i"
sudo dpkg -i etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
sudo dpkg -i etherlabmaster-dbgsym_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
sudo dpkg -i etherlabmaster-dev_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
i am not shure if the file names will be exact the same ....
-change the driver in etc/default/ethercat to 8139too
-sudo update-ethercat-config
-reboot
-go to your linuxcnc folder , "cd scripts" , ". ./rip-environment"
-go to your linuxcnc-ethercat folder , "make clean", "make install"
Maybe it will work now, if there are error messages tell me.
Please Log in to join the conversation.
I did next steps after point 5. -
5.1 in the file " /home/cnc/install_script/ec-debianize/etherlabmaster/debian/rules "
I changed 8 row to this
"CONFFLAGS += --enable-kernel --enable-generic --enable-ccat --enable-8139too --disable-e100 --disable-e1000 --enable-e1000e --disable-r8169 --enable-hrtimer --enable-rtmutex"
5.2 the file " etherlabmaster.dkms " will looks like-
"# DKMS configuration for the etherlabmaster modules
# The version is replaced at build time by dh_dkms invoked in debian/rules.
PACKAGE_NAME="etherlabmaster"
PACKAGE_VERSION="#MODULE_VERSION#"
BUILT_MODULE_NAME[0]="master/ec_master"
DEST_MODULE_NAME[0]="ec_master"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL=yes
MAKE[0]="make -C \${kernel_source_dir} M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build modules"
CLEAN="make -C \${kernel_source_dir} M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build clean"
BUILT_MODULE_NAME[1]="devices/ccat/ec_ccat"
DEST_MODULE_NAME[1]="ec_ccat"
DEST_MODULE_LOCATION[1]="/updates/dkms"
BUILT_MODULE_NAME[2]="devices/ec_generic"
DEST_MODULE_NAME[2]="ec_generic"
DEST_MODULE_LOCATION[2]="/updates/dkms"
BUILT_MODULE_NAME[3]="examples/mini/ec_mini"
DEST_MODULE_NAME[3]="ec_mini"
DEST_MODULE_LOCATION[3]="/updates/dkms"
BUILT_MODULE_NAME[4]="devices/8139too"
DEST_MODULE_NAME[4]="ec_8139too"
DEST_MODULE_LOCATION[4]="/updates/dkms"
BUILT_MODULE_NAME[5]="devices/e1000e"
DEST_MODULE_NAME[5]="ec_e1000e"
DEST_MODULE_LOCATION[5]="/updates/dkms"
POST_BUILD="postbld \${kernel_source_dir} $dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build"
POST_REMOVE="postrm \${kernel_source_dir} $dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build"
"
5.3 went in folder
"home/cnc/install_script/ec-debianize/etherlabmaster"
and did
"dpkg-buildpackage"
and after his answer
"
root@debian:/home/cnc/install_script/ec-debianize/etherlabmaster# dpkg-buildpackage
dpkg-buildpackage: info: source package etherlabmaster
dpkg-buildpackage: info: source version 1.5.2+20190904hg33b922p8ea394-1
dpkg-buildpackage: info: source distribution lucid
dpkg-buildpackage: info: source changed by Sascha Ittner <sascha.ittner@modusoft.de>
dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build .
debian/rules clean
dh clean --with autoreconf,dkms
dh_auto_clean
make -j1 distclean
make[1]: Entering directory '/home/cnc/install_script/ec-debianize/etherlabmaster'
cd . && /bin/bash /home/user/Desktop/Skynet/ec-debianize/etherlabmaster/autoconf/missing automake-1.16 --gnu Makefile
/bin/bash: /home/user/Desktop/Skynet/ec-debianize/etherlabmaster/autoconf/missing: No such file or directory
make[1]: *** [Makefile:454: Makefile.in] Error 127
make[1]: Leaving directory '/home/cnc/install_script/ec-debianize/etherlabmaster'
dh_auto_clean: make -j1 distclean returned exit code 2
make: *** [debian/rules:15: clean] Error 2
dpkg-buildpackage: error: debian/rules clean subprocess returned exit status 2"
5.4 in the folder
"/home/cnc/install_script/ec-debianize"
it had
"
root@debian:/home/cnc/install_script/ec-debianize# ls
etherlabmaster
etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.buildinfo
etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.changes
etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
etherlabmaster_1.5.2+20190904hg33b922p8ea394-1.debian.tar.xz
etherlabmaster_1.5.2+20190904hg33b922p8ea394-1.dsc
etherlabmaster_1.5.2+20190904hg33b922p8ea394.orig.tar.gz
etherlabmaster-dbgsym_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
etherlabmaster-dev_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
get_source.sh
README.debianize"
5.5 name are same if I am not wrong and I did ...
"
sudo dpkg -i etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
log
root@debian:/home/cnc/install_script/ec-debianize# sudo dpkg -i etherlabmaster-dbgsym_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
(Reading database ... 202905 files and directories currently installed.)
Preparing to unpack etherlabmaster-dbgsym_1.5.2+20190904hg33b922p8ea394-1_amd64.deb ...
Unpacking etherlabmaster-dbgsym (1.5.2+20190904hg33b922p8ea394-1) over (1.5.2+20190904hg33b922p8ea394-1) ...
Setting up etherlabmaster-dbgsym (1.5.2+20190904hg33b922p8ea394-1) ...
root@debian:/home/cnc/install_script/ec-debianize# sudo dpkg -i etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
(Reading database ... 202905 files and directories currently installed.)
Preparing to unpack etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.deb ...
Uninstall Beginning
Module: etherlabmaster
Version: 1.5.2+20190904hg33b922p8ea394
Kernel: 4.19.0-17-rt-amd64 (x86_64)
Status: Before uninstall, this module version was ACTIVE on this kernel.
ec_master.ko:
- Uninstallation
- Deleting from: /lib/modules/4.19.0-17-rt-amd64/updates/dkms/
rmdir: failed to remove 'updates/dkms': Directory not empty
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
ec_ccat.ko:
- Uninstallation
- Deleting from: /lib/modules/4.19.0-17-rt-amd64/updates/dkms/
rmdir: failed to remove 'updates/dkms': Directory not empty
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
ec_generic.ko:
- Uninstallation
- Deleting from: /lib/modules/4.19.0-17-rt-amd64/updates/dkms/
rmdir: failed to remove 'updates/dkms': Directory not empty
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
ec_mini.ko:
- Uninstallation
- Deleting from: /lib/modules/4.19.0-17-rt-amd64/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
Running the post_remove script:
depmod...
DKMS: uninstall completed.
Deleting module version: 1.5.2+20190904hg33b922p8ea394
completely from the DKMS tree.
Done.
Unpacking etherlabmaster (1.5.2+20190904hg33b922p8ea394-1) over (1.5.2+20190904hg33b922p8ea394-1) ...
Setting up etherlabmaster (1.5.2+20190904hg33b922p8ea394-1) ...
Loading new etherlabmaster-1.5.2+20190904hg33b922p8ea394 DKMS files...
Building for 4.19.0-17-rt-amd64
Building initial module for 4.19.0-17-rt-amd64
Done.
ec_master.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.19.0-17-rt-amd64/updates/dkms/
ec_ccat.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.19.0-17-rt-amd64/updates/dkms/
ec_generic.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.19.0-17-rt-amd64/updates/dkms/
ec_mini.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.19.0-17-rt-amd64/updates/dkms/
depmod...
DKMS: install completed.
Updating EtherCAT master confiuration
modinfo: ERROR: Module ec_8139too not found.
update-initramfs: deferring update (trigger activated)
done.
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-4.19.0-17-rt-amd64
sudo dpkg -i etherlabmaster-dbgsym_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
log
root@debian:/home/cnc/install_script/ec-debianize# sudo dpkg -i etherlabmaster-dbgsym_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
(Reading database ... 202905 files and directories currently installed.)
Preparing to unpack etherlabmaster-dbgsym_1.5.2+20190904hg33b922p8ea394-1_amd64.deb ...
Unpacking etherlabmaster-dbgsym (1.5.2+20190904hg33b922p8ea394-1) over (1.5.2+20190904hg33b922p8ea394-1) ...
Setting up etherlabmaster-dbgsym (1.5.2+20190904hg33b922p8ea394-1) ...
sudo dpkg -i etherlabmaster-dev_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
root@debian:/home/cnc/install_script/ec-debianize# sudo dpkg -i etherlabmaster-dev_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
(Reading database ... 202905 files and directories currently installed.)
Preparing to unpack etherlabmaster-dev_1.5.2+20190904hg33b922p8ea394-1_amd64.deb ...
Unpacking etherlabmaster-dev (1.5.2+20190904hg33b922p8ea394-1) over (1.5.2+20190904hg33b922p8ea394-1) ...
Setting up etherlabmaster-dev (1.5.2+20190904hg33b922p8ea394-1) ...
"
5.6 went to file
"/etc/default/ethercat"
and I changed row 100 to
"DEVICE_MODULES="8139too""
5.7 did
"sudo update-ethercat-config"
but resault is same all the time...
"root@debian:~# sudo update-ethercat-config
Updating EtherCAT master confiuration
modinfo: ERROR: Module ec_8139too not found.
update-initramfs: Generating /boot/initrd.img-4.19.0-17-rt-amd64
done."
what should be problem now please?
thanks for helping!!!
Please Log in to join the conversation.
