Yes, In my case the only way I could make lava to see the fastboot device was via running pre-power-command, and I run a script (I customized device descriptor to run a this script as pre-power-command) which does: 1. Power Off Wait 5s 2.Power On Wait 30s 3. Login as root Wait 5s 4. echo reboot bootloader. # make it go in fastboot mode
Immediately after this script runs, the udev rule is triggered and device id added (seen from Lava).
Otherwise the reboot does not work for me. The line: nice lxc-attach -n lxc-hikey-test-186 -- fastboot -s xxxxxxx reboot gives timeout.
Because the device is not seen.
To make the job work without any flashing I removed the - deploy section which does flashing entirely
For my case: I have added to boot this section protocols: lava-lxc: - action: fastboot-boot request: pre-power-command timeout: minutes: 5
george
The full job I cannot post due to company policy with confidentiality on projects.
-----Original Message----- From: Milosz Wasilewski milosz.wasilewski@linaro.org Sent: luni, 14 octombrie 2019 15:58 To: George Nistor george.n@l4b-software.com Subject: Re: lava job without any flashing on a real device
Could you send the question to ML? I don't know why adb is not enough. Maybe LAVA waits for udev event?
milosz
On Mon, 14 Oct 2019 at 13:51, George Nistor george.n@l4b-software.com wrote:
I have managed after all to do it with a job like this: My problem was to be able to run pre-power-command before boot, to make lava to see the fastboot device - trigger that python script lxc-device-add.
-----Original Message----- From: Milosz Wasilewski milosz.wasilewski@linaro.org Sent: Monday, October 14, 2019 15:02 To: George Nistor george.n@l4b-software.com Subject: Re: lava job without any flashing on a real device
There was a feature called 'dummy deploy' but I can't find it any more. Did you try simply removing 'deploy' action? This should do the trick but you will need transfer_overlay in your boot section.
milosz
On Mon, 14 Oct 2019 at 12:33, George Nistor george.n@l4b-software.com wrote:
Hi Milosz,
I have a small question:
Is it possible to run a lava job without any deploy – flashing sequence on a real device?
I attach the job I’m working on.
george
lava-users@lists.lavasoftware.org