Ethercat HAL driver

More
8 years 11 months ago - 8 years 11 months ago #101649 by sirop
Replied by sirop on topic Ethercat HAL driver
Means rpath incomplete.

Try
$(CC) -shared -o $@ $(lcec-objs) -Wl,-rpath,$(LIBDIR),-rpath,/opt/etherlab/lib/ -L$(LIBDIR) -L/opt/etherlab/lib/ -llinuxcnchal -lethercat -lrt
Last edit: 8 years 11 months ago by sirop. Reason: typo
The following user(s) said Thank You: chimeno

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

More
8 years 11 months ago #101650 by chimeno
Replied by chimeno on topic Ethercat HAL driver
hi Sirop,
if this works, now I have a new error "open / dev / EtherCAT0: Permission denied"

lack of permission? I give permission so?

echo KERNEL == \ "EtherCAT [0-9] * \", MODE = \ "0664 \"> /etc/udev/rules.d/99-EtherCAT.rules

after this it does not work either.

how can I solve that?

Thank you
Attachments:

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

More
8 years 11 months ago #101652 by sirop
The following user(s) said Thank You: chimeno

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

More
8 years 11 months ago - 8 years 11 months ago #101797 by chimeno
Replied by chimeno on topic Ethercat HAL driver

File Attachment:

File Name: 99-EtherCAT.rules.c
File Size:0 KB
Hello sirop

I have been comparing and searching but I can not give linuxcnc permissions to EtherCAT0, this is what I have done.

sudo -i
echo KERNEL == "EtherCAT [0-9] *", MODE = "0664", GROUP = "ethercat"

directory /etc/udev/rules.d/ ...ok

What am I doing?
Attachments:
Last edit: 8 years 11 months ago by chimeno.

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

More
8 years 11 months ago - 8 years 11 months ago #101799 by sirop
Replied by sirop on topic Ethercat HAL driver
So what is the contents of 99-ethercat.rules now?
Last edit: 8 years 11 months ago by sirop. Reason: typo
The following user(s) said Thank You: chimeno

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

More
8 years 11 months ago #101815 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi Sirop,
The content of the 99-ethercat.rules file is :

KERNEL=="EtherCAT[0-9]*", MODE="0664", GROUP="ethercat"

thanks

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

Time to create page: 1.438 seconds
Powered by Kunena Forum