Speedup sis-updater by adding parameter to assume a single device

The touch is not responsive until sis-updater has completed, so
it is important to keept the runtime as low as possible when
no upgrade is needed. This cuts about 2 seconds of runtime.

BUG=b:65213465
TEST=Tested --recovery manually and no-upgrade using udev on CFM

Change-Id: Ifbdc4c85aa621a8e5f0c26c0281d83ada462c7f9
Reviewed-on: https://chromium-review.googlesource.com/644467
Commit-Ready: Stefan Adolfsson <sadolfsson@chromium.org>
Tested-by: Zhongze Hu <frankhu@chromium.org>
Reviewed-by: Zhongze Hu <frankhu@google.com>
3 files changed
tree: 487d01f1c36d1e203b3000957e51348c9c00eb5c
  1. conf/
  2. src/
  3. .gitignore
  4. common.mk
  5. LICENSE
  6. Makefile
  7. README.md
README.md

SiS Firmware Updater

Description

The code was proviced by SiS and modified by Google. Modifications include:

  • Cleaning the code according to Google C++ coding style. Eliminating compiling errors.
  • Adding a feature that the updater can take the device name from input parameters. Blinded search is only required when input device name is invalid.
  • Adding a feature that the updater will compare FW version before actual update. If the FW versions on device and in Chrome OS are same, the updater will terminate.
  • Adding a input flag specifying whether the device is in recovery mode (FW update fails last time). The flag value is determined by VID from udev rule.

Requirements

On Linux, should run as root.

Build

At the root of the repository: make.

Under Chrome OS development enviroment: emerge-${BOARD} sis-updater.

How to use

Just run ./sis-updater.