cnc@raspberrypi:~$ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Hit:3 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ InRelease
Get:4 http://deb.debian.org/debian bookworm-proposed-updates InRelease [60.6 kB]
Get:5 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:6 http://deb.debian.org/debian bookworm-backports InRelease [59.0 kB]      
Get:7 http://deb.debian.org/debian bookworm-proposed-updates/main arm64 Packages.diff/Index [63.3 kB]
Get:8 http://deb.debian.org/debian bookworm-proposed-updates/main Translation-en.diff/Index [63.3 kB]
Get:9 https://www.linuxcnc.org bookworm InRelease [31.1 kB]
Get:10 http://deb.debian.org/debian bookworm-proposed-updates/main arm64 Packages T-2025-01-30-1408.05-F-2025-01-27-2010.41.pdiff [12.2 kB]
Get:10 http://deb.debian.org/debian bookworm-proposed-updates/main arm64 Packages T-2025-01-30-1408.05-F-2025-01-27-2010.41.pdiff [12.2 kB]
Get:11 http://deb.debian.org/debian bookworm-proposed-updates/main Translation-en T-2025-01-30-1408.05-F-2025-01-27-2010.41.pdiff [8684 B]
Get:11 http://deb.debian.org/debian bookworm-proposed-updates/main Translation-en T-2025-01-30-1408.05-F-2025-01-27-2010.41.pdiff [8684 B]
Get:12 http://deb.debian.org/debian bookworm-backports/main arm64 Packages.diff/Index [63.3 kB]
Get:13 http://deb.debian.org/debian bookworm-backports/main Translation-en.diff/Index [63.3 kB]
Get:14 http://deb.debian.org/debian bookworm-backports/main arm64 Packages T-2025-02-01-0205.24-F-2025-01-27-0222.49.pdiff [17.2 kB]
Get:14 http://deb.debian.org/debian bookworm-backports/main arm64 Packages T-2025-02-01-0205.24-F-2025-01-27-0222.49.pdiff [17.2 kB]
Get:15 http://deb.debian.org/debian bookworm-backports/main Translation-en T-2025-01-30-2016.44-F-2025-01-29-0213.51.pdiff [7277 B]
Get:15 http://deb.debian.org/debian bookworm-backports/main Translation-en T-2025-01-30-2016.44-F-2025-01-29-0213.51.pdiff [7277 B]
Get:16 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [239 kB]
Get:17 http://deb.debian.org/debian-security bookworm-security/main Translation-en [144 kB]
Get:18 https://www.linuxcnc.org bookworm/2.9-uspace amd64 Packages [28.8 kB]
Fetched 964 kB in 1s (729 kB/s)                              
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
cnc@raspberrypi:~$ sudo apt install  linuxcnc-ethercat
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  autoconf-archive dkms ethercat-dkms ethercat-master libethercat
  linux-headers-6.1.0-30-arm64 linux-headers-6.1.0-30-common
  linux-headers-arm64 linux-kbuild-6.1 linuxcnc-doc-en
Suggested packages:
  menu pdf-viewer
The following NEW packages will be installed:
  autoconf-archive dkms ethercat-dkms ethercat-master libethercat
  linux-headers-6.1.0-30-arm64 linux-headers-6.1.0-30-common
  linux-headers-arm64 linux-kbuild-6.1 linuxcnc-ethercat
The following packages will be upgraded:
  linuxcnc-doc-en
1 upgraded, 10 newly installed, 0 to remove and 3 not upgraded.
Need to get 43.3 MB of archives.
After this operation, 144 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bookworm/main arm64 autoconf-archive all 20220903-3 [775 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 dkms all 3.0.10-8+deb12u1 [48.7 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main arm64 linux-headers-6.1.0-30-common all 6.1.124-1 [10.1 MB]
Get:2 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ ethercat-dkms 1.6.2.g285cdf0-1+13.3 [1459 kB]
Get:6 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ libethercat 1.6.2.g285cdf0-1+13.3 [22.2 kB]
Get:3 http://download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ ethercat-master 1.6.2.g285cdf0-1+13.3 [124 kB]
Get:7 http://ftp.lysator.liu.se/pub/opensuse/repositories/science%3A/EtherLab/Debian_12 ./ linuxcnc-ethercat 1.40.0.g8a607c0-0 [704 kB]
Get:8 http://deb.debian.org/debian bookworm-updates/main arm64 linux-kbuild-6.1 arm64 6.1.124-1 [1198 kB]
Get:9 http://deb.debian.org/debian bookworm-updates/main arm64 linux-headers-6.1.0-30-arm64 arm64 6.1.124-1 [1477 kB]
Get:10 https://www.linuxcnc.org bookworm/2.9-uspace amd64 linuxcnc-doc-en all 1:2.9.4 [27.3 MB]
Get:11 http://deb.debian.org/debian bookworm-updates/main arm64 linux-headers-arm64 arm64 6.1.124-1 [1424 B]
Fetched 43.3 MB in 5s (9364 kB/s)           
Selecting previously unselected package autoconf-archive.
(Reading database ... 132614 files and directories currently installed.)
Preparing to unpack .../00-autoconf-archive_20220903-3_all.deb ...
Unpacking autoconf-archive (20220903-3) ...
Selecting previously unselected package dkms.
Preparing to unpack .../01-dkms_3.0.10-8+deb12u1_all.deb ...
Unpacking dkms (3.0.10-8+deb12u1) ...
Selecting previously unselected package ethercat-dkms.
Preparing to unpack .../02-ethercat-dkms_1.6.2.g285cdf0-1+13.3_all.deb ...
Unpacking ethercat-dkms (1.6.2.g285cdf0-1+13.3) ...
Selecting previously unselected package ethercat-master.
Preparing to unpack .../03-ethercat-master_1.6.2.g285cdf0-1+13.3_arm64.deb ...
Unpacking ethercat-master (1.6.2.g285cdf0-1+13.3) ...
Selecting previously unselected package libethercat.
Preparing to unpack .../04-libethercat_1.6.2.g285cdf0-1+13.3_arm64.deb ...
Unpacking libethercat (1.6.2.g285cdf0-1+13.3) ...
Selecting previously unselected package linux-headers-6.1.0-30-common.
Preparing to unpack .../05-linux-headers-6.1.0-30-common_6.1.124-1_all.deb ...
Unpacking linux-headers-6.1.0-30-common (6.1.124-1) ...
Selecting previously unselected package linux-kbuild-6.1.
Preparing to unpack .../06-linux-kbuild-6.1_6.1.124-1_arm64.deb ...
Unpacking linux-kbuild-6.1 (6.1.124-1) ...
Selecting previously unselected package linux-headers-6.1.0-30-arm64.
Preparing to unpack .../07-linux-headers-6.1.0-30-arm64_6.1.124-1_arm64.deb ...
Unpacking linux-headers-6.1.0-30-arm64 (6.1.124-1) ...
Selecting previously unselected package linux-headers-arm64.
Preparing to unpack .../08-linux-headers-arm64_6.1.124-1_arm64.deb ...
Unpacking linux-headers-arm64 (6.1.124-1) ...
Preparing to unpack .../09-linuxcnc-doc-en_1%3a2.9.4_all.deb ...
Unpacking linuxcnc-doc-en (1:2.9.4) over (1:2.9.4) ...
Selecting previously unselected package linuxcnc-ethercat.
Preparing to unpack .../10-linuxcnc-ethercat_1.40.0.g8a607c0-0_arm64.deb ...
Unpacking linuxcnc-ethercat (1.40.0.g8a607c0-0) ...
Setting up autoconf-archive (20220903-3) ...
Setting up dkms (3.0.10-8+deb12u1) ...
Setting up linux-headers-6.1.0-30-common (6.1.124-1) ...
Setting up linuxcnc-doc-en (1:2.9.4) ...
Setting up libethercat (1.6.2.g285cdf0-1+13.3) ...
Setting up linux-kbuild-6.1 (6.1.124-1) ...
Setting up ethercat-dkms (1.6.2.g285cdf0-1+13.3) ...
Loading new ethercat-dkms-1.6.2 DKMS files...
Building for 6.12.11
Building initial module for 6.12.11
Error! Bad return status for module build on kernel: 6.12.11 (aarch64)
Consult /var/lib/dkms/ethercat-dkms/1.6.2/build/make.log for more information.
dpkg: error processing package ethercat-dkms (--configure):
 installed ethercat-dkms package post-installation script subprocess returned er
ror exit status 10
Setting up linux-headers-6.1.0-30-arm64 (6.1.124-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-30-arm64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...(bad exit status: 2)
./configure --enable-sii-assign --disable-rt-syslog --disable-tool --disable-use
rlib --enable-generic --enable-ccat --disable-tty --with-linux-dir=/lib/modules/
6.1.0-30-arm64/build --enable-e1000 --enable-igb --disable-igbvf --disable-ixgbe
vf --enable-igc --enable-e1000e --enable-8139too --enable-e100 --enable-r8169 --
disable-stmmac-pci --disable-dwmac-intel --enable-genet && make modules.........
....................................
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/master/ec_master.ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/ec_generic.ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/ccat/ec_ccat.ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/e1000/ec_e1000.ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/igb/ec_igb.ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/igc/ec_igc.ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/e1000e/ec_e1000e.
ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/ec_8139too.ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/ec_e100.ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/r8169/ec_r8169.ko
Signing module /var/lib/dkms/ethercat-dkms/1.6.2/build/devices/genet/ec_genet.ko

Running the post_build script:
'/var/lib/dkms/ethercat-dkms/1.6.2/build//Module.symvers' -> '/var/lib/dkms/ethe
rcat-dkms/1.6.2/6.1.0-30-arm64/aarch64/module/Module.symvers'
Cleaning build area...

ec_master.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_generic.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_ccat.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_e1000.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_igb.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_igc.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_e1000e.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_8139too.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_e100.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_r8169.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/

ec_genet.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-30-arm64/updates/dkms/
depmod...
dkms: autoinstall for kernel: 6.1.0-30-arm64.
Setting up linux-headers-arm64 (6.1.124-1) ...
dpkg: dependency problems prevent configuration of ethercat-master:
 ethercat-master depends on ethercat-dkms; however:
  Package ethercat-dkms is not configured yet.

dpkg: error processing package ethercat-master (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linuxcnc-ethercat:
 linuxcnc-ethercat depends on etherlabmaster | ethercat-master; however:
  Package etherlabmaster is not installed.
  Package ethercat-master is not configured yet.

dpkg: error processing package linuxcnc-ethercat (--configure):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for libc-bin (2.36-9+deb12u9) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for mailcap (3.70+nmu1) ...
Errors were encountered while processing:
 ethercat-dkms
 ethercat-master
 linuxcnc-ethercat
E: Sub-process /usr/bin/dpkg returned an error code (1)