Running ec-debianize ater a resh install
- tommylight
- Away
- Moderator
Less
More
- Posts: 19106
- Thank you received: 6398
17 Mar 2022 18:36 #237549
by tommylight
Replied by tommylight on topic Running ec-debianize ater a resh install
What does
uname -a
say?
If you did a plain update, it might have replaced the kernel and with it removed ethercat.
As a general rule for anyone reading this, never do a normal update on Linux used for machine control, use:
sudo apt-get update
sudo apt-get dist-upgrade
uname -a
say?
If you did a plain update, it might have replaced the kernel and with it removed ethercat.
As a general rule for anyone reading this, never do a normal update on Linux used for machine control, use:
sudo apt-get update
sudo apt-get dist-upgrade
Please Log in or Create an account to join the conversation.
17 Mar 2022 18:53 #237553
by Niko
Replied by Niko on topic Running ec-debianize ater a resh install
uname - returned ;
Linux debian 4.19.0-17-rt-amd64 #1 SMP PREEMPT RT Debian 4.19.194-2 (2021-06-21) x86_64 GNU/Linux
Linux debian 4.19.0-17-rt-amd64 #1 SMP PREEMPT RT Debian 4.19.194-2 (2021-06-21) x86_64 GNU/Linux
Please Log in or Create an account to join the conversation.
17 Mar 2022 19:01 #237555
by rodw
Replied by rodw on topic Running ec-debianize ater a resh install
What does report?
I did not use ethercatctl and instead used
sudo systemctl status ethercat.service
I did not use ethercatctl and instead used
sudo systemctl enable ethercat.service
sudo systemctl start ethercat.service
sudo systemctl status ethercat.service
Please Log in or Create an account to join the conversation.
17 Mar 2022 19:42 #237558
by Niko
Replied by Niko on topic Running ec-debianize ater a resh install
Thats the reply from status :
modprobe: FATAL: Module ec_master not found in directory /lib/modules/4.19.0-17-rt-am
modprobe: FATAL: Module ec_master not found in directory /lib/modules/4.19.0-17-rt-am
Please Log in or Create an account to join the conversation.
17 Mar 2022 19:58 #237559
by rodw
Replied by rodw on topic Running ec-debianize ater a resh install
I would try
It seems something has changed in your setup as Tommy has said.
You may need to edit your config file again after above.
sudo apt remove ethercat-dkms libethercat libethercat-dev ethercat-master
sudo apt install -y linux-headers-rt-amd64
sudo apt install ethercat-dkms libethercat libethercat-dev ethercat-master
sudo systemctl enable ethercat.service
sudo systemctl start ethercat.service
sudo systemctl status ethercat.service
It seems something has changed in your setup as Tommy has said.
You may need to edit your config file again after above.
Please Log in or Create an account to join the conversation.
17 Mar 2022 21:00 #237563
by Niko
Replied by Niko on topic Running ec-debianize ater a resh install
Thank you gentlemen, that worked .
One comment though . linux-headers-rt-amd64 didn't seem to do the trick .
But the message from: sudo apt install ethercat-dkms libethercat libethercat-dev ethercat-master requested :
linux-headers-4.19.0-17-rt-amd64
Installing that fixed it .
Cheers
One comment though . linux-headers-rt-amd64 didn't seem to do the trick .
But the message from: sudo apt install ethercat-dkms libethercat libethercat-dev ethercat-master requested :
linux-headers-4.19.0-17-rt-amd64
Installing that fixed it .
Cheers
Please Log in or Create an account to join the conversation.
17 Mar 2022 21:10 - 17 Mar 2022 21:33 #237564
by rodw
Replied by rodw on topic Running ec-debianize ater a resh install
Great, I think we can use uname -r in the command to install the headers somehow to make it more generic
I did notice I had troubles with headers where I pulled the linuxcnc repo from unstable into bullseye at this point too which is kinda why I went to unstable. etherlabmaster was looking in the wrong kernel folder... same as you....
EDIT: It gets messed up when there is more than one kernel on the system
I did notice I had troubles with headers where I pulled the linuxcnc repo from unstable into bullseye at this point too which is kinda why I went to unstable. etherlabmaster was looking in the wrong kernel folder... same as you....
EDIT: It gets messed up when there is more than one kernel on the system
Last edit: 17 Mar 2022 21:33 by rodw.
Please Log in or Create an account to join the conversation.
17 Mar 2022 21:26 #237566
by rodw
Replied by rodw on topic Running ec-debianize ater a resh install
YesDoes the trick
sudo apt install linux-headers-$(uname -r)
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19106
- Thank you received: 6398
17 Mar 2022 22:07 #237574
by tommylight
Replied by tommylight on topic Running ec-debianize ater a resh install
That is a very neat way of doing it, not the brute force i use with google and "" !Yes
sudo apt install linux-headers-$(uname -r) Does the trick
Please Log in or Create an account to join the conversation.
17 Mar 2022 22:27 #237577
by rodw
Replied by rodw on topic Running ec-debianize ater a resh install
Thanks Tommy. I saw it done somewhere but it took a while to remember how...
But it certainly completed the command correctly
But it certainly completed the command correctly
Please Log in or Create an account to join the conversation.
Time to create page: 0.086 seconds