From fd7d85b1d2679156cb019e263b881703a1cc4b1b Mon Sep 17 00:00:00 2001 From: Sugandha Gupta Date: Tue, 19 Feb 2019 16:39:59 -0800 Subject: e320: add fpga_version_hash to e320 device info Fixes uhd_usrp_probe FPGA version githash to report the correct hash and not 'UNKNOWN'. --- mpm/python/usrp_mpm/periph_manager/e320.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3