1. Article purpose
This article describes how to perform power cycle with Ethernet switch.
Note that by adding the software expansion package mentioned below, the Ethernet switch is automatically configured at the startup of the board. Through this article, the different steps, processed by the Ethernet switch package, are introduced, the user can then adapt to his own purpose.
2. Prerequisites
This article necessarily needs and assumes that the X-LINUX-TSNSWCH expansion package is installed on top of a OpenSTLinux distribution.
3. Ethernet switch
There is a restriction with Ethernet switch. Power suspend/resume is not supported by Ethernet switch So if you want to perform power cycle with Ethernet switch, this is the procedure :
Need to unload Ethernet switch drivers:
modprobe -r edgx_pfm_lkm echo 482c0000.eth1 > /sys/bus/platform/drivers/stm32-dwmac/unbind modprobe -r stm32_deip
Perform your sequence of power cycle:
systemctl stop st-m33firmware-load.service systemctl suspend
Need to reload and init Ethernet switch drivers:
echo 482c0000.eth1 > /sys/bus/platform/drivers/stm32-dwmac/bind modprobe stm32_deip modprobe edgx_pfm_lkm /usr/sbin/ttt-ip-common.sh start /usr/sbin/ttt-ip-init-tsn-networkd-systemd.sh start
4. References