From 371ed0ba37d5876d25fba2b84713f79512ab9b3b Mon Sep 17 00:00:00 2001 From: Trung Tran Date: Fri, 16 Nov 2018 11:01:17 -0800 Subject: mpm: add fpga githash to device info --- mpm/python/usrp_mpm/periph_manager/n3xx.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mpm') 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 -- cgit v1.2.3