sonic-buildimage/platform/mellanox
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
..
cpld [mellanox] update CPLD archive (#4349) 2020-04-03 03:47:40 -07:00
docker-saiserver-mlnx [docker-saiserver]: build docker-saiserver (#2244) 2018-11-14 01:15:31 -08:00
docker-syncd-mlnx [Monit] Change the full process name of syncd in the monit config file. (#4033) 2020-01-23 19:39:54 +00:00
docker-syncd-mlnx-rpc [docker-syncd-mlnx-rpc]: Configure send and receive buffers for PTF agent (#1157) 2017-11-17 00:32:36 -08:00
hw-management [submodule] update mellanox hw-mgmgt pointer (V.2.0.0061) (#2592) 2019-02-22 16:21:35 +00:00
issu-version [mellanox|ffb] ISSU version check (#2437) 2019-01-22 22:41:42 +00:00
mft [Mellanox ] Updated MFT package (#3540) 2019-10-01 16:54:24 -07:00
mlnx-platform-api [Mellanox] enhance the reboot cause handling on 201811 (#3253) 2019-08-02 09:58:53 -07:00
mlnx-sai [mellanox]: fix SAI build makefile (#29) 2018-08-11 09:09:03 +00:00
mlnx-sfpd [Mellanox] Fix the typo in mlnx-sfpd (#3426) 2019-09-10 14:38:00 -07:00
sdk-src [mlnx] add option to build sdk from sources (#4378) 2020-04-13 08:29:54 -07:00
.gitignore [Mellanox] Use MAC from EEPROM for PortChannels and VLAN Interfaces (#1793) 2018-07-23 15:51:03 -07:00
cpld.mk [mellanox]: Add SSD FW update tool (#4352) 2020-04-13 18:12:16 +03:00
docker-orchagent-mlnx.mk 1) Build debug docker image for each docker (#3104) 2019-07-09 08:55:03 -07:00
docker-ptf-mlnx.mk [docker-saiserver]: build docker-saiserver (#2244) 2018-11-14 01:15:31 -08:00
docker-saiserver-mlnx.mk [docker-saiserver]: build docker-saiserver (#2244) 2018-11-14 01:15:31 -08:00
docker-syncd-mlnx-rpc.mk [build]: Fix docker-syncd-<platform>-rpc.mk (#3174) 2019-07-17 08:41:22 -07:00
docker-syncd-mlnx.mk [Services] Allow monit system tool to monitor the critical processes status running in various SONiC containers. (#3940) 2020-01-11 01:27:34 +00:00
fw.mk [mellanox]: Add SSD FW update tool (#4352) 2020-04-13 18:12:16 +03:00
hw-management-wd.mk [mellanox]: Add SSD FW update tool (#4352) 2020-04-13 18:12:16 +03:00
hw-management-wd.sh [mellanox] add hardware watchdog script (#4274) 2020-03-31 20:34:55 -07:00
hw-management.mk [mellanox]: Update recipe for hw-mgmt according to latest changes (#2128) 2018-10-08 18:33:44 -07:00
issu-version.mk [mellanox]: Add SSD FW update tool (#4352) 2020-04-13 18:12:16 +03:00
libsaithrift-dev.mk change libsaithrift version to 0.9.4 2019-07-02 07:12:26 +00:00
mft.mk [Mellanox] Update MFT version to 4.13.5 (#4199) 2020-03-02 18:01:35 +00:00
mlnx-ffb.mk [mellanox]: Add SSD FW update tool (#4352) 2020-04-13 18:12:16 +03:00
mlnx-ffb.sh [mellanox] Fix in mlnx-ffb.sh (#2676) 2019-03-19 03:06:34 +00:00
mlnx-fw-upgrade.j2 [Mellanox] Improve FW upgrade logging: add syslog logger (#7221) 2021-04-07 10:57:12 -07:00
mlnx-platform-api.mk [Mellanox] Backporting reboot cause to 201811 (#3198) 2019-07-23 07:05:35 -07:00
mlnx-sai.mk [Mellanox] Update SDK kernel package v4.3.1646 with kernel v4.9.0-14 (#6647) 2021-02-02 16:35:19 -08:00
mlnx-sfpd.mk [docker-syncd-mlnx] add new mlnx-sfpd daemon to docker-syncd-mlnx (#1841) 2018-07-03 16:42:50 -07:00
mlnx-ssd-fw-update.mk [mellanox]: Add SSD FW update tool (#4352) 2020-04-13 18:12:16 +03:00
mlnx-ssd-fw-update.sh [mellanox]: Add SSD FW update tool (#4352) 2020-04-13 18:12:16 +03:00
one-image.mk Extend debug image build ability to all platforms. (#3134) (#4524) 2020-05-04 09:48:40 -07:00
platform.conf one image implementation (#215) 2017-01-29 11:33:33 -08:00
rules.mk [build]: wait for conflicts package to be uninstalled (#5039) 2021-01-20 23:06:13 -08:00
sdk.mk [Mellanox] Update SDK repo pointer for kernel package v4.3.1646 with kernel v4.9.0-14 (#6719) 2021-02-08 08:33:44 -08:00