Skip to content

Commit 986a857

Browse files
Volodymyr Samotiylguohan
authored andcommitted
[mellanox]: Fix problem with system EEPROM in "hw-mgmt" (#1938)
Signed-off-by: Volodymyr Samotiy <[email protected]>
1 parent fd5bce5 commit 986a857

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
From 2f70f5df445820fb86e3bd7f95707e0fb97b553f Mon Sep 17 00:00:00 2001
2+
From: Volodymyr Samotiy <[email protected]>
3+
Date: Thu, 16 Aug 2018 17:21:37 +0300
4+
Subject: Add modprobe config for "at24" module
5+
6+
Signed-off-by: Volodymyr Samotiy <[email protected]>
7+
---
8+
usr/etc/modprobe.d/mellanox-system-whitelist.conf | 1 +
9+
1 file changed, 1 insertion(+)
10+
create mode 100644 usr/etc/modprobe.d/mellanox-system-whitelist.conf
11+
12+
diff --git a/usr/etc/modprobe.d/mellanox-system-whitelist.conf b/usr/etc/modprobe.d/mellanox-system-whitelist.conf
13+
new file mode 100644
14+
index 0000000..a3eef57
15+
--- /dev/null
16+
+++ b/usr/etc/modprobe.d/mellanox-system-whitelist.conf
17+
@@ -0,0 +1 @@
18+
+options at24 io_limit=32
19+
--
20+
1.9.1
21+

platform/mellanox/hw-management/Add-systemd-service-config.patch

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,14 @@ new file mode 100644
2929
index 0000000..d18916d
3030
--- /dev/null
3131
+++ b/debian/hw-management.service
32-
@@ -0,0 +1,11 @@
32+
@@ -0,0 +1,10 @@
3333
+[Unit]
3434
+Description=Mellanox Hardware Management
3535
+
3636
+[Service]
3737
+Type=oneshot
3838
+EnvironmentFile=/host/machine.conf
3939
+ExecStart=/bin/bash -c "/etc/mlnx/mlnx-hw-management start"
40-
+ExecStop=/bin/bash -c "/etc/mlnx/mlnx-hw-management stop"
4140
+
4241
+[Install]
4342
+WantedBy=multi-user.target

0 commit comments

Comments
 (0)