Ethercat installation from repositories - how to step by step

More
4 years 4 weeks ago #253272 by sqmathlete
Actual error
Code:
GPG error: https://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_10 ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A08216C4FF0D8EF7 W: The repository 'https://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_10 ./ InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.

I've added the line to the sources.list file and the ethercat.gpg file is there after the KEYRING commands.  Not sure what is going on... never failed at this point before.
 

Please Log in to join the conversation.

More
4 years 4 weeks ago #253292 by rodw
Dan, some things may have changed with the security
Follow the instructions here (click on show more)
build.opensuse.org/project/show/home:bon...hes:science:EtherLab
Code:
KEYRING=/usr/share/keyrings/ethercat.gpg && curl -fsSL https://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_10/Release.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null  
and in sources.list
Code:
deb [trusted=yes] http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_10/ ./
Originally, the instructions here did not give me a good key and I bumbled through
sudo apt update was generating a warning today, now its not.

Still waiting to see if it will install on my chromebook...

Please Log in to join the conversation.

More
4 years 4 weeks ago #253300 by rodw
Yes, the ethercat packages install without error so it should be fine to follow my last post. Let us know how you get on and I'll try and updat the first post

Please Log in to join the conversation.

More
4 years 4 weeks ago #253301 by sqmathlete
Well, now I am really confused. I have tried to follow those instructions several times.
Step 1) create an empty file in /etc/apt/sources.list.d

STEP 2)copy and paste the keyring
Code:
KEYRING=/usr/share/keyrings/ethercat.gpg && curl -fsSL https://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_10/Release.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null Step 3) Add this line to the etherlab.list  file in /etc/apt/sources.list.d
deb [trusted=yes] download.opensuse.org/repositories/home:.../EtherLab/Debian_10/ ./[/code]
Code:
sudo apt update

spits out
 

Attachment not found

Please Log in to join the conversation.

More
4 years 4 weeks ago #253304 by sqmathlete
One thought, can this part be done with the wget command?

Please Log in to join the conversation.

More
4 years 4 weeks ago #253307 by rodw
I got this:
Code:
od@penguin:/usr/share/keyrings$ sudo apt update Hit:1 https://deb.debian.org/debian bullseye InRelease Hit:2 https://deb.debian.org/debian bullseye-updates InRelease                   Hit:3 https://deb.debian.org/debian-security bullseye-security InRelease              Ign:4 https://storage.googleapis.com/cros-packages/108 bullseye InRelease             Hit:5 https://storage.googleapis.com/cros-packages/108 bullseye Release          Get:6 http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_10 ./ InRelease [1,339 B] Ign:6 http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_10 ./ InRelease Fetched 1,339 B in 1s (946 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 48 packages can be upgraded. Run 'apt list --upgradable' to see them. W: GPG error: http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_10 ./ InRelease: The following signatures were invalid: B1C282D9C181FD2DC684D6A1A08216C4FF0D8EF7

I saw the W; on the GPG error so decided it was just a warning and pressed on. It seemed to work and it crated the ethercat drivers ec_* in the right folder.

But I did do 
Code:
 sudo rm ethercat.gpg
first just in case

Please Log in to join the conversation.

More
4 years 3 weeks ago #253476 by sqmathlete
Hi Rod,

I've got things sorted out. I hate to admit but I think I must have copied the install line along with ip a (find the MAC address) DUH!

The only edit to the instructions I would suggest is to add cd linuxcnc-ethercat before running the make, make clean commands. Other than that flawless. Well done!

Dan

Please Log in to join the conversation.

More
4 years 3 days ago #255263 by rodw
The first post has been  updated to incorporate additional steps mentioned in subsequent posts.
However, please check I got it right!

Please Log in to join the conversation.

More
3 years 11 months ago #255902 by unromeo21
Hi everybody, 

I hope you can tollerate a total noob in here... and hope you don't mind me hijackingthis thread. 

Never installed a LinuxCNC yet, but I am in the process of trying to figure out if my servo drivers can be used with LinuxCNC and the HAL Cia402 interface before going down the rabbit hole and do any sort of testing and installations. 
I have a couple of Jenaer ECOSTEP 100 Servo aplifiers ( ECOstep 100) , which use either RS232, CANopen or Profibus DP for motion control. CiA402 is implemented, as far as I can see on these drivers, using the CANopen interface and DS301 in the RS232 interface. 

Now, all I can find on LinuxCNC are some small number of cases where people managed to use EtherCAT, but this is not my case. 
Will I be able to use the same EtherCAT methods to connect to a serial CANopen interface as well ? How would I go about doing that ? 
I see that there is a basic CANbus module for raspberry pi which is quite cheap and easy to get. Would that work ?

Also, just using basic RS232 with DS301 in LinuxCNC : I haven't found any such use cases before. 

So many questions. 

Thanks in advance for your support. 
 

Please Log in to join the conversation.

More
3 years 11 months ago #255905 by rodw
The issue could become communicating in real time on a serial interface. Often serial drivers are more for industrial use, not for motion control.
Beckhof I think has an ethercat to Canopen module but I don't know if its supported by lcnc.
Maybe Dominc or Corbett will come along as they are far more knowledgable than me.

Please Log in to join the conversation.

Time to create page: 0.469 seconds
Powered by Kunena Forum