build(ethercat): synchronize rebuilt x86 userspace artifacts

Update the bundled EtherCAT CLI and libraries, including libethercat.so.1.3.0 and its symlinks. Synchronize installation metadata with the project path and align build documentation with the igc driver. Retain the machine-specific master MAC locally. Verified CLI version, library SONAME/symlinks, script syntax and the application build on device 206.
This commit is contained in:
linbo 2026-11-12 11:59:07 +08:00
parent 70237a9559
commit e714f73601
13 changed files with 19 additions and 18 deletions

View File

@ -118,6 +118,7 @@ git rev-parse HEAD # 记录本次 userspace 和内核模块共同使用的提
--sysconfdir=$IGH_ETHERCAT_ROOT/etc \
--with-systemdsystemunitdir=$IGH_ETHERCAT_ROOT/lib/systemd/system \
--enable-generic \
--enable-igc \
--with-linux-dir=/lib/modules/$(uname -r)/build
make -j$(nproc) all modules
@ -158,7 +159,7 @@ sudo scripts/ethercat/start_ethercat.sh eno1
$IGH_ETHERCAT_ROOT/etc/ethercat.conf
```
脚本会把该网卡的 MAC 写到 `MASTER0_DEVICE`,使用 `DEVICE_MODULES="generic"`,把网卡从 NetworkManager 断开,并通过 `ethercatctl -c` 启动 IgH master。
脚本会把该网卡的 MAC 写到 `MASTER0_DEVICE`,使用 `DEVICE_MODULES="igc"`,把网卡从 NetworkManager 断开,并通过 `ethercatctl -c` 启动 IgH master。
查看状态:

View File

@ -40,7 +40,7 @@
#------------------------------------------------------------------------------
ETHERCATCTL="/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/sbin/ethercatctl -c /home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/etc/sysconfig/ethercat"
ETHERCATCTL="/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/sbin/ethercatctl -c /home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/etc/sysconfig/ethercat"
#------------------------------------------------------------------------------

View File

@ -24,12 +24,12 @@
find_library(EtherCAT_LIBRARY
NAMES ethercat
PATHS /home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/lib
PATHS /home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/lib
)
find_path(EtherCAT_INCLUDE_DIR
NAMES ecrt.h
PATHS /home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/include
PATHS /home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/include
)
mark_as_advanced(EtherCAT_LIBRARY EtherCAT_INCLUDE_DIR)

View File

@ -8,7 +8,7 @@
dlname='libethercat.so.1'
# Names of this library.
library_names='libethercat.so.1.2.0 libethercat.so.1 libethercat.so'
library_names='libethercat.so.1.3.0 libethercat.so.1 libethercat.so'
# The name of the static archive.
old_library='libethercat.a'
@ -23,8 +23,8 @@ dependency_libs=''
weak_library_names=''
# Version information for libethercat.
current=3
age=2
current=4
age=3
revision=0
# Is this an already installed library?
@ -38,4 +38,4 @@ dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/lib'
libdir='/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/lib'

View File

@ -1 +1 @@
libethercat.so.1.2.0
libethercat.so.1.3.0

View File

@ -1 +1 @@
libethercat.so.1.2.0
libethercat.so.1.3.0

Binary file not shown.

View File

@ -21,10 +21,10 @@
# vim: tw=78 noexpandtab
#
prefix=/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0
prefix=/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0
exec_prefix=${prefix}
libdir=/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/lib
includedir=/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/include
libdir=/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/lib
includedir=/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/include
Name: libethercat
Description: Client support library for the EtherCAT Master

View File

@ -31,8 +31,8 @@ Description=EtherCAT Master Kernel Modules
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/sbin/ethercatctl start
ExecStop=/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/sbin/ethercatctl stop
ExecStart=/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/sbin/ethercatctl start
ExecStop=/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/sbin/ethercatctl stop
[Install]
WantedBy=multi-user.target

View File

@ -31,7 +31,7 @@ RMMOD="/sbin/rmmod"
MODINFO="/sbin/modinfo"
IP="/sbin/ip"
ETHERCAT="/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/bin/ethercat"
ETHERCAT="/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/bin/ethercat"
#------------------------------------------------------------------------------
@ -39,7 +39,7 @@ if [ "$1" = "-c" ]; then
ETHERCAT_CONFIG="$2"
COMMAND="$3"
else
ETHERCAT_CONFIG="/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/etc/ethercat.conf"
ETHERCAT_CONFIG="/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/etc/ethercat.conf"
COMMAND="$1"
fi

View File

@ -16,7 +16,7 @@ Example:
sudo scripts/ethercat/start_ethercat.sh eno1 10 /dev/EtherCAT0
Environment:
DEVICE_MODULES=igc IgH device module list (234 default).
DEVICE_MODULES=igc IgH device module list (igc default).
IGH_ROOT=... Override bundled IgH install path.
ETHERCAT_CONF=... Override ethercatctl config path.
ETHERCAT_DEV=/dev/EtherCAT0 Override EtherCAT character device node.