-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mellanox]: Update hw-mgmt pakcage to V.2.0.0.0172 (#2798)
- Loading branch information
Showing
5 changed files
with
55 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
platform/mellanox/hw-management/0001-Make-hw-mgmt-SimX-compatiable.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
From 051938b7c49cc18aaddd699939353f591554d635 Mon Sep 17 00:00:00 2001 | ||
From: Mykola Faryma <[email protected]> | ||
Date: Wed, 3 Apr 2019 14:09:26 +0000 | ||
Subject: [PATCH] Make hw-mgmt SimX compatiable. | ||
|
||
Signed-off-by: Mykola Faryma <[email protected]> | ||
--- | ||
usr/usr/bin/hw-management.sh | 29 +++++++++++++++++++++++++++++ | ||
1 file changed, 29 insertions(+) | ||
|
||
diff --git a/usr/usr/bin/hw-management.sh b/usr/usr/bin/hw-management.sh | ||
index fdb3013..68da9bc 100755 | ||
--- a/usr/usr/bin/hw-management.sh | ||
+++ b/usr/usr/bin/hw-management.sh | ||
@@ -646,6 +646,35 @@ do_chip_down() | ||
/usr/bin/hw-management-thermal-events.sh change hotplug_asic down %S %p | ||
} | ||
|
||
+handle_simx() | ||
+{ | ||
+ local -r onie_platform="$(cat /host/machine.conf | grep onie_platform | cut -d= -f2)" | ||
+ | ||
+ local -r syseeprom_cache_path="/var/cache/sonic/decode-syseeprom/syseeprom_cache" | ||
+ local -r syseeprom_hex_path="/usr/share/sonic/device/${onie_platform}/syseeprom.hex" | ||
+ local -r syseeprom_vpd_path="/var/run/hw-management/eeprom/vpd_info" | ||
+ | ||
+ case $ACTION in | ||
+ start) | ||
+ /bin/bash -c "/bin/rm -f ${syseeprom_cache_path}" | ||
+ /bin/bash -c "/bin/mkdir -p ${eeprom_path}" | ||
+ /bin/bash -c "/usr/bin/xxd -r -p ${syseeprom_hex_path} ${syseeprom_vpd_path}" | ||
+ ;; | ||
+ stop) | ||
+ /bin/bash -c "/bin/rm -fr ${hw_management_path}" | ||
+ ;; | ||
+ *) | ||
+ echo "Usage: `basename $0` {start|stop}" | ||
+ exit 1 | ||
+ ;; | ||
+ esac | ||
+} | ||
+ | ||
+if [[ "$(cat /sys/devices/virtual/dmi/id/chassis_vendor)" = "QEMU" ]]; then | ||
+ handle_simx | ||
+ exit 0 | ||
+fi | ||
+ | ||
case $ACTION in | ||
start) | ||
do_start | ||
-- | ||
1.9.1 | ||
|
51 changes: 0 additions & 51 deletions
51
platform/mellanox/hw-management/0001-Suspend-thermal-control-by-default.patch
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
platform/mellanox/hw-management/0002-make-hw-mgmt-SimX-compatiable.patch
This file was deleted.
Oops, something went wrong.
Submodule hw-mgmt
updated
12 files