[MIMO] pass detected device to sis-updater

If multiple devices are connected udev will start multiple instances of
sis-updater simultaneously during boot. Udev knows for which device the
sis-updater should run. Passing the device directly prevents these instances
to interfere with each other.

BUG=b:142376670
TEST=multiple reboots and checking /var/log/messages for behavior of
sis-updater

Change-Id: I7e95ab4039315ade473ee75f4acb236a62ce82bb
Reviewed-on: https://chromium-review.googlesource.com/1855818
Tested-by: Carsten Schiemann <cschiemann@google.com>
Commit-Ready: Matthew Ziegelbaum <ziegs@chromium.org>
Commit-Ready: Carsten Schiemann <cschiemann@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Matthew Ziegelbaum <ziegs@chromium.org>
1 file changed
tree: b251b7533f2d14e1b65b9f471cb9845041d994ce
  1. conf/
  2. src/
  3. .gitignore
  4. common.mk
  5. LICENSE
  6. Makefile
  7. OWNERS
  8. 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.