aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-07-17 11:58:57 -0700
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-07-18 17:55:50 -0700
commit118e7a21bf95e82a13e4916016123695c7327062 (patch)
treeb38543d31e7e2c8f74f416ac47a7f96890b0ebc8 /mpm/python/usrp_mpm
parenta308d2e02479d671d5bf0618907b484c47168392 (diff)
downloaduhd-118e7a21bf95e82a13e4916016123695c7327062.tar.gz
uhd-118e7a21bf95e82a13e4916016123695c7327062.tar.bz2
uhd-118e7a21bf95e82a13e4916016123695c7327062.zip
mpm: n3xx: Init device on boot
Specify skip_boot_init=1 to not init during boot. This will increase boot time for an N310, typically by around 15 seconds.
Diffstat (limited to 'mpm/python/usrp_mpm')
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n3xx.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n3xx.py b/mpm/python/usrp_mpm/periph_manager/n3xx.py
index bec7aa6fe..783ea4ca2 100644
--- a/mpm/python/usrp_mpm/periph_manager/n3xx.py
+++ b/mpm/python/usrp_mpm/periph_manager/n3xx.py
@@ -197,6 +197,11 @@ class n3xx(ZynqComponents, PeriphManagerBase):
self.log.error("Failed to initialize motherboard: %s", str(ex))
self._initialization_status = str(ex)
self._device_initialized = False
+ try:
+ if not args.get('skip_boot_init', False):
+ self.init(args)
+ except Exception as ex:
+ self.log.warning("Failed to init device on boot!")
def _check_fpga_compat(self):
" Throw an exception if the compat numbers don't match up "