*Dear Linaro validation support team,*
Our lab have the same problem about the device connection to LAVA.
And I had read the mail in Feb 12 *https://lists.linaro.org/pipermail/linaro-validation/2016-February/002646.ht... https://lists.linaro.org/pipermail/linaro-validation/2016-February/002646.html*
But there’ s some basic problems still could not be solved. (All the submit jobs so far could not execute on the real boards.)
1. How could I execute some basic commands in the device and get the report from bundle stream.
Like transmit file or simple instructions to the board. ( was preinstalled with image but no ssh sever function inside.)
2. How to configure device and server for serial connection and tftp transmission
3. How the LAVA dispatcher use the connection commands
The below is our setting about LAVA
a. We have installed LAVA on Debian Jessie PC and created administrator .
b. Device attached to the same PC was added to LAVA dispatcher
*device_type = test*
*hostname = test01* *connection_command = sg dialout "screen /dev/ttyS0 38400"*
Could you please provide some hints or link for further understanding.
Thanks,
kkbomb
On Tue, 8 Mar 2016 11:23:46 +0800 吳政軒 kkbomb78@gmail.com wrote:
*Dear Linaro validation support team,*
Our lab have the same problem about the device connection to LAVA.
Start with a known device type, e.g. KVM.
There is a video of the full process here: https://www.linaro.org/projects/test-validation/
You've done some of the steps but things will be a lot clearer if you follow the rest of the steps.
This video may also help: https://www.youtube.com/watch?v=M5kF3yPjYTk
It is always best to start with a known device type and resolve all initial problems that way. It doesn't matter what device(s) you want to use later - setting up a known device will help you become familiar with what you need to do for a different device later.
Automation is a complex task and although LAVA has simplified some elements of the work, it will always remain a complex task. All admins of a LAVA instance must be able to triage issues themselves, configure their own labs and develop their own systems to do the bits that LAVA will never be able to do. (e.g. standard lab network configuration and admin.)
But there’ s some basic problems still could not be solved. (All the submit jobs so far could not execute on the real boards.)
How could I execute some basic commands in the device and get
the report from bundle stream.
Use a known device type to become familiar with those steps.
Like transmit file or simple instructions to the board. ( was preinstalled with image but no ssh sever function inside.)
The Lava Test Shell Definition runs as a script on the device - just like any other script or program you could run once connected to the device. LAVA prepares a set of scripts which get added to the files which are available to the device.
How to configure device and server for serial connection and
tftp transmission
The tools you use will depend on your particular lab. ser2net is common and flexible for serial connections, many labs would find it much better than using sg or screen. tftp transmission typically does not need to be configured - the tftpd-hpa package is installed by lava-dispatcher dependencies and can be used as-installed.
How the LAVA dispatcher use the connection commands
The command is executed as-is when the connection needs to be made.
linaro-validation@lists.linaro.org