Skip to content

Commit 6f8c315

Browse files
authored
[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 <[email protected]>
1 parent 71c5e74 commit 6f8c315

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

files/build_templates/per_namespace/syncd.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ExecStartPre=/usr/local/bin/syncd.sh start{% if multi_instance == 'true' %} %i{%
2626
ExecStart=/usr/local/bin/syncd.sh wait{% if multi_instance == 'true' %} %i{% endif %}
2727
ExecStop=/usr/local/bin/syncd.sh stop{% if multi_instance == 'true' %} %i{% endif %}
2828
{% if sonic_asic_platform == 'mellanox' %}
29-
TimeoutStartSec=150
29+
TimeoutStartSec=480
3030
{% endif %}
3131

3232
[Install]

files/scripts/syncd.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ function startplatform() {
2121
fi
2222
fi
2323

24+
debug "Starting Firmware update procedure"
2425
/usr/bin/mst start --with_i2cdev
2526
/usr/bin/mlnx-fw-upgrade.sh
2627
/etc/init.d/sxdkernel start
28+
debug "Firmware update procedure ended"
2729
fi
2830

2931
if [[ x"$WARM_BOOT" != x"true" ]]; then

0 commit comments

Comments
 (0)