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_hwd.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mpm/python/usrp_hwd.py') 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 -- cgit v1.2.3