aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2018-11-16 11:01:17 -0800
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-11-16 15:13:30 -0800
commit371ed0ba37d5876d25fba2b84713f79512ab9b3b (patch)
tree47927ee9c2cd625dcc8be48a98212dc4efd5cd15
parent97935b15417697869b9633bc8fec552a57fb29ef (diff)
downloaduhd-371ed0ba37d5876d25fba2b84713f79512ab9b3b.tar.gz
uhd-371ed0ba37d5876d25fba2b84713f79512ab9b3b.tar.bz2
uhd-371ed0ba37d5876d25fba2b84713f79512ab9b3b.zip
mpm: add fpga githash to device info
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n3xx.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n3xx.py b/mpm/python/usrp_mpm/periph_manager/n3xx.py
index b741fc03f..57fc4b7c6 100644
--- a/mpm/python/usrp_mpm/periph_manager/n3xx.py
+++ b/mpm/python/usrp_mpm/periph_manager/n3xx.py
@@ -539,6 +539,8 @@ class n3xx(ZynqComponents, PeriphManagerBase):
device_info.update({
'fpga_version': "{}.{}".format(
*self.mboard_regs_control.get_compat_number()),
+ 'fpga_version_hash': "{:x}.{}".format(
+ *self.mboard_regs_control.get_git_hash()),
'fpga': self.updateable_components.get('fpga', {}).get('type', ""),
})
return device_info