1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-06-18 22:36:01 +01:00

juno: use bootargs on hard_reset with u-boot

This commit is contained in:
Sergei Trofimov
2015-08-17 14:36:28 +01:00
parent 95c3f049fb
commit 205934d55b
4 changed files with 31 additions and 15 deletions
wlauto
common
android
linux
core
devices
android

@ -495,7 +495,7 @@ class Runner(object):
if self.context.reboot_policy.can_reboot and self.device.can('reset_power'):
self.logger.info('Attempting to hard-reset the device...')
try:
self.device.hard_reset()
self.device.boot(hard=True)
self.device.connect()
except DeviceError: # hard_boot not implemented for the device.
raise e
@ -553,7 +553,7 @@ class Runner(object):
except DeviceError: # device may be offline
if self.device.can('reset_power'):
with self._signal_wrap('INITIAL_BOOT'):
self.device.hard_reset()
self.device.boot(hard=True)
else:
raise DeviceError('Cannot connect to device for initial reboot; '
'and device does not support hard reset.')