Add force update option to logitech ptzpro2 firmware updater

Currently logitech ptzpro2 firmware updater only supports flashing
firmware with higher firmware version. Although not a common use
case, downgrading firmware is sometimes needed and there's no harm to
add such option.
Added a new flag --force which enables force firmware flash together with
--update.

Also, add print to stdout option in --log_to.

BUG=None
Test=Build and test on local setup. Verified can upgrade and downgrade
firmware.

Change-Id: I7dc0f14bae114b89b3a7c1acfa583bfef1802447
Reviewed-on: https://chromium-review.googlesource.com/710511
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Zhongze Hu <frankhu@google.com>
Reviewed-by: Zhongze Hu <frankhu@google.com>
10 files changed
tree: e51218265dc26ec4f22709a05b14fbcca59c7c40
  1. conf/
  2. seccomp/
  3. src/
  4. .gitignore
  5. common.mk
  6. LICENSE
  7. Makefile
  8. README.md
README.md

logitech-updater is a utility to upgrade logitech camera firmwares.

Requirements

The GNU C/C++ library is required.

Building

At the top level of the directory.

$ make

Alternatively at Chromium OS development environment,

$ emerge-${BOARD} logitech-updater

How to use

logitech updater currently includes the follow executables: ptzpro2-updater
$ ptzpro2-updater -h