Beckhoff ethercat 64 with bit linuxcnc, How to install.

More
5 years 3 months ago #216402 by rollfree
Did you do (Y/N and with what result):
- ./configure --enable-8139too
- make all modules
- make modules_install install
- depmod

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

More
5 years 3 months ago #216437 by endian
db1981

I just downloaded the hybrid ISO file like " tommylight ​​​​ " told me in this answer

Code:
https://forum.linuxcnc.org/27-driver-boards/35591-beckhoff-ethercat-64-with-bit-linuxcnc-how-to-install?start=200#211106
with preinstalled ethecat from this link as a most fastest way.
Code:
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 :
  • 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
but it is my fail I think therefore... 
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 guide 
Code:
https://github.com/grotius-cnc/install_script
5.
Code:
./setup.sh reboot ./setup1.sh
6. ethercat works but I never found this file 
Code:
 /home/user/linuxcnc-ethercat/src/lcec_conf
7. 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...

​​​​​​
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 or Create an account to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #216473 by db1981
Hello,i am writing the following on a windows machine out of my head, i can't test this live at the moment......
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 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

  ok, we will start after point 5:
-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.


 
Last edit: 5 years 3 months ago by db1981. Reason: formatting horror
The following user(s) said Thank You: endian

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

More
5 years 2 months ago - 5 years 2 months ago #216911 by endian
thanks a lot for cooperation...
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
Warning: Spoiler!

sudo dpkg -i etherlabmaster-dbgsym_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
log
Warning: Spoiler!

sudo dpkg -i etherlabmaster-dev_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
Warning: Spoiler!

"
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!!!
Last edit: 5 years 2 months ago by endian. Reason: formating of text

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

More
5 years 2 months ago #216921 by db1981
Hmm,

point 5.3 does not work, the new packages are not build. i will have to test this.
The following user(s) said Thank You: endian

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

More
5 years 2 months ago - 5 years 2 months ago #216995 by TheRoslyak
Hi everyone
Can you say: does supported module el6022? As I understand it this module isn't in source but can I make correct XML file without edit source?
In global I want to connect linuxcnc with modbus device. I find that this do to connected with VFD. But send parcel coordinates to memory cell in Scara (Delta Electronic)  
Last edit: 5 years 2 months ago by TheRoslyak.

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

Time to create page: 0.165 seconds
Powered by Kunena Forum