From b83e51856d3e613bdab4dbdbc07bb64cd480e575 Mon Sep 17 00:00:00 2001 From: Patrick Bellasi Date: Mon, 12 Oct 2015 12:37:11 +0100 Subject: [PATCH] target: fix 'bl' module initialisation When "load_default_modules" is set to False at target initialisation time but the "bl" module is explicitly required, the initialization of this module fails because the system as not yet been identified as a big.LITTLE. This identification is performed by platform.update_from_target. This patch post-pone modules initialisation at the end of the connection method to ensure that all the required information are available at modules probe time. Signed-off-by: Patrick Bellasi --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index 9eabb7f..7559b6c 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -177,8 +177,8 @@ class Target(object): tid = id(threading.current_thread()) self._connections[tid] = self.get_connection(timeout=timeout) self.busybox = self.get_installed('busybox') - self._update_modules('connected') self.platform.update_from_target(self) + self._update_modules('connected') if self.platform.big_core and self.load_default_modules: self._install_module(get_module('bl'))