I took PC, installed debian stretch, removing everything that was before. 
I repeat all steps that I did to install lava, successfully tested lava with qemu. 
After that, I'm trying to flash with fastboot my device. And again stuck at this step:


nice fastboot -s '261a1c5d' flash persist /var/lib/lava/dispatcher/tmp/35/fastboot-deploy-lj8f8myv/persist/persist.ext4

I successfully can run this command for root and lavaserver users from terminal:

nice fastboot -s '261a1c5d' flash persist /usr/folder/persist.ext4

Buit via LAVA it just stuck. No error just infinity loop, and crash on timeout. Timeout > 30 minutes.

Ilya


From: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Sent: Tuesday, September 3, 2019 2:57:31 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 12:52, Ilya Fedusiv <ilya.f@l4b-software.com> wrote:
>
> 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 think this is your biggest problem. I never tried that, so I'm
afraid I can't help.

milosz

>
>
> 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