Thanks, this is definitely what was needed. I applied this patch over our 2017.6 lava-dispatcher code tree. Power-on happens now, however it is stuck waiting for an udev event (we are using lxc to communicate with the board):


start: 4.1.2 wait-device-boardid (timeout 00:04:44)

Waiting for udev device with ID: 201702231152

 

I guess we’re missing LxcCreateUdevRuleAction and related changes, so it is time to update to the recent tag.

 

Thank you!

 

 

From: Neil Williams [mailto:neil.williams@linaro.org]
Sent: Thursday, January 25, 2018 12:23 PM
To: Andrei Narkevitch <Andrei.Narkevitch@cypress.com>
Cc: lava-users@lists.linaro.org
Subject: Re: [Lava-users] Using power-on command with pyocd boot method

 

 

 

On 25 January 2018 at 20:17, Andrei Narkevitch <Andrei.Narkevitch@cypress.com> wrote:

Hi, our boards are powered via PDU and before flashing with pyocd, they need to be powered up first. I defined power_on_command in the device dictionary, but it is ignored.

 

You should use the hard_reset_command

 

Support was added in version 2017.11 - https://review.linaro.org/#/c/22132/

 

It looks like an only limited set of methods add ResetDevice action to the pipeline and pyocd is not among them. Contrarily, if defined, power_off command always gets invoked because it is added by FinalizeAction to every test.

I’m wondering if there is any way to issue the power-on command without modifying the dispatcher pipeline source code.

 

Thanks,

Andrei Narkevitch, Cypress Semiconductor


This message and any attachments may contain confidential information from Cypress or its subsidiaries. If it has been received in error, please advise the sender and immediately delete this message.


_______________________________________________
Lava-users mailing list
Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users



 

--


Neil Williams
=============
neil.williams@linaro.org
http://www.linux.codehelp.co.uk/


This message and any attachments may contain confidential information from Cypress or its subsidiaries. If it has been received in error, please advise the sender and immediately delete this message.