Implement UsbDevice class

BUG=chromium:710302
TEST=Build huddly-updater package for Guado board. Read peripheral fw version.
UsbDevice class handles the usb device specified by the vendor ID and
product ID. It lists up the vendor specific commands as VendorRequest
enum. It implements vendor specific USB read/write/boot operations.

This is the first set, and implements basic read, and querying the
firmware version.

Change-Id: I355fb5b02ac448da28fad9aaa99b653d56636c52
Reviewed-on: https://chromium-review.googlesource.com/483141
Commit-Ready: Jiwoong Lee <porce@chromium.org>
Tested-by: Jiwoong Lee <porce@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
8 files changed
tree: 70d2d1aba7d594c9b6eacfd359c820704e1aa97e
  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.