Can't install etherlabmaster deb file

More
4 years 9 months ago #233613 by Hakan
I think the chance is more than 50% that it works. I have an "unsupported" builtin network interface and the GENERIC driver works just fine.

I looked at the gitlab code and maybe it is better to be at the source of everything. But I couldn't find anything that fixes your problem.

I looked around in the code. This is what it looks like when the problem occurs.
Code:
#ifdef EC_DEBUG_RING #define EC_DEBUG_RING_SIZE 10 typedef enum { TX, RX } ec_debug_frame_dir_t; typedef struct { ec_debug_frame_dir_t dir; struct timeval t; uint8_t data[EC_MAX_DATA_SIZE]; unsigned int data_size; } ec_debug_frame_t; #endif

So the code is surrounded by the #ifdef EC_DEBUG_RING so I think this code is active only when debugging is switched one. If you could switch off the debug and undefine the EC_DEBUG_RING, then this piece of code will not be active and it should be smooth sailing to build the kernel modules.

I can't help, I don't have a 5.10 system. And to find how to do this using ec-debianize well that is why I went away from it in the first place.

Please Log in to join the conversation.

More
4 years 9 months ago #233616 by rodw
Thanks, I had another go today using the igh git and then your git on a pi.
Both failed at exactly the same place. Looking for a network driver for the 5.10 kernel in the ethercat source.
I think I'm between a rock and a hard place. It won't install on bullseye and I can't use Buster because I need the NIC driver that is included in Bullseye. Its an extentsion to the RT8169 driver which is supported by ethercat. Last time I tried the LCNC 2.8 .ISO on this PC, it would not install without a network connection so I could not get far enough to install the network driver.

2.8 would be ok for this machine. I might look at Linux Mint again with 2.8. I'm that used to working with master branch for plasma...

Silly part is I have an older pc running Debian 11 and ethercat.... It coming to work with me tomorrow :)

 
 

Please Log in to join the conversation.

More
4 years 8 months ago #233638 by Grotius
Hi Rod,

Problably this will work:
wget github.com/grotius-cnc/Linux-Pro/release.../ethercat-master.deb
dpkg -i ethercat-master.deb
/opt/ethercat/script/init.d/ethercat restart

Please Log in to join the conversation.

More
4 years 8 months ago #233656 by rodw
Grotius, thanks, I will give it a go I think.
Hopefully, I should be able to install my NIC driver after it is installed

Silly part is I have an older pc running Debian 11 and ethercat.... It coming to work with me tomorrow
 

I was wrong here. Its running debian 10 by the look of the kernel version...

Please Log in to join the conversation.

More
4 years 8 months ago #233678 by rodw

Hi Rod,

Problably this will work:
wget github.com/grotius-cnc/Linux-Pro/release.../ethercat-master.deb
dpkg -i ethercat-master.deb
/opt/ethercat/script/init.d/ethercat restart
 
A couple of errors. my network NIC is  enp3s0
cat: /sys/class/net/enp0s25/address: No such file or directory
/var/lib/dpkg/info/ethercat-master.postinst: line 47: /etc/init.d/ethercat: Permission denied

 

Please Log in to join the conversation.

More
4 years 8 months ago #233699 by Hakan
I tested to build from the source I use on Raspbian and there were two compilation errors when building the modules. It uses 5.10.something.
I had to change to "static unsigned int" on line 91 and 259 (I think) in cdev.c and then it compiles. Never tried it but that change is so minor that I think it will work.

Please Log in to join the conversation.

More
4 years 8 months ago #233774 by Grotius
Hi Rod,

I made a custom .deb package for you where the network nic is set to : enp3s0
To overcome the permission denied error, first perform these 3 terminal things :
Code:
# 1.Set user permissions /opt dir. sudo chmod -R -f 777 /opt # 2.Change owner /opt dir sudo chown -R $USER /opt # 3.Change group /opt dir sudo chown -R $USER:$USER /opt # 4.Install Rod's custom deb package wget https://github.com/grotius-cnc/dump/releases/download/1.0/ethercat_rod.deb sudo dpkg -i ethercat_rod.deb  

Please Log in to join the conversation.

More
4 years 8 months ago #234471 by rodw
Grotius, you are indeed a magician, I can now list the slaves!
Thank you very much.

But I am having trouble opening my config. I suspect files may not be in the right spot yet because of the shortcuts we took.
I had to manually copy some files to the /lib/linuxcnc/modules folder but still they do not open. Any ideas here?
Code:
mill2@mill2:~/dev/linuxcnc-ethercat/src$ linuxcnc -l LINUXCNC - 2.9.0~pre0 Machine configuration directory is '/home/mill2/linuxcnc/configs/linuxcnc-cia402' Machine configuration file is 'cia402.ini' Starting LinuxCNC... emc/iotask/ioControl_v2.cc 888: iov2: can't load tool table. Found file(REL): ./cia402.hal Note: Using POSIX realtime ./cia402.hal:14: execv(./lcec_conf): No such file or directory ./cia402.hal:14: waitpid failed ./lcec_conf lcec_conf ./cia402.hal:14: ./lcec_conf exited without becoming ready Shutting down and cleaning up LinuxCNC... iov2: exiting Note: Using POSIX realtime LinuxCNC terminated with an error.  You can find more information in the log:     /home/mill2/linuxcnc_debug.txt and     /home/mill2/linuxcnc_print.txt

 

Please Log in to join the conversation.

More
4 years 8 months ago #234480 by rodw
I suspect I need to install the linuxcnc-dev deb. Will regroup tomorrow.

Please Log in to join the conversation.

More
4 years 8 months ago #234538 by rodw
Well, I made some progress following advice on this forum.
At least the xml is opened and parsed but
Now I get:
lcec: dlopen: libethercat.so.1: cannot open shared object file: No such file or directory

I am hoping this is just a path issue. Help would be appreciated

Please Log in to join the conversation.

Time to create page: 0.166 seconds
Powered by Kunena Forum