File tree Expand file tree Collapse file tree 5 files changed +43
-18
lines changed Expand file tree Collapse file tree 5 files changed +43
-18
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,6 @@ And one can check the master status as follows:
43
43
etherlabmaster (master)$ ethercat master
44
44
```
45
45
46
- ## Notice
47
-
48
- Even if we buid the kernel DKMS, one needs the following commands after new Kernel install.
49
-
50
- ```
51
- $ sudo dkms autoinstall
52
- $ sudo systemctl restart ethercat
53
-
54
- ```
55
46
56
47
## Steps
57
48
@@ -73,15 +64,20 @@ Fixed scheduler settings in dc_user example; use CLOCK_MONOTONIC.
73
64
### make install
74
65
* Ethercat program (configuration, lib, and others) installation
75
66
76
- ### make modules_build
77
- * Kernel modules compiliation
67
+ ### make dkms_add
68
+ * dkms add
69
+
70
+ ### make dkms_build
71
+ * dkms build via dkms
72
+
78
73
79
- ### make modules_install
80
- * Kernel modules installation
74
+ ### make dkms_install
75
+ * Kernel modules installation via dkms
81
76
82
77
### make setup
83
78
84
79
* Activate the EtherCAT master Network Port
80
+ * Setup the dkms systemd service
85
81
* Setup the ethercat systemd service
86
82
* Put the UDEV rule to allow an user to access the ethercat master port
87
83
* Create the symbolic link for the ethercat executable command
Original file line number Diff line number Diff line change @@ -5,3 +5,12 @@ This patch allows us to use the installed etherlab master configuration in a loc
5
5
6
6
* created by Jeong Han Lee, han.lee@esss.se
7
7
* Thursday, May 24 11:51:52 CEST 2018
8
+
9
+
10
+ # after_dkms_service_patch.p0.patch
11
+
12
+ The dkms.service demon should be run before the ethercat.service will be started.
13
+
14
+ ```
15
+ etherlabmaster-code (master)$ hg diff script/ethercat.service.in > ../patch/Site/after_dkms_service_patch.p0.patch
16
+ ```
Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ $hg diff script/ethercatctl.in > ../use_prefix_for_ethercat_conf_path.p0.patch
22
22
```
23
23
And remove a/b in user_prefix_for_ethercat_conf_path.p0.patch manually.
24
24
25
+
26
+
Original file line number Diff line number Diff line change
1
+ diff -r 9e65f782e8a1 script/ethercat.service.in
2
+ --- script/ethercat.service.in Tue Feb 13 17:16:01 2018 +0100
3
+ +++ script/ethercat.service.in Fri Jul 27 00:04:00 2018 +0200
4
+ @@ -9,8 +9,10 @@
5
+ # Uncomment this, if the generic Ethernet driver is used. It assures, that the
6
+ # network interfaces are configured, before the master starts.
7
+ #
8
+ - #Requires=network.service # Stop master, if network is stopped
9
+ - #After=network.service # Start master, after network is ready
10
+ + # Stop ethercat.service, if dkms.service is stopped
11
+ + Requires=dkms.service
12
+ + # Start ethercat.service, after dkms.service is ready
13
+ + After=dkms.service
14
+
15
+ #
16
+ # Uncomment this, if a native Ethernet driver is used. It assures, that the
Original file line number Diff line number Diff line change 18
18
#
19
19
# Author : Jeong Han Lee
20
20
# email : jeonghan.lee@gmail.com
21
- # Date : Thursday , July 26 01:15:45 CEST 2018
22
- # version : 0.0.5
21
+ # Date : Friday , July 27 00:06:10 CEST 2018
22
+ # version : 0.0.6
23
23
24
24
declare -gr SC_SCRIPT=" $( realpath " $0 " ) "
25
25
declare -gr SC_SCRIPTNAME=${0##*/ }
@@ -294,6 +294,11 @@ ${SUDO_CMD} -v
294
294
activate_ethercat_master_network
295
295
296
296
297
+ # Setup Systemd for the DKMS autoinstall
298
+ # dkms.sevice will be started before ethercat.service be started.
299
+ setup_dkms_systemd
300
+
301
+
297
302
# # Setup Systemd for the etercat.service
298
303
# # We can put all configuration files and scrpits in ${ETHERLAB_TARGET_PATH}
299
304
# # However, we cannot put ${ECAT_MASTER_SYSTEMD} in any customzied path
@@ -306,9 +311,6 @@ put_udev_rule "${ECAT_KMOD_NAME}"
306
311
307
312
trigger_udev_rule
308
313
309
- # Setup Systemd for the DKMS autoinstall
310
- #
311
- setup_dkms_systemd
312
314
313
315
314
316
${SUDO_CMD} ln -sf ${ETHERLAB_TARGET_PATH} /bin/ethercat /usr/bin/ethercat
You can’t perform that action at this time.
0 commit comments