Running ec-debianize ater a resh install

More
4 years 7 months ago #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 to join the conversation.

More
4 years 7 months ago #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 to join the conversation.

More
4 years 7 months ago #237555 by rodw
What does 
Code:
sudo systemctl status ethercat.service
report?
I did not use ethercatctl and instead used
Code:
sudo systemctl enable ethercat.service sudo systemctl start ethercat.service sudo systemctl status ethercat.service

Please Log in to join the conversation.

More
4 years 7 months ago #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 to join the conversation.

More
4 years 7 months ago #237559 by rodw
I would try
Code:
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 to join the conversation.

More
4 years 7 months ago #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 to join the conversation.

More
4 years 7 months ago #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

Please Log in to join the conversation.

More
4 years 7 months ago #237566 by rodw
Yes
Code:
sudo apt install linux-headers-$(uname -r)
Does the trick

Please Log in to join the conversation.

More
4 years 7 months ago #237574 by tommylight

Yes
Code:
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 to join the conversation.

More
4 years 7 months ago #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 to join the conversation.

Time to create page: 0.143 seconds
Powered by Kunena Forum