Bail out the huddly-updater upon losing the device in the middle of the update.

The situation may occur when the USB cable gets unplugged or
the USB power supply is low.

BUG=chromium:750834
TEST=Build guado package. Run on DUT. Shut the USB port down in the middle of the firmware upgrade, during buffer allocation, image uploading, image committing respectively.

Change-Id: I00dd6cabeb936ecda7de2c750844ab702305a837
Reviewed-on: https://chromium-review.googlesource.com/633845
Commit-Ready: Jiwoong Lee <porce@chromium.org>
Tested-by: Jiwoong Lee <porce@chromium.org>
Reviewed-by: Zhongze Hu <frankhu@google.com>
3 files changed
tree: d0ed24360356b6ffcc606c6c72e0cfc44c083490
  1. conf/
  2. src/
  3. .gitignore
  4. COMMIT-QUEUE.ini
  5. common.mk
  6. LICENSE
  7. Makefile
  8. OWNERS
  9. README.md
README.md

Huddly-updater is a utility to upgrade the huddly camera firmware.

Requirements

TODO: The GNU C library, libusb 1.0 and libudev are required.

Building

At the root of the repository,

$ make

Alternatively at Chromium OS development environment,

$ emerge-$${BOARD} huddly-updater

How to use

$ huddly-updater --help

TODO

It will also provide assistant tools to query the firmware version of the firmware installed in the huddly camera, that of a binary blob file.