Difference between revisions of "R-Car/LAVA"

From eLinux.org
Jump to: navigation, search
m (added placeholder for ADB section)
m (minor improvements to serial console text)
Line 10: Line 10:
  
 
== Serial console ==
 
== Serial console ==
LAVA interacts with the DUT via a serial console. A typical test job will involve restarting the DUT through a power cycle. This can be for multiple reasons. Power cycling means each job starts with the same setup. Another is after flashing the DUT.
+
LAVA interacts with the DUT via a serial console. A typical test job will involve restarting the DUT through a power cycle. This can be for multiple reasons. Power cycling means each job starts with the same setup for example. Another is restarting after flashing the DUT to use the flashed software.
  
 
The challenge is therefore for LAVA to maintain a serial console connection through such resets. Some R-Car platforms reset the serial on power on causing LAVA to lose the ser2net/telnet console link and therefore its ability to control the DUT. This can be mitigated by setting the LOCAL option for the DUT in the LAVA Worker ser2net configuration file.
 
The challenge is therefore for LAVA to maintain a serial console connection through such resets. Some R-Car platforms reset the serial on power on causing LAVA to lose the ser2net/telnet console link and therefore its ability to control the DUT. This can be mitigated by setting the LOCAL option for the DUT in the LAVA Worker ser2net configuration file.
  
=== When using lava-docker ===
+
=== lava-docker ===
 
If you are managing your LAVA instance using [https://github.com/kernelci/lava-docker lava-docker] (a project that simplifies LAVA instances using Docker) you can automate this by setting the option in your boards.yaml:
 
If you are managing your LAVA instance using [https://github.com/kernelci/lava-docker lava-docker] (a project that simplifies LAVA instances using Docker) you can automate this by setting the option in your boards.yaml:
  

Revision as of 08:29, 19 August 2021

Introduction

This page contains information on using the LAVA CI project on R-Car platforms.

It is not intended as a complete 'end to end' tutorial on running LAVA. There are numerous sources for such tutorials including the official LAVA documentation. Instead, the aim is to explain nuances of using R-Car platforms in LAVA and to accelerate integration.

Glossary

DUT = Device Under Test, e.g. hardware platform to be tested

Serial console

LAVA interacts with the DUT via a serial console. A typical test job will involve restarting the DUT through a power cycle. This can be for multiple reasons. Power cycling means each job starts with the same setup for example. Another is restarting after flashing the DUT to use the flashed software.

The challenge is therefore for LAVA to maintain a serial console connection through such resets. Some R-Car platforms reset the serial on power on causing LAVA to lose the ser2net/telnet console link and therefore its ability to control the DUT. This can be mitigated by setting the LOCAL option for the DUT in the LAVA Worker ser2net configuration file.

lava-docker

If you are managing your LAVA instance using lava-docker (a project that simplifies LAVA instances using Docker) you can automate this by setting the option in your boards.yaml:

      ser2net_options:
        - LOCAL

ADB/Fastboot/Android

Coming soon..