Can't install etherlabmaster deb file
31 Jan 2022 08:30 - 31 Jan 2022 08:30 #233613
by Hakan
Replied by Hakan on topic Can't install etherlabmaster deb file
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.
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.
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.
#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.
Last edit: 31 Jan 2022 08:30 by Hakan.
Please Log in or Create an account to join the conversation.
31 Jan 2022 08:57 #233616
by rodw
Replied by rodw on topic Can't install etherlabmaster deb file
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
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 or Create an account to join the conversation.
31 Jan 2022 15:12 #233638
by Grotius
Replied by Grotius on topic Can't install etherlabmaster deb file
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
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
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
31 Jan 2022 18:10 #233656
by rodw
Replied by rodw on topic Can't install etherlabmaster deb file
Grotius, thanks, I will give it a go I think.
Hopefully, I should be able to install my NIC driver after it is installed
I was wrong here. Its running debian 10 by the look of the kernel version...
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 or Create an account to join the conversation.
01 Feb 2022 01:36 #233678
by rodw
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
Replied by rodw on topic Can't install etherlabmaster deb file
A couple of errors. my network NIC is enp3s0Hi 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
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 or Create an account to join the conversation.
01 Feb 2022 09:55 #233699
by Hakan
Replied by Hakan on topic Can't install etherlabmaster deb file
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.
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.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
02 Feb 2022 07:50 - 02 Feb 2022 08:21 #233774
by Grotius
Replied by Grotius on topic Can't install etherlabmaster deb file
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 :
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 :
# 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
Last edit: 02 Feb 2022 08:21 by Grotius.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
10 Feb 2022 07:32 #234471
by rodw
Replied by rodw on topic Can't install etherlabmaster deb file
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?
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?
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
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
10 Feb 2022 09:52 #234480
by rodw
Replied by rodw on topic Can't install etherlabmaster deb file
I suspect I need to install the linuxcnc-dev deb. Will regroup tomorrow.
Please Log in or Create an account to join the conversation.
10 Feb 2022 23:49 #234538
by rodw
Replied by rodw on topic Can't install etherlabmaster deb file
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
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 or Create an account to join the conversation.
Time to create page: 0.094 seconds