Bjorn Andersson 91ee23ae86 cdba: Add -C argument for power-cycle on success only
When using cdba to bisect for intermittent issues related to boot
lockups or crashes taking us to download mode it's only useful to
power-cycle on success (as a failure case shows the intermittent
problem).

Add a special version of the existing power cycle code, that stops the
power cycling loop if a timeout criteria is hit, cutting down on
unnecessary reboots of a broken kernel.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2019-08-13 12:40:19 -07:00
2018-12-05 17:14:00 -08:00
2018-12-05 17:14:00 -08:00
2018-12-10 09:32:19 -08:00
2018-03-12 17:44:17 -07:00
2018-03-12 17:44:17 -07:00
2018-12-10 09:32:19 -08:00
2018-04-22 10:06:00 -07:00
2018-12-05 17:14:00 -08:00
2018-03-12 17:44:17 -07:00
2018-02-26 21:02:30 -08:00
2018-12-05 17:14:00 -08:00
2019-01-16 23:13:53 -08:00

= CDBA control tool
The CDBA control tool is used for remotely booting images on development boards
attached using a CDB Assist or Conmux.

= Dependencies
sudo apt-get install libudev-dev libyaml-dev for debian systems
dnf install systemd-devel libyaml-devel for fedora systems

= Device side
On the host with the CDB Assist or Conmux attached the "bad" executable is run
from sandbox/cdba/bad. Available devices are read from $HOME/.cdba

= Client side
The client is invoked as:

  cdba -b <board> -h <host> [-c <power-cylce-count>] boot.img

<host> will be connected to using ssh and <board> will be selected for
operation. As the board's fastboot interface shows up the given boot.img will
be transfered and booted on the device.

The board will execute until the key sequence ^A q is invoked or the board
outputs a sequence of 20 ~ (tilde) chards in a row.

If the optional -c is given, the board will upon receiving the tilde sequence
restart the board the given number of times. Each time booting the given
boot.img.

== Device configuration
The list of attached devices is read from $HOME/.cdba and is YAML formatted.

=== Example
devices:
  - board: db2k
    cdba: 00000001
    name: "DragonBoard2k"
    fastboot: abcdef1
    voltage: 8000

  - board: mtp2k
    conmux: mtp2k
    fastboot: abcdef2
    fastboot_set_active: true
Description
No description provided
Readme BSD-3-Clause 470 KiB
Languages
C 93.3%
Shell 3.8%
Meson 2.4%
Python 0.5%