Can't install etherlabmaster deb file
- rodw
- Topic Author
- Away
- Platinum Member
Less
More
- Posts: 10747
- Thank you received: 3543
29 Jan 2022 22:47 #233496
by rodw
Can't install etherlabmaster deb file was created by rodw
I've been able to build the ethercat debs without error but for some reason they will not install.
I keep getting this error
Running a clean install Debian 11.2 PREEMPT_RT
This is annoying becasue I've done this a few times on other PC's on the same OS using the instructions I wrote here
github.com/rodw-au/linuxcnc-cia402/blob/...n%20instructions.txt
If I look at the log, I get
I just have no idea where to go with this. I think its a compiler error from the kernel install.
The debs show up when I look in synaptic but there is no module ec_ethercat and no EtherCAT00 device.
Any help would be greatly appreciated.
I keep getting this error
sudo dpkg -i etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.deb
Selecting previously unselected package etherlabmaster.
(Reading database ... 317193 files and directories currently installed.)
Preparing to unpack etherlabmaster_1.5.2+20190904hg33b922p8ea394-1_amd64.deb ...
Unpacking etherlabmaster (1.5.2+20190904hg33b922p8ea394-1) ...
Setting up etherlabmaster (1.5.2+20190904hg33b922p8ea394-1) ...
Loading new etherlabmaster-1.5.2+20190904hg33b922p8ea394 DKMS files...
Building for 5.10.0-10-rt-amd64 5.10.0-11-amd64
Building initial module for 5.10.0-10-rt-amd64
Error! Bad return status for module build on kernel: 5.10.0-10-rt-amd64 (x86_64)
Consult /var/lib/dkms/etherlabmaster/1.5.2+20190904hg33b922p8ea394/build/make.log for more information.
dpkg: error processing package etherlabmaster (--install):
installed etherlabmaster package post-installation script subprocess returned error exit status 10
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Errors were encountered while processing:
etherlabmaster
Running a clean install Debian 11.2 PREEMPT_RT
This is annoying becasue I've done this a few times on other PC's on the same OS using the instructions I wrote here
github.com/rodw-au/linuxcnc-cia402/blob/...n%20instructions.txt
If I look at the log, I get
In file included from /var/lib/dkms/etherlabmaster/1.5.2+20190904hg33b922p8ea394/build/master/master.h:46,
from /var/lib/dkms/etherlabmaster/1.5.2+20190904hg33b922p8ea394/build/master/cdev.c:42:
/var/lib/dkms/etherlabmaster/1.5.2+20190904hg33b922p8ea394/build/master/device.h:95:20: error: field ‘timeval_poll’ has incomplete type
95 | struct timeval timeval_poll;
| ^~~~~~~~~~~~
/var/lib/dkms/etherlabmaster/1.5.2+20190904hg33b922p8ea394/build/master/cdev.c:91:14: error: initialization of ‘vm_fault_t (*)(struct vm_fault *)’ {a>
91 | .fault = eccdev_vma_fault
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/etherlabmaster/1.5.2+20190904hg33b922p8ea394/build/master/cdev.c:91:14: note: (near initialization for ‘eccdev_vm_ops.fault’)
cc1: some warnings being treated as errors
I just have no idea where to go with this. I think its a compiler error from the kernel install.
The debs show up when I look in synaptic but there is no module ec_ethercat and no EtherCAT00 device.
Any help would be greatly appreciated.
Please Log in or Create an account to join the conversation.
- CORBETT
- Offline
- Elite Member
Less
More
- Posts: 278
- Thank you received: 101
30 Jan 2022 06:20 #233516
by CORBETT
Replied by CORBETT on topic Can't install etherlabmaster deb file
Rod,
I had something similar happen to me when building from source... I could get all the way through to the point where I was just past Ethercat Debianize and would start installing EtherCAT and it would fail with the Kernel headers... I was perplexed as I had done this so many times and could not get it to work on the motherboard that I was using. I had been using the same Dell Optiplex motherboards (7010 SFF's) so that it would make things simple between machines. Never had a problem with all of the others, but when I was building for this one it would never work... always fail with Kernel Module issue. What it ended up being on my situation was an incorrect CPU for the motherboard, thus the Kernel Module issue... I confirmed this by taking another proc from another board and put in this motherboard, and ECAT installed the first time.
It was my fault as I buy the parts off of Ebay and build the computers and simply did not get the correct OEM proc, but one that would fire up and work.
May not help you at all, but just wanted to throw it out there as I was dumbfounded for awhile and your errors are very similar to what I got...
Robert
I had something similar happen to me when building from source... I could get all the way through to the point where I was just past Ethercat Debianize and would start installing EtherCAT and it would fail with the Kernel headers... I was perplexed as I had done this so many times and could not get it to work on the motherboard that I was using. I had been using the same Dell Optiplex motherboards (7010 SFF's) so that it would make things simple between machines. Never had a problem with all of the others, but when I was building for this one it would never work... always fail with Kernel Module issue. What it ended up being on my situation was an incorrect CPU for the motherboard, thus the Kernel Module issue... I confirmed this by taking another proc from another board and put in this motherboard, and ECAT installed the first time.
It was my fault as I buy the parts off of Ebay and build the computers and simply did not get the correct OEM proc, but one that would fire up and work.
May not help you at all, but just wanted to throw it out there as I was dumbfounded for awhile and your errors are very similar to what I got...
Robert
Please Log in or Create an account to join the conversation.
- rodw
- Topic Author
- Away
- Platinum Member
Less
More
- Posts: 10747
- Thank you received: 3543
30 Jan 2022 06:40 #233518
by rodw
Replied by rodw on topic Can't install etherlabmaster deb file
Thanks Robert. I'm running this on a Odroid H2+ so there is no chance of getting the wrong CPU. I will say I had troubles with installing linuxcnc dependencies too which I resolved by using aptitude on someone's suggestion. This seems to be building correctly.
I am also starting on a Raspberry Pi with Debian 11.2 cos I had one here. Not sure how that will go.
I am also starting on a Raspberry Pi with Debian 11.2 cos I had one here. Not sure how that will go.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
Less
More
- Posts: 498
- Thank you received: 156
30 Jan 2022 06:42 - 30 Jan 2022 06:56 #233519
by Hakan
Replied by Hakan on topic Can't install etherlabmaster deb file
It looks like the kernel folks are phasing out the struct timeval, it will overflow in year 2038, seems to be from kernel 5.10 and on.
I never had any luck with ec-debianize on rpi, I took the code from github icshwi and compiled.
I never had any luck with ec-debianize on rpi, I took the code from github icshwi and compiled.
Last edit: 30 Jan 2022 06:56 by Hakan.
The following user(s) said Thank You: arvidb
Please Log in or Create an account to join the conversation.
- CORBETT
- Offline
- Elite Member
Less
More
- Posts: 278
- Thank you received: 101
30 Jan 2022 07:07 #233520
by CORBETT
Replied by CORBETT on topic Can't install etherlabmaster deb file
Rod,
Man I like that Odroid H2... that is a nice compact setup.
As always, hope you have success with this....
Robert
Man I like that Odroid H2... that is a nice compact setup.
As always, hope you have success with this....
Robert
Please Log in or Create an account to join the conversation.
- rodw
- Topic Author
- Away
- Platinum Member
Less
More
- Posts: 10747
- Thank you received: 3543
30 Jan 2022 07:42 #233522
by rodw
Replied by rodw on topic Can't install etherlabmaster deb file
Hakan, thanks. I built a pi with debian 11.2 today and installed linuxcnc from a .deb Steffan Moller made recently but my config needs more work.
Is it a viable ethercat master? I noted you replaced it in one of your youtubes.
Robert, yes its a shame the Odroid H2 was canned due to lack of chips.... I haVE it tucked away in a HMI unit I built...
Is it a viable ethercat master? I noted you replaced it in one of your youtubes.
Robert, yes its a shame the Odroid H2 was canned due to lack of chips.... I haVE it tucked away in a HMI unit I built...
Attachments:
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
Less
More
- Posts: 498
- Thank you received: 156
30 Jan 2022 08:51 - 30 Jan 2022 08:52 #233524
by Hakan
Replied by Hakan on topic Can't install etherlabmaster deb file
I got build/compile/install errors when I tried to install ec-debianize on rpi. I felt it was a bit over my head to troubleshoot, there are too many layers to unwrap and dig in to for me. So I have used github/icshwi/etherlabmaster. It is the same code in the end if I understand it right. The first thing that is done is to download the code from igh using mercure and then apply patches. So I think it is the same code but without the .deb layer. It works fine here, I use it on both Intel and rpi. One should apply the patchset as mentioned in the readme.
github.com/icshwi/etherlabmaster
Edit: But I think you will run into the same problem with "struct timeval" since that is related to 5.10 kernel.
github.com/icshwi/etherlabmaster
Edit: But I think you will run into the same problem with "struct timeval" since that is related to 5.10 kernel.
Last edit: 30 Jan 2022 08:52 by Hakan.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- rodw
- Topic Author
- Away
- Platinum Member
Less
More
- Posts: 10747
- Thank you received: 3543
30 Jan 2022 09:07 #233525
by rodw
Replied by rodw on topic Can't install etherlabmaster deb file
Hakan, thanks so much. Can you elaborate on the timeval issue or provide a link?
I did see Sam Stollick discussing something about time on his channel.
I'll play around tomorrow and see how far I get.
I did see Sam Stollick discussing something about time on his channel.
I'll play around tomorrow and see how far I get.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
Less
More
- Posts: 498
- Thank you received: 156
30 Jan 2022 13:11 #233539
by Hakan
Replied by Hakan on topic Can't install etherlabmaster deb file
The first error you get is that struct timeval is not defined (for the compiler).
www.infradead.org/~mchehab/kernel_docs/c...api/timekeeping.html gave some insight into the depcriation of the use of struct timeval.
And here is the same exact issue but for another program github.com/KermsGit/dht22/issues/1
Resolved - look at the changes for the third file. struct timeval is replaced with ktime_t. github.com/KermsGit/dht22/pull/2/files
So I would say that it necessary to change the usage of struct timeval to ktime_t in the kernel modules' source code. I might jump to conclusions based on the first hits of google, but seems reasonable to me.
Personally I would look for a kernel < 5.10
www.infradead.org/~mchehab/kernel_docs/c...api/timekeeping.html gave some insight into the depcriation of the use of struct timeval.
And here is the same exact issue but for another program github.com/KermsGit/dht22/issues/1
Resolved - look at the changes for the third file. struct timeval is replaced with ktime_t. github.com/KermsGit/dht22/pull/2/files
So I would say that it necessary to change the usage of struct timeval to ktime_t in the kernel modules' source code. I might jump to conclusions based on the first hits of google, but seems reasonable to me.
Personally I would look for a kernel < 5.10
The following user(s) said Thank You: arvidb
Please Log in or Create an account to join the conversation.
- rodw
- Topic Author
- Away
- Platinum Member
Less
More
- Posts: 10747
- Thank you received: 3543
30 Jan 2022 20:38 #233575
by rodw
Replied by rodw on topic Can't install etherlabmaster deb file
Hakan, thanks. I'm kinda stuck with the 5.10 kernel to get a clean build of Linuxcnc master with Python 3 which is required for plasma.
When I looked at some of the links we seem to be old versions of the etherlab master source becasue they no longer use Sourceforge or mercurial and have migrated to gitlab and git to manage their code.
I think I might try the current gitlab source tree per this www.etherlab.org/en/ethercat/index.php
Its quite possible that my 2.5gb network card is incompatible
When I looked at some of the links we seem to be old versions of the etherlab master source becasue they no longer use Sourceforge or mercurial and have migrated to gitlab and git to manage their code.
I think I might try the current gitlab source tree per this www.etherlab.org/en/ethercat/index.php
Its quite possible that my 2.5gb network card is incompatible
Please Log in or Create an account to join the conversation.
Time to create page: 0.831 seconds