Add more diagnostic commands

Add additional commands that should be run by default when diagnosing.
The command timeout also needs to be increased since some of the new
commands takes longer to complete.

BUG=b:35860435
TEST=Attached an Atrus device to a guado and ran `atrusctl diagnose` and
verified that the result of all commands were printed.

Change-Id: I42b625df5165ab0163a5626e1af777b1ecb0868d
Signed-off-by: Emil Lundmark <emil@limesaudio.com>
Reviewed-on: https://chromium-review.googlesource.com/447397
Reviewed-by: Marcus Wirebrand <marcus.wirebrand@limesaudio.com>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed
tree: 40c9813023a7a8ff9cda10831f0ac90145022de3
  1. src/
  2. .clang-format
  3. .clang-tidy
  4. .gitignore
  5. CMakeLists.txt
  6. LICENSE.md
  7. PRESUBMIT.cfg
  8. README.md
README.md

atrusctl

This tool is used to interact with an Atrus device.

Requirements

The GNU C Library, libusb 1.0 and libudev are required. GNU C is required because the program utilizes argp.

Building

CMake is used for building the application.

Here is an example of how to build:

$ mkdir build/
$ cd build/
$ cmake ..
$ make

You can also install it on your machine by running:

$ make install

Using

Run the following to see the help section of the application.

$ atrusctl --help

Also, make sure you have read and write access to the USB device. This may be done by, e.g., setting appropriate udev rules.

License

Individual files are tagged with SPDX-License-Identifier to indicate its license instead of including the full license text. See the SPDX License List for more information.