Hi Conrad,
On Sunday 08 April 2018 06:39 PM, Conrad Djedjebi wrote:
I am currently running jobs on a device through adb without issues. LAVA is adding udev rules which make it possible for the LXC container to successfully attach the target.
However, when the device turns into fastboot mode, a "fastboot devices" command in the LXC returns nothing. In fastboot mode, the USB link of the device is added whereas the device is not listed among the fastboot devices.
The udev rules gets applied only when the device gets re-enumerated / restarted ie., on an udev add event. Otherwise the udev rule will not get applied to a device. For devices that are attached already when the job starts or if the device will not get re-enumerated, then use static_info as seen here - https://git-us.linaro.org/lava/lava-lab.git/tree/staging.validation.linaro.o... along with the device_info variable in the device dictionary.
In the host, a "fastboot devices" command returns the id of the device.
I haven't faced this. But on the other hand when the host runs adb daemon, then it takes control of all the devices and the devices will not be visible from within the containers (LXC), even when the udev rule is applied. So care should be taken that 'adb' daemon is not running on the host. It is good, not to run any operation with fastboot too on the host, when the device is accessed via a container within the same host.
Thank You.