aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSugandha Gupta <sugandha.gupta@ettus.com>2019-02-19 16:39:59 -0800
committerMartin Braun <martin.braun@ettus.com>2019-02-19 18:12:11 -0800
commiteffa0dacad9c1d42a97bb204939946677947d32b (patch)
tree713aca7dbd17df084c17a07be5b24eed8e544360
parent921da10b10af95082671af9050c862d3a6b282ea (diff)
downloaduhd-effa0dacad9c1d42a97bb204939946677947d32b.tar.gz
uhd-effa0dacad9c1d42a97bb204939946677947d32b.tar.bz2
uhd-effa0dacad9c1d42a97bb204939946677947d32b.zip
e320: add fpga_version_hash to e320 device info
Fixes uhd_usrp_probe FPGA version githash to report the correct hash and not 'UNKNOWN'.
-rw-r--r--mpm/python/usrp_mpm/periph_manager/e320.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/e320.py b/mpm/python/usrp_mpm/periph_manager/e320.py
index dbcaead2a..aae4a2868 100644
--- a/mpm/python/usrp_mpm/periph_manager/e320.py
+++ b/mpm/python/usrp_mpm/periph_manager/e320.py
@@ -441,6 +441,8 @@ class e320(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