diff --git a/platform/mellanox/mlnx-phy-debug-tools.mk b/platform/mellanox/mlnx-phy-debug-tools.mk new file mode 100644 index 00000000000..de4ed268e90 --- /dev/null +++ b/platform/mellanox/mlnx-phy-debug-tools.mk @@ -0,0 +1,9 @@ +# Mellanox phy debug tools scripts + +DEBUG_TOOLS_VERSION = 1.0.0 +MLNX_PHY_DEBUG_TOOLS = mlnx-phy-debug-tools_$(DEBUG_TOOLS_VERSION)_amd64.deb +$(MLNX_PHY_DEBUG_TOOLS)_SRC_PATH = $(PLATFORM_PATH)/mlnx-phy-debug-tools + +SONIC_DPKG_DEBS += $(MLNX_PHY_DEBUG_TOOLS) + +export MLNX_PHY_DEBUG_TOOLS diff --git a/platform/mellanox/mlnx-phy-debug-tools/debian/changelog b/platform/mellanox/mlnx-phy-debug-tools/debian/changelog new file mode 100644 index 00000000000..714ccb8c340 --- /dev/null +++ b/platform/mellanox/mlnx-phy-debug-tools/debian/changelog @@ -0,0 +1,6 @@ +mlnx-phy-debug-tools (1.0.0) unstable; urgency=low + + * Initial Release + + -- Noa Or Tue, 24 Nov 2020 12:30:00 +0300 + diff --git a/platform/mellanox/mlnx-phy-debug-tools/debian/compat b/platform/mellanox/mlnx-phy-debug-tools/debian/compat new file mode 100644 index 00000000000..ec635144f60 --- /dev/null +++ b/platform/mellanox/mlnx-phy-debug-tools/debian/compat @@ -0,0 +1 @@ +9 diff --git a/platform/mellanox/mlnx-phy-debug-tools/debian/control b/platform/mellanox/mlnx-phy-debug-tools/debian/control new file mode 100644 index 00000000000..a41c3f57f3a --- /dev/null +++ b/platform/mellanox/mlnx-phy-debug-tools/debian/control @@ -0,0 +1,9 @@ +Source: mlnx-phy-debug-tools +Priority: optional +Maintainer: Noa Or +Section: custom +Homepage: http://www.mellanox.com + +Package: mlnx-phy-debug-tools +Architecture: any +Description: Mellanox Phy debug tools for MSN3800 diff --git a/platform/mellanox/mlnx-phy-debug-tools/debian/copyright b/platform/mellanox/mlnx-phy-debug-tools/debian/copyright new file mode 100644 index 00000000000..1253944fa04 --- /dev/null +++ b/platform/mellanox/mlnx-phy-debug-tools/debian/copyright @@ -0,0 +1,13 @@ +Copyright (C) 2020. Mellanox Technologies, Ltd. ALL RIGHTS RESERVED. + + Licensed under the Apache License, Version 2.0 (the "License"); you may + not use this file except in compliance with the License. You may obtain + a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT + LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS + FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing + permissions and limitations under the License. diff --git a/platform/mellanox/mlnx-phy-debug-tools/debian/install b/platform/mellanox/mlnx-phy-debug-tools/debian/install new file mode 100644 index 00000000000..f2b9faf4c3b --- /dev/null +++ b/platform/mellanox/mlnx-phy-debug-tools/debian/install @@ -0,0 +1 @@ +usr/* /usr/ diff --git a/platform/mellanox/mlnx-phy-debug-tools/debian/rules b/platform/mellanox/mlnx-phy-debug-tools/debian/rules new file mode 100644 index 00000000000..0d41c994e47 --- /dev/null +++ b/platform/mellanox/mlnx-phy-debug-tools/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + + +%: + dh $@ diff --git a/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/flash_protected_fix b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/flash_protected_fix new file mode 100755 index 00000000000..7a1a0edacd7 Binary files /dev/null and b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/flash_protected_fix differ diff --git a/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_dump_rules b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_dump_rules new file mode 100755 index 00000000000..72a3ef62937 Binary files /dev/null and b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_dump_rules differ diff --git a/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_erase_eeprom b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_erase_eeprom new file mode 100755 index 00000000000..938dbb1f349 Binary files /dev/null and b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_erase_eeprom differ diff --git a/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_link_status b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_link_status new file mode 100755 index 00000000000..bfd48e59dd5 Binary files /dev/null and b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_link_status differ diff --git a/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_mdio_check b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_mdio_check new file mode 100755 index 00000000000..b999bcf24ab Binary files /dev/null and b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_mdio_check differ diff --git a/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_read_eeprom b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_read_eeprom new file mode 100755 index 00000000000..8e52c6f1692 Binary files /dev/null and b/platform/mellanox/mlnx-phy-debug-tools/usr/bin/mlnx-phy-debug-tools/gearbox_read_eeprom differ diff --git a/platform/mellanox/one-image.mk b/platform/mellanox/one-image.mk index 0f69b7335bf..02d2a0d603f 100644 --- a/platform/mellanox/one-image.mk +++ b/platform/mellanox/one-image.mk @@ -3,7 +3,7 @@ SONIC_ONE_IMAGE = sonic-mellanox.bin $(SONIC_ONE_IMAGE)_MACHINE = mellanox $(SONIC_ONE_IMAGE)_IMAGE_TYPE = onie -$(SONIC_ONE_IMAGE)_INSTALLS += $(SX_KERNEL) $(KERNEL_MFT) $(MFT_OEM) $(MFT) $(MLNX_HW_MANAGEMENT) +$(SONIC_ONE_IMAGE)_INSTALLS += $(SX_KERNEL) $(KERNEL_MFT) $(MFT_OEM) $(MFT) $(MLNX_HW_MANAGEMENT) $(MLNX_PHY_DEBUG_TOOLS) $(SONIC_ONE_IMAGE)_INSTALLS += $(SYSTEMD_SONIC_GENERATOR) ifeq ($(INSTALL_DEBUG_TOOLS),y) $(SONIC_ONE_IMAGE)_DOCKERS += $(SONIC_INSTALL_DOCKER_DBG_IMAGES) diff --git a/platform/mellanox/rules.mk b/platform/mellanox/rules.mk index f8700733c90..fd3517252c1 100644 --- a/platform/mellanox/rules.mk +++ b/platform/mellanox/rules.mk @@ -7,6 +7,7 @@ include $(PLATFORM_PATH)/mlnx-platform-api.mk include $(PLATFORM_PATH)/docker-syncd-mlnx.mk include $(PLATFORM_PATH)/docker-syncd-mlnx-rpc.mk include $(PLATFORM_PATH)/docker-saiserver-mlnx.mk +include $(PLATFORM_PATH)/mlnx-phy-debug-tools.mk include $(PLATFORM_PATH)/one-image.mk include $(PLATFORM_PATH)/libsaithrift-dev.mk include $(PLATFORM_PATH)/docker-ptf-mlnx.mk