aboutsummaryrefslogtreecommitdiff
path: root/lava_scheduler_app/tests/device-types/base-depthcharge.jinja2
blob: d98c092df5afaef3fb48988279687fcc613c9f95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{% extends 'base.jinja2' %}

{% set console_device = console_device | default('ttyS0') %}
{% set baud_rate = baud_rate | default(115200) %}
{% set kernel_args = extra_kernel_args | default(base_kernel_args) %}

{% set base_depthcharge_commands = depthcharge_tftp_commands | default(
"          - tftpboot {SERVER_IP} {FIT} {CMDLINE}
") -%}

{% block vland %}
{{ super() }}
{% if fit_kernel_load_address %}
  load_address: '{{ fit_kernel_load_address | default('0') }}'
{% endif %}
{% endblock vland %}

{% block body %}
device_type: {{ device_type | default('depthcharge') }}

actions:
  deploy:
{% if mkimage_fit_arch %}
    parameters:
      mkimage_arch: {{ mkimage_fit_arch }}
{% endif %}
    methods:
      tftp:
  boot:
    connections:
      serial:
    methods:
      depthcharge:
        parameters:
          start_message: {{ start_message | default('Starting netboot') }}
          bootloader_prompt: "{{ bootloader_prompt | default('dpch:') }}"
          boot_message: {{ boot_message | default('Booting Linux') }}
        nfs:
          cmdline: {{ kernel_args }} console={{ console_device }},{{ baud_rate }}n8 root=/dev/nfs rw {{ base_nfsroot_args }} {{ base_ip_args }}
          commands:
{{ base_depthcharge_commands }}
        ramdisk:
          cmdline: {{ kernel_args }} console={{ console_device }},{{ baud_rate }}n8 root=/dev/ram0 {{ base_ip_args }}
          commands:
{{ base_depthcharge_commands }}
{% endblock body %}