Running ec-debianize ater a resh install

More
17 Mar 2022 18:36 #237549 by tommylight
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

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

More
17 Mar 2022 18:53 #237553 by Niko
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

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

More
17 Mar 2022 19:01 #237555 by rodw
What does 
sudo systemctl status ethercat.service
report?
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.

More
17 Mar 2022 19:42 #237558 by Niko
Thats the reply from status :
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.

More
17 Mar 2022 19:58 #237559 by rodw
I would try
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.

More
17 Mar 2022 21:00 #237563 by Niko
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

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

More
17 Mar 2022 21:10 - 17 Mar 2022 21:33 #237564 by rodw
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
Last edit: 17 Mar 2022 21:33 by rodw.

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

More
17 Mar 2022 21:26 #237566 by rodw
Yes
sudo apt install linux-headers-$(uname -r)
Does the trick
The following user(s) said Thank You: tommylight

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

More
17 Mar 2022 22:07 #237574 by tommylight

Yes
sudo apt install linux-headers-$(uname -r)
Does the trick

That is a very neat way of doing it, not the brute force i use with google and "" ! :)

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

More
17 Mar 2022 22:27 #237577 by rodw
Thanks Tommy. I saw it done somewhere but it took a while to remember how...
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
Powered by Kunena Forum