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:
parent
70237a9559
commit
e714f73601
@ -118,6 +118,7 @@ git rev-parse HEAD # 记录本次 userspace 和内核模块共同使用的提
|
|||||||
--sysconfdir=$IGH_ETHERCAT_ROOT/etc \
|
--sysconfdir=$IGH_ETHERCAT_ROOT/etc \
|
||||||
--with-systemdsystemunitdir=$IGH_ETHERCAT_ROOT/lib/systemd/system \
|
--with-systemdsystemunitdir=$IGH_ETHERCAT_ROOT/lib/systemd/system \
|
||||||
--enable-generic \
|
--enable-generic \
|
||||||
|
--enable-igc \
|
||||||
--with-linux-dir=/lib/modules/$(uname -r)/build
|
--with-linux-dir=/lib/modules/$(uname -r)/build
|
||||||
|
|
||||||
make -j$(nproc) all modules
|
make -j$(nproc) all modules
|
||||||
@ -158,7 +159,7 @@ sudo scripts/ethercat/start_ethercat.sh eno1
|
|||||||
$IGH_ETHERCAT_ROOT/etc/ethercat.conf
|
$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。
|
||||||
|
|
||||||
查看状态:
|
查看状态:
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@ -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"
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@ -24,12 +24,12 @@
|
|||||||
|
|
||||||
find_library(EtherCAT_LIBRARY
|
find_library(EtherCAT_LIBRARY
|
||||||
NAMES ethercat
|
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
|
find_path(EtherCAT_INCLUDE_DIR
|
||||||
NAMES ecrt.h
|
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)
|
mark_as_advanced(EtherCAT_LIBRARY EtherCAT_INCLUDE_DIR)
|
||||||
|
|||||||
Binary file not shown.
@ -8,7 +8,7 @@
|
|||||||
dlname='libethercat.so.1'
|
dlname='libethercat.so.1'
|
||||||
|
|
||||||
# Names of this library.
|
# 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.
|
# The name of the static archive.
|
||||||
old_library='libethercat.a'
|
old_library='libethercat.a'
|
||||||
@ -23,8 +23,8 @@ dependency_libs=''
|
|||||||
weak_library_names=''
|
weak_library_names=''
|
||||||
|
|
||||||
# Version information for libethercat.
|
# Version information for libethercat.
|
||||||
current=3
|
current=4
|
||||||
age=2
|
age=3
|
||||||
revision=0
|
revision=0
|
||||||
|
|
||||||
# Is this an already installed library?
|
# Is this an already installed library?
|
||||||
@ -38,4 +38,4 @@ dlopen=''
|
|||||||
dlpreopen=''
|
dlpreopen=''
|
||||||
|
|
||||||
# Directory that this library needs to be installed in:
|
# 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'
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
libethercat.so.1.2.0
|
libethercat.so.1.3.0
|
||||||
@ -1 +1 @@
|
|||||||
libethercat.so.1.2.0
|
libethercat.so.1.3.0
|
||||||
BIN
dependency/x86/third_party/ethercat/v1.7.0/lib/libethercat.so.1.3.0
vendored
Executable file
BIN
dependency/x86/third_party/ethercat/v1.7.0/lib/libethercat.so.1.3.0
vendored
Executable file
Binary file not shown.
@ -21,10 +21,10 @@
|
|||||||
# vim: tw=78 noexpandtab
|
# 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}
|
exec_prefix=${prefix}
|
||||||
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
|
||||||
includedir=/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/include
|
includedir=/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/include
|
||||||
|
|
||||||
Name: libethercat
|
Name: libethercat
|
||||||
Description: Client support library for the EtherCAT Master
|
Description: Client support library for the EtherCAT Master
|
||||||
|
|||||||
@ -31,8 +31,8 @@ Description=EtherCAT Master Kernel Modules
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/home/cmvr/projects/cmvr-es//dependency/x86/third_party/ethercat/v1.7.0/sbin/ethercatctl start
|
ExecStart=/home/cmvr/project/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
|
ExecStop=/home/cmvr/project/cmvr-es/dependency/x86/third_party/ethercat/v1.7.0/sbin/ethercatctl stop
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@ -31,7 +31,7 @@ RMMOD="/sbin/rmmod"
|
|||||||
MODINFO="/sbin/modinfo"
|
MODINFO="/sbin/modinfo"
|
||||||
IP="/sbin/ip"
|
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"
|
ETHERCAT_CONFIG="$2"
|
||||||
COMMAND="$3"
|
COMMAND="$3"
|
||||||
else
|
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"
|
COMMAND="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ Example:
|
|||||||
sudo scripts/ethercat/start_ethercat.sh eno1 10 /dev/EtherCAT0
|
sudo scripts/ethercat/start_ethercat.sh eno1 10 /dev/EtherCAT0
|
||||||
|
|
||||||
Environment:
|
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.
|
IGH_ROOT=... Override bundled IgH install path.
|
||||||
ETHERCAT_CONF=... Override ethercatctl config path.
|
ETHERCAT_CONF=... Override ethercatctl config path.
|
||||||
ETHERCAT_DEV=/dev/EtherCAT0 Override EtherCAT character device node.
|
ETHERCAT_DEV=/dev/EtherCAT0 Override EtherCAT character device node.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user