Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meta-lxatac-software: containers: pass through /var/cache/labgrid
Labgrid's ManagedFile class handles synchronisation of files to remote hosts. When a path is not accessible on the TAC, it will be transferred into /var/cache/labgrid and then that path is passed to locally installed tools. To allow transparently using these paths from within a container, add it to the volumes passed through when running container-start. This was tested as follows: - On the development host, create rkdeveloptool-rk3399pro.yaml with: targets: main: resources: RemotePlace: name: !template '$LG_PLACE' drivers: RKUSBDriver: usb_loader: usb_loader tools: rk-usb-loader: /bin/rkdeveloptool images: usb_loader: /home/a3f/Downloads/rk3399pro_loader_v1.20.115.bin - On the TAC, install rkdeveloptool inside the Debian container - On the TAC, add /bin/rkdeveloptool with: #!/bin/sh podman start debian >/dev/null podman exec debian rkdeveloptool "$@" podman stop -i -t 0 debian >/dev/null - On the TAC, add into Labgrid System config for each USB port: RKUSBLoader: match: 'ID_PATH': '{{sysfs}}' This allowed using of labgrid-client bootstrap to call rkdeveloptool on the remote target without having to have a recipe for rkdeveloptool. Signed-off-by: Ahmad Fatoum <[email protected]>
- Loading branch information