sonic-buildimage/platform
Nazarii Hnydyn 72c506061c
[Mellanox] Improve FW upgrade logging: add syslog logger (#7221)
Basically mlnx-fw-upgrade.sh is used in two places:
1. https://github.com/Azure/sonic-buildimage/blob/201811/files/scripts/syncd.sh#L109
```bash
        /usr/bin/mst start
        /usr/bin/mlnx-fw-upgrade.sh
        /etc/init.d/sxdkernel start
        /sbin/modprobe i2c-dev
```
2. https://github.com/Azure/sonic-buildimage/blob/201811/device/mellanox/x86_64-mlnx_msn2700-r0/platform_reboot#L32
```bash
ParseArguments "$@"

${FW_UPGRADE_SCRIPT} --upgrade --verbose
EXIT_CODE="$?"
```

In first case the `stdout` is redirected to `syslog` directly by `systemd`.
Thus, the `syslog` logger is only required in second case.

#### Why I did it
* To improve ASIC/CPLD FW upgrade logging
* To improve CPLD upgrade time

#### How I did it
* Added `syslog` logger support
* Replaced `_pciconf0` -> `_pci_cr0` to reduce CPLD upgrade time

#### How to verify it
1. mlnx-fw-upgrade.sh --upgrade
2021-04-07 10:57:12 -07:00
..
barefoot [build]: wait for conflicts package to be uninstalled (#5039) 2021-01-20 23:06:13 -08:00
broadcom Fixed S6000 abrupt reboot in 201811 (#6923) 2021-03-12 11:09:54 -08:00
cavium [build]: wait for conflicts package to be uninstalled (#5039) 2021-01-20 23:06:13 -08:00
centec [build]: wait for conflicts package to be uninstalled (#5039) 2021-01-20 23:06:13 -08:00
generic add INSTALLS, LAZY_INSTALLS, DEPENDS targets to image build (#1159) 2017-11-16 12:27:03 -08:00
innovium [build]: wait for conflicts package to be uninstalled (#5039) 2021-01-20 23:06:13 -08:00
marvell [build]: wait for conflicts package to be uninstalled (#5039) 2021-01-20 23:06:13 -08:00
marvell-arm64/docker-syncd-mrvl/base_image_files [Monit] Change the full process name of syncd in the monit config file. (#4033) 2020-01-23 19:39:54 +00:00
marvell-armhf/docker-syncd-mrvl/base_image_files [Monit] Change the full process name of syncd in the monit config file. (#4033) 2020-01-23 19:39:54 +00:00
mellanox [Mellanox] Improve FW upgrade logging: add syslog logger (#7221) 2021-04-07 10:57:12 -07:00
nephos [build]: wait for conflicts package to be uninstalled (#5039) 2021-01-20 23:06:13 -08:00
p4 [docker-orchagent]: make build depends only on sairedis package (#6467) 2021-01-16 13:12:14 -08:00
template [201811 Monit] Enable monitoring of SWSS daemons (#5144) 2020-08-13 20:42:06 -07:00
vs [docker-orchagent]: make build depends only on sairedis package (#6467) 2021-01-16 13:12:14 -08:00