- Posts: 22012
- Thank you received: 4
Running ec-debianize ater a resh install
- tommylight
-
- Offline
- Administrator
-
Less
More
4 years 7 months ago #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 to join the conversation.
4 years 7 months ago #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 to join the conversation.
4 years 7 months ago #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
Code:
sudo systemctl status ethercat.service
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.
4 years 7 months ago #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 to join the conversation.
4 years 7 months ago #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.
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.
4 years 7 months ago #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 to join the conversation.
4 years 7 months ago #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
Please Log in to join the conversation.
4 years 7 months ago #237566
by rodw
Replied by rodw on topic Running ec-debianize ater a resh install
Yes
Does the trick
Code:
sudo apt install linux-headers-$(uname -r)
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
4 years 7 months ago #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
Code:sudo apt install linux-headers-$(uname -r) Does the trick
Please Log in to join the conversation.
4 years 7 months ago #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 to join the conversation.
Time to create page: 0.143 seconds
