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. 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.
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
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.commailto: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/https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freview.linaro.org%2F%23%2Fc%2F22132%2F&data=02%7C01%7CAndrei.Narkevitch%40cypress.com%7C66af8cc49b1b401a726108d56431adc5%7C011addfc2c09450d8938e0bbc2dd2376%7C0%7C0%7C636525086898398316&sdata=5wsvY%2B%2FMnny1dGVUT5xdouYTncw7ONBhrw0QBpRiXx8%3D&reserved=0
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.orgmailto:Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-usershttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.linaro.org%2Fmailman%2Flistinfo%2Flava-users&data=02%7C01%7CAndrei.Narkevitch%40cypress.com%7C66af8cc49b1b401a726108d56431adc5%7C011addfc2c09450d8938e0bbc2dd2376%7C0%7C0%7C636525086898398316&sdata=NXJXWH03qFqj2ALSCxxDQNwDN2pu%2B0D3CeVFKTZTO4U%3D&reserved=0
--
Neil Williams ============= neil.williams@linaro.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linux.codehelp.co.uk%2F&data=02%7C01%7CAndrei.Narkevitch%40cypress.com%7C66af8cc49b1b401a726108d56431adc5%7C011addfc2c09450d8938e0bbc2dd2376%7C0%7C0%7C636525086898398316&sdata=YV5sz%2FNntV29FLpT%2FeuMzVYuCVHBBY26Y579r2q91EI%3D&reserved=0
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@lists.lavasoftware.org