diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-05-07 18:15:39 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-06-08 13:27:13 -0700 |
commit | cd716e264e6e9243d34d49979a5d42214ecbbc44 (patch) | |
tree | 252bfabae910a0b3c05fb3da93368b5db779c621 /mpm/python/usrp_mpm/periph_manager/base.py | |
parent | 30cc2e99827a689fc8ace112e72f864173eee1a5 (diff) | |
download | uhd-cd716e264e6e9243d34d49979a5d42214ecbbc44.tar.gz uhd-cd716e264e6e9243d34d49979a5d42214ecbbc44.tar.bz2 uhd-cd716e264e6e9243d34d49979a5d42214ecbbc44.zip |
mpm: n3xx: Derive product key programmatically
Since there is no simple mapping from an arbitrary tuple of mboard- and
dboard info dictionaries, we use generate_device_info() to figure out
the product key.
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/base.py')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/base.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index b7debf82c..7d811af3f 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -176,7 +176,12 @@ class PeriphManagerBase(object): .format(self.mboard_info.get('serial', 'n/a'))) dboard_infos = self._get_dboard_eeprom_info() self.device_info = \ - self.generate_device_info(self.mboard_info, dboard_infos) + self.generate_device_info( + self._eeprom_head, + self.mboard_info, + dboard_infos + ) + self.log.warning(self.device_info) self._default_args = self._update_default_args(args) self.log.debug("Using default args: {}".format(self._default_args)) self._init_mboard_overlays(self._eeprom_head, self._default_args) @@ -255,7 +260,6 @@ class PeriphManagerBase(object): ) ) raise RuntimeError("Invalid PID found in EEPROM.") - mboard_info['product'] = self.pids[eeprom_head['pid']] if 'rev' in eeprom_head: try: rev_numeric = int(eeprom_head.get('rev')) |