[PATCH skeleton] Read vpd from motherboard and add it to the inventory

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu May 19 03:20:55 AEST 2016


From: Adriana Kobylak <anoo at us.ibm.com>

The motherboard eeprom is now modeled in the device tree in
Barreleye. Read its vpd with the rest of the eeproms and add
the info to the inventory.

Signed-off-by: Adriana Kobylak <anoo at us.ibm.com>
---
 bin/Barreleye.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index bee0d4e..98dce40 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -190,6 +190,13 @@ APPS = {
 		'process_name'    : 'phosphor-read-eeprom',
 		'args'            : ['--eeprom','/sys/bus/i2c/devices/0-0050/eeprom','--fruid','64'],
 	},
+	'motherboard_vpd' : {
+		'system_state'    : 'BMC_STARTING2',
+		'start_process'   : True,
+		'monitor_process' : False,
+		'process_name'    : 'phosphor-read-eeprom',
+		'args'            : ['--eeprom','/sys/bus/i2c/devices/4-0054/eeprom','--fruid','3'],
+	},
 	'exp_vpd' : {
 		'system_state'    : 'BMC_STARTING2',
 		'start_process'   : True,
-- 
2.8.2




More information about the openbmc mailing list