From 118e7a21bf95e82a13e4916016123695c7327062 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 17 Jul 2018 11:58:57 -0700 Subject: 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. --- mpm/python/usrp_mpm/periph_manager/n3xx.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mpm/python/usrp_mpm') 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 " -- cgit v1.2.3