aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_hwd.py
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_hwd.py
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_hwd.py')
-rwxr-xr-xmpm/python/usrp_hwd.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpm/python/usrp_hwd.py b/mpm/python/usrp_hwd.py
index d04d04927..a09ea95ed 100755
--- a/mpm/python/usrp_hwd.py
+++ b/mpm/python/usrp_hwd.py
@@ -174,6 +174,10 @@ def main():
if len(mpm.__githash__):
version_string += "-g" + mpm.__githash__
log.info("Launching USRP/MPM, version: %s", version_string)
+ if args.init_only:
+ # If --init-only is provided, we force disable init during boot time so
+ # we can properly time it in init_only().
+ args.default_args['skip_boot_init'] = "1"
if args.override_db_pids is not None:
log.warning('Overriding daughterboard PIDs!')
args.default_args['override_db_pids'] = args.override_db_pids