Commit Graph

216 Commits

Author SHA1 Message Date
Jun Nie
efd1b44e74 README: add cmd to quit console and close session
Signed-off-by: Jun Nie <jun.nie@linaro.org>
2024-03-13 10:01:27 +08:00
Dmitry Baryshkov
baa48a82c2 Merge pull request #69 from calebccff/ppps-segfault
ppps: check if ppps3_path is valid
2024-03-12 21:45:17 +02:00
Caleb Connolly
98b4aa893a ppps: check if ppps3_path is valid
funny joke about steel + water or something

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-02-09 22:51:50 +00:00
Konrad Dybcio
d678216fd7 Merge pull request #66 from 0xB0D/master
Implement fastboot continue when omitting boot img from cdba command line
2024-01-17 11:12:13 +01:00
Bryan O'Donoghue
68ca7e49b4 cdba: Default to fastboot continue if image is omitted
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>
2024-01-17 02:09:05 +00:00
Bryan O'Donoghue
30e6838a12 cdba-server: Implement fastboot continue
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>
2024-01-17 02:08:44 +00:00
Dmitry Baryshkov
f9c4d71650 Merge pull request #62 from krzk/ftdi-ci
ci: switch to new libftdi on Arch Linux
2023-12-10 23:48:27 +02:00
Krzysztof Kozlowski
266d885cde ci: switch to new libftdi on Arch Linux
Use latest (not compat) version of libftdi in install scripts for Arch
Linux.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2023-12-10 22:45:30 +01:00
Dmitry Baryshkov
4a38c0e8e1 Merge pull request #61 from krzk/cdba-server-info
Cdba server info
2023-12-10 23:35:56 +02:00
Krzysztof Kozlowski
316119c473 README: add install dependencies for Arch Linux
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2023-12-10 22:33:27 +01:00
Krzysztof Kozlowski
fcada07889 meson: fix language typo
Fix language typo "of" -> "if".

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2023-12-10 22:33:09 +01:00
Dmitry Baryshkov
65d867355e Merge pull request #54 from krzk/space-clean
Clean trailing white-spaces
2023-12-03 21:43:11 +02:00
Krzysztof Kozlowski
581f14d8f6 Clean trailing white-spaces
Drop trailing white-spaces and tabs.  No functional changes.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2023-12-03 20:07:06 +01:00
Dmitry Baryshkov
2c465e56dd Merge pull request #53 from lumag/banner
cdba-server: add CDBA-server banner to be output on startup
2023-11-29 15:44:26 +02:00
Dmitry Baryshkov
d35abc800d cdba-server: add CDBA-server banner to be output on startup
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>
2023-11-29 15:23:46 +02:00
Dmitry Baryshkov
5edc55cff8 Merge pull request #52 from lumag/syslog
Syslog sypport
2023-11-29 15:22:45 +02:00
Dmitry Baryshkov
43ed93357d cdba-server: add syslog support
Log messages to the syslog when the user opens a board.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-11-29 15:22:26 +02:00
Dmitry Baryshkov
b32d98f7a4 cdba-server: provide fallbacks for the username value
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>
2023-11-29 15:22:26 +02:00
Dmitry Baryshkov
3269b8b891 Merge pull request #51 from CodeLinaro/for-linux-msm/status-support
Programmatic access to remote power measurements
2023-11-28 05:34:11 +02:00
Bjorn Andersson
0ad34da4f2 samples: Provide sample with status-cmd
Provide a sample defining the status-cmd property.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
2023-11-27 21:33:35 -06:00
Bjorn Andersson
6d8ff75e31 README: Introduce status messages and fifo
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>
2023-11-27 21:19:58 -06:00
Bjorn Andersson
cc91b34f3a device: Disable USB on boot
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>
2023-11-27 21:19:57 -06:00
Bjorn Andersson
81e46878ed cdba-server: Allow external status command
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>
2023-11-27 21:19:57 -06:00
Bjorn Andersson
c8e29e3400 qcomlt_dbg: Enable power status reporting
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>
2023-11-27 21:19:56 -06:00
Bjorn Andersson
130720a6df cdba: Introduce status pipe
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>
2023-11-27 21:19:55 -06:00