Rodw, I think I figured it out with a header file from royka. next issue seems to not just be related to the orangepi. i get this far and it fails.
Code:
cnc@pm833tv-cnc:~$ sudo systemctl start ethercat.service
Job for ethercat.service failed because the control process exited with error code.
See "systemctl status ethercat.service" and "journalctl -xeu ethercat.service" for details.
I then decided to try the whole thing over again from a fresh install on a intel core i7, I used your guide here.
docs.google.com/document/d/1jeV_4VKzVmOI...I_PhCm1x7oiw8VcLFdiY
i get to the exact same line and it gives me the same error on amd64 as it does on arm64
Code:
cnc@pm833tv-cnc:~$ sudo systemctl start ethercat.service
Job for ethercat.service failed because the control process exited with error code.
See "systemctl status ethercat.service" and "journalctl -xeu ethercat.service" for details.
cnc@pm833tv-cnc:~$ systemctl status ethercat.service
× ethercat.service - EtherCAT Master Kernel Modules
Loaded: loaded (/lib/systemd/system/ethercat.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2023-06-18 22:28:29 PDT; 4min 22s ago
Process: 17371 ExecStart=/usr/sbin/ethercatctl start (code=exited, status=1/FAILURE)
Main PID: 17371 (code=exited, status=1/FAILURE)
CPU: 33ms
cnc@pm833tv-cnc:~$ journalctl -xeu ethercat.service
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
when i scroll back up in the terminal i also noticed that before i got this far there were already errors
Code:
sudo apt-get install ethercat-dkms libethercat libethercat-dev ethercat-master
spat out these errors
Code:
Setting up build-essential (12.9) ...
Setting up ethercat-dkms (1.5.2-42~git04f202a3) ...
Loading new ethercat-dkms-1.5.2 DKMS files...
Deprecated feature: REMAKE_INITRD (/usr/src/ethercat-dkms-1.5.2/dkms.conf)
Building for 6.1.0-9-rt-amd64
Building initial module for 6.1.0-9-rt-amd64
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/ethercat-dkms/1.5.2/source/dkms.conf)
Error! Bad return status for module build on kernel: 6.1.0-9-rt-amd64 (x86_64)
Consult /var/lib/dkms/ethercat-dkms/1.5.2/build/make.log for more information.
Adding Module to DKMS build system
Error! DKMS tree already contains: ethercat-dkms-1.5.2
You cannot add the same module/version combo more than once.
Doing initial module build
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/ethercat-dkms/1.5.2/source/dkms.conf)
Error! Bad return status for module build on kernel: 6.1.0-9-rt-amd64 (x86_64)
Consult /var/lib/dkms/ethercat-dkms/1.5.2/build/make.log for more information.
Installing initial module
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/ethercat-dkms/1.5.2/source/dkms.conf)
Error! Bad return status for module build on kernel: 6.1.0-9-rt-amd64 (x86_64)
Consult /var/lib/dkms/ethercat-dkms/1.5.2/build/make.log for more information.
Done.
Setting up libethercat (1.5.2-42~git04f202a3) ...
Setting up libethercat-dev (1.5.2-42~git04f202a3) ...
Setting up ethercat-master (1.5.2-42~git04f202a3) ...
ethercat.service is a disabled or a static unit, not starting it.
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9) ...
cnc@pm833tv-cnc:~$
in the past on this PC i was able to complete the whole guide and get a working ethercat master but i can not repeat that anymore