Hi, @Milosz Wasilewski and @Stefan , Thanks for your suggestion and I am sorry for late reply. I have made some attempts to build the contents of gitlab or nfs through lava, but I think your suggestion are good idea, I will try it in the future. Now I try to make a device template to connect to serial or ssh to run some case, but i am failed. My system don't have the part about uboot, kernel , we don't need to download thand flasher them. There are mcu and soc on my board, two serial port for them( ttyusb0:mcu, ttyusb1:soc), the hostpc ( it is used for lava worker) connected to the two serial ports, and reboot soc cmd is echo "soc boot" > /dev/ttyUSB0 . then we can see boot log at ttyUSB1. I hope to create a device template and job use to run some command on the soc shell , e.g dmesg. I seems sample but hard for me , the following is the code , the job can't be started, the state always submitted.
/tmp/test.sh with one cmd echo "soc boot" > /dev/ttyUSB0 telnet localhost 10009 works on the shell.
divice template:
/etc/lava-server/dispatcher-config $ cat devices/orinshort-test.jinja2 {# orin test short #} {% extends 'orinshort.jinja2' %}
{% set connection_list = ['usb1'] %} {% set connection_tags = {'usb1': ['primary', 'telnet']} %} {% set connection_commands = {'usb1': 'telnet localhost 10009'} %}
{% set flasher_reset_commands = ['/tmp/test.sh'] %}
{% block body %}
actions: deploy: methods: flasher: commands: {{ flasher_reset_commands }}
connections: serial:
{% endblock body %} /etc/lava-server/dispatcher-config $
Job yaml:
device_type: orinshort job_name: for orinshort device
timeouts: job: minutes: 20 action: minutes: 15 priority: medium visibility: public
actions: - deploy: timeout: minutes: 10 to: flasher images: kernel: url: http://10.19.207.190/static/docs/v2/contents.html#contents-first-steps-using
- boot: timeout: minutes: 10 method: fastboot