Hello,
We have few device types in our LAVA instance that use ums mechanism to be deployed. This has worked well so far but we have now the need to test secure boot flow (BL1, BL2...) and we cannot rely anymore in u-boot for deploying them. Assuming we have the HW in place to put the DUT in recovery mode, how can we achieve this via LAVA? Do you have an existent example where you automate the recovery mode of a board?
Thanks
-- Diego Russo | Staff Software Engineer | Mbed Linux OS ARM Ltd. CPC1, Capital Park, Cambridge Road, Fulbourn, CB21 5XE, United Kingdom http://www.diegor.co.uk - https://os.mbed.com/linux-os/
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
On Wed, 10 Jul 2019 at 11:45, Diego Russo Diego.Russo@arm.com wrote:
Hello,
We have few device types in our LAVA instance that use ums mechanism to be deployed. This has worked well so far but we have now the need to test secure boot flow (BL1, BL2...) and we cannot rely anymore in u-boot for deploying them. Assuming we have the HW in place to put the DUT in recovery mode, how can we achieve this via LAVA? Do you have an existent example where you automate the recovery mode of a board?
There is a 'recovery_mode' in LAVA. In order to use it you need to define commands to enter and exit this mode in device dictionary. Example here: https://staging.validation.linaro.org/scheduler/device/staging-x15-bl-01/dev... eth008_control script is used to manage relay board. Sources here: https://git.linaro.org/lava/lava-lab.git/tree/shared/lab-scripts/eth008_cont...
In this case the device needs to have jumpers in certain positions to enter recovery mode. This is done using relay board shorting or opening the jumper. The sequence then is: - power off - enter recovery - power on - do whatever is required to deliver software to the board (like dfu upload, load u-boot over serial etc) - power off - exit recovery - reboot
You can than continue running other tests. Here is an example job on TI's X15 with EVM: https://staging.validation.linaro.org/scheduler/job/254958
Hope this helps :)
milosz
Thanks
-- Diego Russo | Staff Software Engineer | Mbed Linux OS ARM Ltd. CPC1, Capital Park, Cambridge Road, Fulbourn, CB21 5XE, United Kingdom http://www.diegor.co.uk - https://os.mbed.com/linux-os/
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
Hello,
I re-use this old email I sent to set the context. Milosz said: " In this case the device needs to have jumpers in certain positions to enter recovery mode. This is done using relay board shorting or opening the jumper"
We are interested to know what people are using to perform this automation. Do you have any board to suggest? Are you able to point us to the right direction?
Thanks
-----Original Message----- From: Milosz Wasilewski milosz.wasilewski@linaro.org Date: Wednesday, 10 July 2019 at 12:06 To: Diego Russo Diego.Russo@arm.com Cc: "lava-users@lists.lavasoftware.org" lava-users@lists.lavasoftware.org Subject: Re: [Lava-users] DUT in recovery mode under LAVA
On Wed, 10 Jul 2019 at 11:45, Diego Russo Diego.Russo@arm.com wrote: > > Hello, > > We have few device types in our LAVA instance that use ums mechanism to be deployed. This has worked well so far but we have now the need to test secure boot flow (BL1, BL2...) and we cannot rely anymore in u-boot for deploying them. > Assuming we have the HW in place to put the DUT in recovery mode, how can we achieve this via LAVA? Do you have an existent example where you automate the recovery mode of a board?
There is a 'recovery_mode' in LAVA. In order to use it you need to define commands to enter and exit this mode in device dictionary. Example here: https://staging.validation.linaro.org/scheduler/device/staging-x15-bl-01/dev... eth008_control script is used to manage relay board. Sources here: https://git.linaro.org/lava/lava-lab.git/tree/shared/lab-scripts/eth008_cont...
In this case the device needs to have jumpers in certain positions to enter recovery mode. This is done using relay board shorting or opening the jumper. The sequence then is: - power off - enter recovery - power on - do whatever is required to deliver software to the board (like dfu upload, load u-boot over serial etc) - power off - exit recovery - reboot
You can than continue running other tests. Here is an example job on TI's X15 with EVM: https://staging.validation.linaro.org/scheduler/job/254958
Hope this helps :)
milosz
> > Thanks > > -- > Diego Russo | Staff Software Engineer | Mbed Linux OS > ARM Ltd. CPC1, Capital Park, Cambridge Road, Fulbourn, CB21 5XE, United Kingdom > http://www.diegor.co.uk - https://os.mbed.com/linux-os/ > > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. > _______________________________________________ > Lava-users mailing list > Lava-users@lists.lavasoftware.org > https://lists.lavasoftware.org/mailman/listinfo/lava-users
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
On Tue, 27 Aug 2019 at 17:51, Diego Russo Diego.Russo@arm.com wrote:
Hello,
I re-use this old email I sent to set the context. Milosz said: " In this case the device needs to have jumpers in certain positions to enter recovery mode. This is done using relay board shorting or opening the jumper"
We are interested to know what people are using to perform this automation. Do you have any board to suggest? Are you able to point us to the right direction?
Do you mean relay board? We use this: https://www.robot-electronics.co.uk/htm/eth008tech.htm It's pretty expensive but: - it's controlled over ethernet (no USB issues) - boards have unique MAC addresses so you can have more than 1 in your network.
milosz
Thanks
-----Original Message----- From: Milosz Wasilewski milosz.wasilewski@linaro.org Date: Wednesday, 10 July 2019 at 12:06 To: Diego Russo Diego.Russo@arm.com Cc: "lava-users@lists.lavasoftware.org" lava-users@lists.lavasoftware.org Subject: Re: [Lava-users] DUT in recovery mode under LAVA
On Wed, 10 Jul 2019 at 11:45, Diego Russo <Diego.Russo@arm.com> wrote: > > Hello, > > We have few device types in our LAVA instance that use ums mechanism to be deployed. This has worked well so far but we have now the need to test secure boot flow (BL1, BL2...) and we cannot rely anymore in u-boot for deploying them. > Assuming we have the HW in place to put the DUT in recovery mode, how can we achieve this via LAVA? Do you have an existent example where you automate the recovery mode of a board? There is a 'recovery_mode' in LAVA. In order to use it you need to define commands to enter and exit this mode in device dictionary. Example here: https://staging.validation.linaro.org/scheduler/device/staging-x15-bl-01/devicedict eth008_control script is used to manage relay board. Sources here: https://git.linaro.org/lava/lava-lab.git/tree/shared/lab-scripts/eth008_control In this case the device needs to have jumpers in certain positions to enter recovery mode. This is done using relay board shorting or opening the jumper. The sequence then is: - power off - enter recovery - power on - do whatever is required to deliver software to the board (like dfu upload, load u-boot over serial etc) - power off - exit recovery - reboot You can than continue running other tests. Here is an example job on TI's X15 with EVM: https://staging.validation.linaro.org/scheduler/job/254958 Hope this helps :) milosz > > Thanks > > -- > Diego Russo | Staff Software Engineer | Mbed Linux OS > ARM Ltd. CPC1, Capital Park, Cambridge Road, Fulbourn, CB21 5XE, United Kingdom > http://www.diegor.co.uk - https://os.mbed.com/linux-os/ > > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. > _______________________________________________ > Lava-users mailing list > Lava-users@lists.lavasoftware.org > https://lists.lavasoftware.org/mailman/listinfo/lava-users
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Thanks Milosz,
We will have a look.
Cheers
-----Original Message----- From: Milosz Wasilewski milosz.wasilewski@linaro.org Date: Tuesday, 27 August 2019 at 18:00 To: Diego Russo Diego.Russo@arm.com Cc: "lava-users@lists.lavasoftware.org" lava-users@lists.lavasoftware.org Subject: Re: [Lava-users] DUT in recovery mode under LAVA
On Tue, 27 Aug 2019 at 17:51, Diego Russo Diego.Russo@arm.com wrote: > > Hello, > > I re-use this old email I sent to set the context. Milosz said: " In this case the device needs to have jumpers in certain positions to enter recovery mode. This is done using relay board shorting or opening the jumper" > > We are interested to know what people are using to perform this automation. Do you have any board to suggest? Are you able to point us to the right direction?
Do you mean relay board? We use this: https://www.robot-electronics.co.uk/htm/eth008tech.htm It's pretty expensive but: - it's controlled over ethernet (no USB issues) - boards have unique MAC addresses so you can have more than 1 in your network.
milosz
> > Thanks > > > -----Original Message----- > From: Milosz Wasilewski milosz.wasilewski@linaro.org > Date: Wednesday, 10 July 2019 at 12:06 > To: Diego Russo Diego.Russo@arm.com > Cc: "lava-users@lists.lavasoftware.org" lava-users@lists.lavasoftware.org > Subject: Re: [Lava-users] DUT in recovery mode under LAVA > > On Wed, 10 Jul 2019 at 11:45, Diego Russo Diego.Russo@arm.com wrote: > > > > Hello, > > > > We have few device types in our LAVA instance that use ums mechanism to be deployed. This has worked well so far but we have now the need to test secure boot flow (BL1, BL2...) and we cannot rely anymore in u-boot for deploying them. > > Assuming we have the HW in place to put the DUT in recovery mode, how can we achieve this via LAVA? Do you have an existent example where you automate the recovery mode of a board? > > There is a 'recovery_mode' in LAVA. In order to use it you need to > define commands to enter and exit this mode in device dictionary. > Example here: > https://staging.validation.linaro.org/scheduler/device/staging-x15-bl-01/dev... > eth008_control script is used to manage relay board. Sources here: > https://git.linaro.org/lava/lava-lab.git/tree/shared/lab-scripts/eth008_cont... > > In this case the device needs to have jumpers in certain positions to > enter recovery mode. This is done using relay board shorting or > opening the jumper. The sequence then is: > - power off > - enter recovery > - power on > - do whatever is required to deliver software to the board (like dfu > upload, load u-boot over serial etc) > - power off > - exit recovery > - reboot > > You can than continue running other tests. Here is an example job on > TI's X15 with EVM: > https://staging.validation.linaro.org/scheduler/job/254958 > > Hope this helps :) > > milosz > > > > > Thanks > > > > -- > > Diego Russo | Staff Software Engineer | Mbed Linux OS > > ARM Ltd. CPC1, Capital Park, Cambridge Road, Fulbourn, CB21 5XE, United Kingdom > > http://www.diegor.co.uk - https://os.mbed.com/linux-os/ > > > > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. > > _______________________________________________ > > Lava-users mailing list > > Lava-users@lists.lavasoftware.org > > https://lists.lavasoftware.org/mailman/listinfo/lava-users > > > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
lava-users@lists.lavasoftware.org