~terceiro/lava-dispatcher/non-root

« back to all changes in this revision

Viewing changes to lava_dispatcher/device/k3v2.py

  • Committer: Neil Williams
  • Date: 2013-07-18 07:35:51 UTC
  • mfrom: (637.1.40 lava-dispatcher)
  • Revision ID: neil.williams@linaro.org-20130718073551-d7yvzq8isoyrya93
Neil Williams 2013-07-17 Fix issues highlighted during review of merge
  proposal.
Neil Williams 2013-07-17 Add PEP8 fixes for doc/ and setup.py
Neil Williams 2013-07-16 PEP8 compliance and prevent local variables
  shadowing keywords.
Neil Williams 2013-07-16 PEP8 compliance.
Neil Williams 2013-07-16 PEP8 compliance and fix mutable default arguments
Neil Williams 2013-07-16 PEP8 compliance.
Neil Williams 2013-07-16 PEP8 Add missing default argument and allow
 proc to resolve locally.
Neil Williams 2013-07-16 PEP8 compliance.
Neil Williams 2013-07-16 Add default argument added in base class.
Neil Williams 2013-07-16 PEP8 compliance.
Neil Williams 2013-07-16 PEP8 compliance and add base class definitions
Neil Williams 2013-07-16 PEP8 compliance.
Neil Williams 2013-07-16 Typo in docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from lava_dispatcher.utils import (
29
29
    connect_to_serial,
30
30
)
 
31
from lava_dispatcher.errors import (
 
32
    CriticalError,
 
33
)
 
34
 
31
35
 
32
36
class K3V2Target(FastbootTarget):
33
37
 
41
45
        userdata = self._get_image(userdata)
42
46
 
43
47
        self.fastboot.enter()
44
 
        # Need to sleep and wait for the first stage bootloaders to initialize. 
 
48
        # Need to sleep and wait for the first stage bootloaders to initialize.
45
49
        sleep(10)
46
50
        self.fastboot.flash('boot', boot)
47
51
        self.fastboot.flash('system', system)
59
63
        self.fastboot.enter()
60
64
        self.fastboot('reboot')
61
65
        proc = connect_to_serial(self.context)
62
 
        proc.expect(self.context.device_config.master_str,
63
 
                          timeout=300)
 
66
        proc.expect(self.context.device_config.master_str, timeout=300)
64
67
 
65
68
        # The k3v2 does not yet have adb support, so we do not wait for adb.
66
69
        #self._adb('wait-for-device')
67
70
 
68
71
        self._booted = True
69
 
        proc.sendline("") # required to put the adb shell in a reasonable state
 
72
        proc.sendline("")  # required to put the adb shell in a reasonable state
70
73
        proc.sendline("export PS1='%s'" % self.deployment_data['TESTER_PS1'])
71
74
        self._runner = self._get_runner(proc)
72
75