I'm not sure in device permission.
I'm using debian from Virual Box OS, device is connected. Easily flash from command line. Working as root.


I tested:

- Create user with the name as lava-user name and give permission to device group
- In udev I set group to lavaserver.
- Add lavaserver and device in udev to plugdev

All option are unsuccessfully. Result still same.

udev rules 
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="d00d", MODE="0666", GROUP="plugdev"

deviec 

crw-rw-rw- 1 root plugdev 189, 3 Sep  3 14:35 /dev/bus/usb/001/004

groups
root@l4b:~# groups lavaserver
lavaserver : lavaserver plugdev


About lxc udev rules. In base-fastboot by default board_id is the same as fastboot serial number

Ilya


From: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Sent: Tuesday, September 3, 2019 12:14:45 PM
To: Ilya Fedusiv <ilya.f@l4b-software.com>
Cc: lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
Subject: Re: [Lava-users] Fastboot device Connection
 
On Tue, 3 Sep 2019 at 09:41, Ilya Fedusiv <ilya.f@l4b-software.com> wrote:
>
> Hi!
>
> I'm using lava from debian stretch.
>
> I try flash image by fastboot.
>
> At that step job just stuck and util timeout of 10 minutes.
>
> 
> nice fastboot -s '261a1c5d' flash persist /var/lib/lava/dispatcher/tmp/15/fastboot-deploy-7xj200yq/persist/persist.ext4
>
> If run command from terminal
> fastboot -s 261a1c5d flash persist /tmp/persist.ext4
> device is flashed in 3 seconds

It's most likely permissions and/or udev rule issue.

>
> It looks like, that LAVA doesnt see my device.
>
> Job desc : https://pastebin.com/ZNeS71Ev
> Device desc: https://pastebin.com/rYRyEnjy

You're probably missing device_info in your device dictionary. There
should be sth like this:
{% set device_info = [{'board_id': '5D415DCE022B1FFE'}] %}
IIRC this is used by LAVA to create udev rule that passes the device
to LXC container.

milosz

> Job log : https://pastebin.com/fH0u3bUb
>
> I know, that for fastboot better to work with lxc. I also tried with lxc. And it stuck on the same place.
>
> Job log with lxc : https://pastebin.com/RnZLNfvN
>
> Ilya
>
> _______________________________________________
> Lava-users mailing list
> Lava-users@lists.lavasoftware.org
> https://lists.lavasoftware.org/mailman/listinfo/lava-users