On 19 July 2017 at 11:16, Li, Yifan2 yifan2.li@intel.com wrote:
Hello LAVA experts,
Is it possible to expose a device path like ‘/dev/ttyUSB0’ to lxc in job definition or device definition? I have a feature requirement to control a relay card inside LAVA lxc.
Yes. This is the device_info dictionary which can be part of the device dictionary.
https://staging.validation.linaro.org/scheduler/device/staging-hi6220-hikey-...
https://git.linaro.org/lava/lava-lab.git/tree/staging.validation.linaro.org/...
Also:
https://git.linaro.org/lava/lava-lab.git/tree/staging.validation.linaro.org/...
I have got clues for device_info and read https://validation.linaro.org/static/docs/v2/lava-scheduler-device-dictionar... and https://validation.linaro.org/static/docs/v2/admin-lxc-deploy.html?highlight.... However I did not know how to use it to expose ‘/dev/ttyUSB0’ to LXC.
You need 2017.6 or later for this to work.
https://staging.validation.linaro.org/static/docs/v2/admin-lxc-deploy.html
Although designed for Android testing, the support is available to any use of the LXC.
https://staging.validation.linaro.org/static/docs/v2/admin-lxc-deploy.html#a...