Accommodate minijail0's restriction in huddly udev rule

The huddly updater fails to access the huddly device booting
in a different mode with a different PID, when it is invoked
from udev rule via minijail0. See the Bug for detail.

This CL is to workaround this permission restriction.
Invoke huddly-updater with separate command line option (thus separate
work flow) upon detection of different mode of the huddly camera device.

--prep option will perform upgrade eligibility check, and switch to bootloader
bootloader mode if necessary.
--burn option will flash the device.

BUG=chromium:724200
TEST=Build package for Guado board. Run on CFM.
CQ-DEPEND=CL:509033

Change-Id: I6e382afc47e32623e44d54ebe12ecc75f08cb4e4
Reviewed-on: https://chromium-review.googlesource.com/509271
Commit-Ready: Jiwoong Lee <porce@chromium.org>
Tested-by: Jiwoong Lee <porce@chromium.org>
Reviewed-by: Simon Que <sque@chromium.org>
1 file changed
tree: 7b763a30cdadede5fe21d57160b5da653d6acf45
  1. conf/
  2. src/
  3. .gitignore
  4. common.mk
  5. LICENSE
  6. Makefile
  7. 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.