Commit Graph

164 Commits

Author SHA1 Message Date
Eduard Kaverinskyi
4d02090280 src/: Add handling of programmer.binary configuration
Signed-off-by: Eduard Kaverinskyi <eduard.kaverinskyi@3mdeb.com>
2025-01-29 12:22:25 +01:00
Maciej Pijanowski
2aefa227c2 pyproject.toml: bump to v0.5.9
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
v0.5.9
2024-12-30 09:17:12 +01:00
Maciej Pijanowski
076e9dd2e1 .pre-commit-config.yaml: update
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-12-30 09:06:09 +01:00
Maciej Pijanowski
536f62095d osfv/cli/cli.py: drop duplicated check_out/check_in groups
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-12-30 09:00:42 +01:00
Piotr Król
e8391f01f7 libs/rte*: correct imports and improve exceptions handling
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-30 00:34:56 +01:00
Piotr Król
043dd0d007 osfv_cli/src/osfv/cli/cli.py: add support for --skip-snipeit
Without this option there is no way to setup DUT with RTE in home lab.
This commit should be first step for OSFV to allow community setup their
own DUTs and validate those.

Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-30 00:33:28 +01:00
Piotr Król
86c4b4ea12 src/osfv/cli/cli.py: fix rte rel tgl
Use predefined states in RTE class instead of string.

Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-30 00:31:28 +01:00
Piotr Król
75bec57193 *.py: wrap on 80 characters as it in PEP8
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-30 00:25:47 +01:00
Piotr Król
1407274fd1 osfv_cli/src/osfv/__init__.py: expose cli and libs for external use
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-29 00:20:11 +01:00
Maciej Pijanowski
36a030eb00 pyproject.toml: bump to v0.5.8
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
v0.5.8
2024-12-01 17:17:20 +01:00
Maciej Pijanowski
cb3fa7d044 osfv_cli: rte: fix rte relay states
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-12-01 17:17:13 +01:00
Maciej Pijanowski
aab992fdb2 pyproject.toml: bump to v0.5.7
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
v0.5.7
2024-12-01 17:02:31 +01:00
Maciej Pijanowski
c7a007efbd osfv_cli/rte: normalize on/off PSU states strings
Sonoff returns capital ON/OFF, while relay returned on/off.
We define relay strings here, so can be changed here to
unify the reponses, no matter which power control method
was used at the time.

The more proper solution would be to implement:
https://github.com/Dasharo/osfv-scripts/issues/77

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-12-01 16:53:29 +01:00
Maciej Pijanowski
743891dc39 rte: add PSU commands and documentation
Somehow fixes: https://github.com/Dasharo/osfv-scripts/issues/69

I think in the end we do not need that much logic in this CLI tool, but
the PSU control was definitely missing. We provide a single interface
to control the PSU, no matter what power control (relay, Sonoff) is in
place.

It has been added and exposed to the OSFV via RF libs. The CLI tool
should not know much about the firmware behavior, such as whether
the DUT will power on when PSU is enabled, or not. This is often
configurable, even at runtime, and should be handled in test environment
instead. In many cases, the CLI tool may even operate with no firmware
at all, or with bricked DUT.

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-11-30 00:01:39 +01:00
Michał Żygowski
1035355390 osfv_cli: correct the flashing power state logic
Use ACPI nomenclature to be consistent and rename OFF to S5. Both OFF
and G3 mean powered off state, however ACPI differentiates soft off
with PSU/AC active (S5) and hard off with PSU/AC inactive (G3).

Also the logic controlling the power state during flashing was
inverted. We always put the device to S5 state (PSU/AC active) before
attempting to flash. But for G3 path, the PSU/AC stayed on, while
should be turned off. All board configs have been changed to their
proper states to reflect the correct power logic.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2024-11-14 16:00:56 +01:00
Maciej Pijanowski
cc59d86dd6 osfv_cli/test/common/keywords.robot: fix V1410 RTE_IP
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-11-14 15:50:40 +01:00
Jan Prusinowski
b46aee08c3 Fixed MSI Z790 config where it couldnt be found by robot tests
Signed-off-by: Jan Prusinowski <jan.prusinowski@3mdeb.com>
2024-11-05 14:07:16 +01:00
Michał Żygowski
5fb8d0485f Merge pull request #72 from Dasharo/2430
add models/VP2430.yml
2024-10-28 13:22:41 +01:00
Dawid Lesiak
8c8cc5f9b5 add models/VP2430.yml
Signed-off-by: Dawid Lesiak <dawid.lesiak@3mdeb.com>
2024-10-25 17:45:25 +02:00
Jan Prusinowski
44eefb62cf VP3210.yml, rte_robot.py: added support for protectli vp3210
Signed-off-by: Jan Prusinowski <jan.prusinowski@3mdeb.com>
2024-10-24 10:59:31 +02:00
Jan Prusinowski
6f7eb96d2f rte_robot.py: added missing entry for protectli vp3230
Signed-off-by: Jan Prusinowski <jan.prusinowski@3mdeb.com>
2024-10-22 11:27:20 +02:00
Michał Żygowski
9c11da0326 Merge pull request #67 from Dasharo/VP3230
models/VP3230.yml: add new model
2024-10-10 11:20:42 +02:00
Dawid Lesiak
746be8e1f6 models/VP3230.yml: add new model
Signed-off-by: Dawid Lesiak <dawid.lesiak@3mdeb.com>
2024-10-04 13:14:08 +02:00
Maciej Pijanowski
7677c59643 Merge pull request #61 from Dasharo/change_write_rom_location
osfv_cli/src/osfv/libs/rte.py: Change location of ROM file
2024-09-25 12:06:45 +02:00
Sebastian Czapla
28766ea0cf osfv_cli/src/osfv: Apply pre-commit changes
Signed-off-by: Sebastian Czapla <sebastian.czapla@3mdeb.com>
2024-09-17 12:50:37 +02:00