- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- modprobe: ERROR: could not insert 'ec_master': Key was rejected by service
modprobe: ERROR: could not insert 'ec_master': Key was rejected by service
- GDTH
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 2
02 Aug 2025 16:23 #332681
by GDTH
modprobe: ERROR: could not insert 'ec_master': Key was rejected by service was created 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:
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
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:
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 or Create an account to join the conversation.
- langdons
- Offline
- Platinum Member
-
Less
More
- Posts: 543
- Thank you received: 56
08 Aug 2025 23:16 #333077
by langdons
Replied by langdons on topic modprobe: ERROR: could not insert 'ec_master': Key was rejected by service
Please post output of ip a
You may find netplan useful.
netplan.io
You may find netplan useful.
netplan.io
Please Log in or Create an account to join the conversation.
- tommylight
-
- Offline
- Moderator
-
Less
More
- Posts: 20518
- Thank you received: 6981
08 Aug 2025 23:33 #333081
by tommylight
-
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.
Replied by tommylight on topic modprobe: ERROR: could not insert 'ec_master': Key was rejected by service
He did, so why ask again?Please post output of ip a
-
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 or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 786
- Thank you received: 264
09 Aug 2025 08:25 #333097
by Hakan
Replied by Hakan on topic modprobe: ERROR: could not insert 'ec_master': Key was rejected by service
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.
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 or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- modprobe: ERROR: could not insert 'ec_master': Key was rejected by service
Time to create page: 0.095 seconds