Lines Matching refs:host
69 def _is_firmware_testing_device(host): argument
80 info = host.host_info_store.get()
84 def _is_firmware_update_supported(host): argument
99 return not _is_firmware_testing_device(host)
102 def _get_available_firmware(host, model): argument
109 result = host.run('chromeos-firmwareupdate --manifest', ignore_status=True)
133 def verify(self, host): argument
134 if not _is_firmware_testing_device(host):
144 host.run(cmd)
151 rv = host.run(cmd % (c, c), ignore_status=True)
157 host.run('rm -rf /tmp/verify_firmware')
174 def _get_faft_stable_build(self, host): argument
175 info = host.host_info_store.get()
178 def _get_os_stable_build(self, host): argument
180 return host.get_cros_repair_image_name()
182 def _run_faft_repair(self, host, build): argument
183 host.firmware_install(build)
185 def _run_general_repair(self, host, build): argument
190 if host._servo_host.validate_image_usbkey() != build:
194 ec_image, bios_image = host._servo_host.prepare_repair_firmware_image()
198 info = host.host_info_store.get()
209 if host.health_profile:
210 host.health_profile.set_firmware_stable_version(build)
214 host.servo.program_ec(ec_image, copy_image=False)
217 host._servo_host.flash_ap_firmware_via_servo(bios_image)
220 host.servo.get_power_state_controller().reset()
221 host.wait_up(timeout=host.BOOT_TIMEOUT)
224 host.run('/usr/share/vboot/bin/set_gbb_flags.sh 0', ignore_status=True)
225 host.run('crossystem disable_dev_request=1', ignore_status=True)
226 host.reboot()
234 def repair(self, host): argument
235 repair_utils.require_servo(host, ignore_state=True)
236 build = self._get_faft_stable_build(host)
238 self._run_faft_repair(host, build)
242 build = self._get_os_stable_build(host)
247 self._run_general_repair(host, build)
249 def _is_applicable(self, host): argument
250 return _is_firmware_testing_device(host)
264 def repair(self, host): argument
265 repair_utils.require_servo(host, ignore_state=True)
266 build = self._get_os_stable_build(host)
271 self._run_general_repair(host, build)
273 def _is_applicable(self, host): argument
274 if _is_firmware_testing_device(host):
276 if not host.servo:
279 ' minimum requirement to flash firmware.', host.hostname)
283 dhp = host.health_profile
299 candidate_build = self._get_os_stable_build(host)
306 ' no need to retry.', flashed_build, host.hostname)
359 def _get_rw_firmware(host): argument
360 result = host.run('crossystem fwid', ignore_status=True)
391 def verify(self, host): argument
393 if not _is_firmware_update_supported(host):
396 info = host.host_info_store.get()
420 current_firmware = self._get_rw_firmware(host)
428 available_firmware = _get_available_firmware(host, info.model)
442 host.run('chromeos-firmwareupdate --mode=autoupdate')
443 host.reboot()
450 final_firmware = self._get_rw_firmware(host)