Skip to content

Commit

Permalink
[mellanox]: Fix problem with system EEPROM in "hw-mgmt"
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
  • Loading branch information
Volodymyr Samotiy committed Aug 16, 2018
1 parent c1e17c3 commit 88e0b1c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From 2f70f5df445820fb86e3bd7f95707e0fb97b553f Mon Sep 17 00:00:00 2001
From: Volodymyr Samotiy <volodymyrs@mellanox.com>
Date: Thu, 16 Aug 2018 17:21:37 +0300
Subject: Add modprobe config for "at24" module

Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
---
usr/etc/modprobe.d/mellanox-system-whitelist.conf | 1 +
1 file changed, 1 insertion(+)
create mode 100644 usr/etc/modprobe.d/mellanox-system-whitelist.conf

diff --git a/usr/etc/modprobe.d/mellanox-system-whitelist.conf b/usr/etc/modprobe.d/mellanox-system-whitelist.conf
new file mode 100644
index 0000000..a3eef57
--- /dev/null
+++ b/usr/etc/modprobe.d/mellanox-system-whitelist.conf
@@ -0,0 +1 @@
+options at24 io_limit=32
--
1.9.1

Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@ new file mode 100644
index 0000000..d18916d
--- /dev/null
+++ b/debian/hw-management.service
@@ -0,0 +1,11 @@
@@ -0,0 +1,10 @@
+[Unit]
+Description=Mellanox Hardware Management
+
+[Service]
+Type=oneshot
+EnvironmentFile=/host/machine.conf
+ExecStart=/bin/bash -c "/etc/mlnx/mlnx-hw-management start"
+ExecStop=/bin/bash -c "/etc/mlnx/mlnx-hw-management stop"
+
+[Install]
+WantedBy=multi-user.target
Expand Down

0 comments on commit 88e0b1c

Please sign in to comment.