modprobe: ERROR: could not insert 'ec_master': Key was rejected by service

More
1 year 2 months ago #332681 by GDTH
Hello

i am trying to setup ethercat on linuxcnc 2.9.4.
I use these instructions

when i want to start the service it gives an error:
 modprobe: ERROR: could not insert 'ec_master': Key was rejected by service

these are the conf params i set:

MASTER0_DEVICE="dc:4a:3e:52:df:de"
DEVICE_MODULES="generic"

i based it on this:
Code:
 ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 xdpgeneric/id:15 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host noprefixroute        valid_lft forever preferred_lft forever 2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000     link/ether dc:4a:3e:52:df:de brd ff:ff:ff:ff:ff:ff     inet 192.168.8.103/24 brd 192.168.8.255 scope global dynamic noprefixroute enp1s0        valid_lft 42941sec preferred_lft 42941sec     inet6 fe80::5746:54a6:d185:a5cd/64 scope link noprefixroute        valid_lft forever preferred_lft forever 3: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000     link/ether 88:c9:b3:bb:01:3c brd ff:ff:ff:ff:ff:ff 4: wt0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1280 qdisc noqueue state UNKNOWN group default qlen 1000     link/none     inet 100.113.80.7/16 brd 100.113.255.255 scope global wt0        valid_lft forever preferred_lft forever

Does anyone know where i went wrong?
I did first install it and find out that i was on a sercure boot, so i disabled it in the bios.

Kind regards,
Andries
 

Please Log in to join the conversation.

More
1 year 2 months ago #333081 by tommylight

Please post output of ip a
He did, so why ask again?
-
On topic, that seems an issue with the EtherCAT key, it has nothing to do with networking, also supported by "modprobe" in the error as the module could not be loaded/inserted.

Please Log in to join the conversation.

More
1 year 2 months ago #333097 by Hakan
Certainly an issue with secure boot and unsigned kernel modules, so the author is on the right track.
Twenty lines down there is a hidden spoiler section with more instructions, in case they were not seen.

The ec_master and ec_generic modules are built during ethercat package installation to fit the current kernel.
The modules do not get signed properly as required by secure boot. There was a case some months back
despite switching off secure boot in bios the kernel refused to load the modules.

By googling around it seems possible the modules can be signed but it is not so easy, but you can always try.
Switching off secure boot should work but doesn't always it seems.

Please Log in to join the conversation.

More
1 year 2 months ago #333115 by rodw
Its quite possible to get linuxcnc and Ethercat working with secure boot. The instructions you followed have a spoiler to open  explaining how to do it. The method came from the ethercat guys and I have tested it as working.

Please Log in to join the conversation.

Time to create page: 0.269 seconds
Powered by Kunena Forum