Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: pack_dist/updater.sh

Issue 6792007: chromeos-firmware: fix: "autoupdate mode" never runs (TBR) (Closed) Base URL: ssh://gitrw.chromium.org:9222/firmware.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 # For factory and auto update, after shell-ball self-extracts, this script is 7 # For factory and auto update, after shell-ball self-extracts, this script is
8 # called to update BIOS and EC firmware as per how many files are extracted. 8 # called to update BIOS and EC firmware as per how many files are extracted.
9 # To simply design, THIS SCRIPT MUST BE EXECUTED IN A R/W EXCLUSIVE TEMP FOLDER. 9 # To simply design, THIS SCRIPT MUST BE EXECUTED IN A R/W EXCLUSIVE TEMP FOLDER.
10 # AND ALL FILENAMES FOR INPUT AND OUTPUT MUST NOT CONTAIN SPACE. 10 # AND ALL FILENAMES FOR INPUT AND OUTPUT MUST NOT CONTAIN SPACE.
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 if [ "$(cros_get_prop ecfw_act)" = "RO" ]; then 359 if [ "$(cros_get_prop ecfw_act)" = "RO" ]; then
360 verbose_msg "EC was boot by RO and may need an update/recovery." 360 verbose_msg "EC was boot by RO and may need an update/recovery."
361 if [ "${FLAGS_update_ec}" = "${FLAGS_TRUE}" ]; then 361 if [ "${FLAGS_update_ec}" = "${FLAGS_TRUE}" ]; then
362 cros_set_startup_update_tries 6 362 cros_set_startup_update_tries 6
363 else 363 else
364 debug_msg "Although EC was boot from RO, updating for EC is disabled." 364 debug_msg "Although EC was boot from RO, updating for EC is disabled."
365 fi 365 fi
366 fi 366 fi
367 367
368 if [ "${FLAGS_update_main}" = "${FLAGS_TRUE}" ]; then 368 if [ "${FLAGS_update_main}" = "${FLAGS_TRUE}" ]; then
369 verbose_msg "Developer firmware detected, skip firmware updating."
370 else
371 local mainfw_act="$(cros_get_prop mainfw_act)" 369 local mainfw_act="$(cros_get_prop mainfw_act)"
372 # Copy firmware to the spare slot. 370 # Copy firmware to the spare slot.
373 # flashrom will check if we really need to update the bits 371 # flashrom will check if we really need to update the bits
374 if [ "$mainfw_act" = "A" ]; then 372 if [ "$mainfw_act" = "A" ]; then
375 dup2_mainfw "$SLOT_A" "$SLOT_B" 373 dup2_mainfw "$SLOT_A" "$SLOT_B"
376 elif [ "$mainfw_act" = "B" ]; then 374 elif [ "$mainfw_act" = "B" ]; then
377 dup2_mainfw "$SLOT_B" "$SLOT_A" 375 dup2_mainfw "$SLOT_B" "$SLOT_A"
378 else 376 else
379 err_die "bootok: unexpected active firmware ($mainfw_act)..." 377 err_die "bootok: unexpected active firmware ($mainfw_act)..."
380 fi 378 fi
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 601
604 # Parse command line 602 # Parse command line
605 FLAGS "$@" || exit 1 603 FLAGS "$@" || exit 1
606 eval set -- "$FLAGS_ARGV" 604 eval set -- "$FLAGS_ARGV"
607 605
608 # Exit on error 606 # Exit on error
609 set -e 607 set -e
610 608
611 # Main Entry 609 # Main Entry
612 main 610 main
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698