On Thu, Oct 12, 2023 at 12:01 PM irreallich@126.com wrote:
Hi Stefan, Thanks for the clarification, I'm still very confused. Today I hope to be able to create the simplest device template and job, just reboot the soc, connect to the serial port and print the boot log on the job web. I have tried many times today and they all failed. The following is my device and job code . Nothing except flasher_reset_commands is executed, flasher_reset_commands execution result is invalid, no /tmp/123 be created. could you tell me what's wrong?
log of job web:
Calling: 'echo' '1111111' '>' '/tmp/123'
1111111 > /tmp/123
Returned 0 in 0 seconds end: 1.1 deploy-flasher (duration 00:00:00) [common] end: 1 deploy-flasher-retry (duration 00:00:00) [common] start: 2 finalize (timeout 00:15:00) [common] start: 2.1 power-off (timeout 00:00:10) [common] end: 2.1 power-off (duration 00:00:00) [common] start: 2.2 read-feedback (timeout 00:15:00) [common] No connection for namespace common end: 2.2 read-feedback (duration 00:00:00) [common] end: 2 finalize (duration 00:00:00) [common] Cleaning after the job
This all looks good to me. Your job only does deployment, so this is what should be expected. You need "boot" action in the job to see any more work done by LAVA.
my device: {# orin test short #} {% extends 'orinshort.jinja2' %}
{% set connection_commands = 'telnet localhost 10009' %} {% set hard_reset_command = 'echo "tegrareset x1" > /dev/ttyUSB1' %} {% set power_on_command = 'echo "54321" > /tmp/poweron' %} {% set power_off_command = 'echo "12345" > /tmp/poweroff' %}
{% set flasher_reset_commands = ['echo "1111111" > /tmp/123'] %}
this is what you asked LAVA to do and it was done.
Best Regards, Milosz
{% block body %}
actions: deploy: methods: flasher: commands: {{ flasher_reset_commands }} boot: connections: serial: methods: minimal:
{% endblock body %} /etc/lava-server/dispatcher-config $
my job:
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
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