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