From 80b048d4d1a36efa6c698705fa1af8edddc65295 Mon Sep 17 00:00:00 2001 From: Lior Avramov <73036155+liorghub@users.noreply.github.com> Date: Thu, 11 Feb 2021 12:53:36 +0200 Subject: [PATCH] [systemd] Increase syncd startup script timeout to support FW upgrade on init. (#6709) **- Why I did it** To support FW upgrade on init. **- How I did it** Change timeout value **- How to verify it** I manually changed ASIC and Gearbox FW followed by hard reset in order for FW upgrade to take place on init. Signed-off-by: liora --- files/build_templates/per_namespace/syncd.service.j2 | 2 +- files/scripts/syncd.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/files/build_templates/per_namespace/syncd.service.j2 b/files/build_templates/per_namespace/syncd.service.j2 index 0c9bf073e9..8e0029a294 100644 --- a/files/build_templates/per_namespace/syncd.service.j2 +++ b/files/build_templates/per_namespace/syncd.service.j2 @@ -26,7 +26,7 @@ ExecStartPre=/usr/local/bin/syncd.sh start{% if multi_instance == 'true' %} %i{% ExecStart=/usr/local/bin/syncd.sh wait{% if multi_instance == 'true' %} %i{% endif %} ExecStop=/usr/local/bin/syncd.sh stop{% if multi_instance == 'true' %} %i{% endif %} {% if sonic_asic_platform == 'mellanox' %} -TimeoutStartSec=150 +TimeoutStartSec=480 {% endif %} [Install] diff --git a/files/scripts/syncd.sh b/files/scripts/syncd.sh index 22fa992b8e..95c3e3841b 100755 --- a/files/scripts/syncd.sh +++ b/files/scripts/syncd.sh @@ -21,9 +21,11 @@ function startplatform() { fi fi + debug "Starting Firmware update procedure" /usr/bin/mst start --with_i2cdev /usr/bin/mlnx-fw-upgrade.sh /etc/init.d/sxdkernel start + debug "Firmware update procedure ended" fi if [[ x"$WARM_BOOT" != x"true" ]]; then