Add the ability to omit the image from the cdba call. In this case default
to "fastboot continue" on the cdba-server side.
Regular booting continues to work like this:
cdba -b db410c -h benchtop-cdba ./qlt-kernel/build/square_5.x-tracking/boot_t2a.img
New option to boot the default image a proxy for "fastboot continue"
cdba -b db410c -h benchtop-cdba
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Add cdba-server side support for "fastboot continue" which allows
fastboot to continue its default boot process.
I find it useful to setup my boards with an additional SD card which I
frequently use the default image on eMMC to chroot to and populate
modules, rebooting into fastboot and subsequently booting via fastboot
a rootfs on the SD card.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Granted all possible issues with SSH, especially in the remote and/or
proxied labs, and possible issues with the board being present but
failing to power up, it is useful to have a banner message once CDBA was
started. This gives user a clear picture that the connection is fine and
the server is trying to power up the board.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
We use the CDBA_USER value as a way to pass info from cdba-shell to
cdba-server. However if it is not provide (e.g. because the cdba-server
is started directly by shell) add a fallback to the system's USER
variable. And if that's also not set, provide a safe default of
'nobody'.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Introduce description of the status fifo, the status command, and the
data format for these in the README.
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Leaving USB connected might cause hickups on the USB bus, and causes
power measurements to report incorrect data. Turn it off once the image
has been downloaded.
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
While the CDB Assist and QcomLT Debugboard is measuring voltage and
current on the DC jack directly in the backend, other backends and
further measurements can be performed using custom tooling.
Introduce support for invoking an external "status-cmd" to produce such
status updates.
The status command should on its stdout produce json-formatted status
updates following the same format as the cdba-server:
{"ts":%d.%03d, "name": {["mv"|"ma"]: %u}(, "name2": {["mv"|"ma"]: %u})*}
with the ts aquired using clock_gettime(CLOCK_MONOTONIC) and provided in
seconds and milliseconds since the first measurement.
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
The QcomLT DebugBoard has a voltage and current sensor on the 12V DC
line, which the firmware will measure upon request.
Add a periodic request for this information, parse out the responses and
report using the status helper functions.
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
The updated format and behavior of the status messages is not useful for
human consumption in the console stream, but rather for programatical
consumption by 3rd party tools.
Switch the status message stream to an optional fifo, which can be
consumed separately from the console - by humans or by tools.
The fifo is created and opened and status messages requested, if the
'-s <file>' option is specified.
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>