Commit Graph

223 Commits

Author SHA1 Message Date
Dmitry Baryshkov
762879fd0c device: add support for leaving device powered
For some devices it might be desirable to leave device powered on after
the cdba exits (e.g. to run some long-running tests). Add the
'power_always_on' option that tells cdba server to leave device powered
on after exiting and to toggle power (to reset the device) when
connecting.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-03-30 18:06:19 +02:00
Dmitry Baryshkov
62dc594cb1 device: split fastboot_open from device_open
Create new function calling fastboot_open so that device_open doesn't
have dependency on the fastboot_ops or udev.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-03-30 18:06:19 +02:00
Dmitry Baryshkov
2f1caa28c0 tty: split tty_open to a separate file
Split the function tty_open() to a separate file.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-03-30 18:06:19 +02:00
Dmitry Baryshkov
f6bd2d01d7 watch: split implementation to aseparate file
Split CDBA's watching code to a separate file.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-03-30 18:06:19 +02:00
Dmitry Baryshkov
bde90b4a15 cdba: replace licence headers with SPDX identifiers
Replace all license headers with the SPDX-License-Identitier headers to
follow the current recommendations.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-03-30 18:06:19 +02:00
Dmitry Baryshkov
b6c6807add drivers: move device / console backends to separte dir
In order to stop clobbering the root directory, move all device and
console backends to drivers/ subdir.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-03-30 18:06:17 +02:00
Dmitry Baryshkov
1da135b08e Merge pull request #70 from niej/readme-quit-session
README: add cmd to quit console and close session
2024-03-13 05:51:33 +02:00
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