On Tue, Feb 6, 2024 at 2:34 AM irreallich@126.com wrote:
Hi Milosz, the test pipeline on my side as below, the test device is power on by default.
- download the flash packet (include kernel, bootloader and some firmware of other mcu)
- power off the board , change bootup pin to flash mode, power on the board
- flash
- power off the board, change bootup pin to normal mode, power on the board
- get log by uart and download the debug overlay by shell cmd(scp, http, git are all ok)
if you can download from the board using wget/curl, then you only need to add transfer_overlay to your boot section. Example: transfer_overlay: download_command: cd /home ; wget unpack_command: tar -C /home/ -xzf
You'll need to experiment with unpack_command and context/lava_test_results_dir to get the overlay to a proper directory. In the example above the following setting should work context: lava_test_results_dir: /home/lava-%s
- login 3 or 4 ssh clent , why we need login with ssh, we need to start other terminals to monitor the MCU firmware log. These MCUs are part of the chip, we are a HSA system
https://docs.lavasoftware.org/lava/connections.html
I've never done this, so the docs are the only resource I can help with.
- start the test by uart or ssh
- power off -> power on -> step 5,6,7 -> power off -> power on -> step 5,6,7 -> power off -> .....
I would strongly suggest running just one sequence in one test job. If you want to run more, you'll need to have a separate namespace for each deploy/boot/test section. Without it LAVA starts overwriting overlays and your job executes wrong tests (or more likely fails altogether). At this point the setup gets really complicated and hard to maintain. It can be done, but it's good to think about running it long term.
Best Regards, Milosz
How do I implement this kind of testing? _______________________________________________ lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s