forked from labgrid-project/labgrid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Add documentation for U-Boot integration
Cover the drivers, scripts, pytest and the Gitlab information. Note: This implementation is the result of working through what is needed in Labgrid to support U-Boot labs. I did initially file quite a few issues[1] but there has not been a lot of traction and I got feedback that I have overwhelmed people with too many. So I have stopped filing issues on the things I hit along the way. I have carried on with the implementation in the hope that this can be a better basis for discussion. Note that all of these patches are work-in-progress. Feedback on any or all may change the implementation and documentation substantially. The approximate diffstat is: contrib/u-boot/.gitignore | 1 + contrib/u-boot/_ub-bisect-try | 47 ++ contrib/u-boot/conftest.py | 21 + contrib/u-boot/get_args.sh | 50 +++ contrib/u-boot/index.rst | 203 +++++++++ contrib/u-boot/lg-client | 11 + contrib/u-boot/lg-env | 9 + contrib/u-boot/test_smoke.py | 3 + contrib/u-boot/ub-bisect | 37 ++ contrib/u-boot/ub-cli | 30 ++ contrib/u-boot/ub-int | 30 ++ contrib/u-boot/ub-pyt | 40 ++ contrib/u-boot/ub-smoke | 38 ++ doc/configuration.rst | 606 +++++++++++++++++++++++++- doc/usage.rst | 287 ++++++++++++ labgrid/driver/__init__.py | 10 +- labgrid/driver/common.py | 11 + labgrid/driver/consoleexpectmixin.py | 7 + labgrid/driver/powerdriver.py | 29 ++ labgrid/driver/recoverydriver.py | 22 + labgrid/driver/resetdriver.py | 7 + labgrid/driver/servodriver.py | 153 +++++++ labgrid/driver/sfemulatordriver.py | 50 +++ labgrid/driver/ubootproviderdriver.py | 214 +++++++++ labgrid/driver/ubootwriterdriver.py | 139 ++++++ labgrid/driver/usbhidrelay.py | 11 +- labgrid/driver/usbloader.py | 171 +++++++- labgrid/driver/usbstoragedriver.py | 36 +- labgrid/factory.py | 4 +- labgrid/protocol/__init__.py | 1 + labgrid/protocol/bootstrapprotocol.py | 8 +- labgrid/protocol/recoveryprotocol.py | 14 + labgrid/protocol/resetprotocol.py | 4 + labgrid/pytestplugin/fixtures.py | 21 +- labgrid/pytestplugin/hooks.py | 8 + labgrid/remote/client.py | 96 +++- labgrid/remote/config.py | 7 +- labgrid/remote/exporter.py | 124 +++++- labgrid/resource/__init__.py | 6 + labgrid/resource/remote.py | 24 + labgrid/resource/servo.py | 485 +++++++++++++++++++++ labgrid/resource/sfemulator.py | 33 ++ labgrid/resource/suggest.py | 6 + labgrid/resource/udev.py | 33 ++ labgrid/strategy/ubootstrategy.py | 95 +++- labgrid/target.py | 120 ++++- labgrid/util/agents/udisks2.py | 49 ++- labgrid/util/helper.py | 9 +- labgrid/util/ssh.py | 3 +- labgrid/var_dict.py | 8 + man/labgrid-client.1 | 6 + man/labgrid-client.rst | 4 + man/labgrid-device-config.5 | 4 + 53 files changed, 3352 insertions(+), 93 deletions(-) [1] https://github.com/labgrid-project/labgrid/issues/created_by/sjg20 Signed-off-by: Simon Glass <sjg@chromium.org>
- Loading branch information
Showing
2 changed files
with
288 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters