aboutsummaryrefslogtreecommitdiff
path: root/lava_scheduler_app/tests/device-types/juno-uefi.jinja2
blob: 43b03e37d306d930775631a056b04df3c24f19cd (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{% extends 'base.jinja2' %}

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

{% set tftp_bootargs = tftp_bootargs | default('console=' + console_device + ',' + baud_rate + ' earlyprintk=uart8250-32bit,0x1c020000 debug root=/dev/nfs rw nfsroot={SERVER_IP}:{NFSROOTFS},tcp,hard,intr {{ base_ip_args }}') %}
{% set nor_flash_bootargs = nor_flash_bootargs | default('dtb=board.dtb initrd=ramdisk.img console=' + console_device + ',' + baud_rate + ' androidboot.hardware=juno systemd.log_target=null rootwait root=/dev/sda1') %}

{% if not hard_reset_command %}
    {% if power_off_command and power_on_command %}
        {% set hard_reset_command = power_off_command + '; sleep 10; ' + power_on_command %}
    {% endif %}
{% endif %}

{% block body %}

device_type: juno

character_delays:
  boot: 50

actions:
  deploy:
    # list of deployment methods which this device supports
    methods:
      tftp:
  boot:
    # list of connection methods which this device supports
    connections:
      serial:
    # list of boot methods which this device supports.
    methods:
      uefi-menu:
        parameters:
          character_delay: 300
          interrupt_prompt: The default boot selection will start in
          interrupt_string: ' '
          item_markup:
            - "["
            - "]"
          item_class: '0-9'
          separator: ' '
          label_class: 'a-zA-Z0-9\s\:'
          bootloader_prompt: 'Start:'
          boot_message: "Loaded: LinuxImage"
          # interrupt: # character needed to interrupt u-boot, single whitespace by default
          # method specific stanza
        nor_flash:
        -  select:
            items:
             - 'Boot Manager'
            wait: "Choice:"
        - select:
            items:
               - 'Add Boot Device Entry'
            wait: "Select the Boot Device:"
        - select:
            items:
               - 'NOR Flash'
            wait: "File path of the EFI Application or the kernel:"
        - select:
            enter: norkern
            wait: "Is an EFI Application?"
        - select:
            enter: n
            wait: "Has FDT support?"
        - select:
            enter: y
            wait: "Add an initrd:"
        - select:
            enter: n
            wait: 'Arguments to pass to the binary:'
        - select:
            enter: "{{ nor_flash_bootargs }}"
            wait: 'Description for this new Entry:'
        - select:
            enter: '{TEST_MENU_NAME}'
            wait: "Choice:"
        - select:
            items:
              - 'Update FDT path'
            wait: "Select the Boot Device:"
        - select:
            items:
               - 'TFTP on MAC Address: {{ mac_address }}'
            wait: "File path of the FDT blob:"
        - select:
            enter: 'board.dtb'
            wait: "Choice:"
        - select:
            items:
               - 'Return to main menu'
            wait: "Start:"
        - select:
            items:
              - '{TEST_MENU_NAME}'
        tftp:
        - select:
            items:
             - 'Boot Manager'
            wait: "Choice:"
        - select:
            items:
               - 'Add Boot Device Entry'
            wait: "Select the Boot Device:"
        - select:
            items:
               - 'TFTP on MAC Address: {{ mac_address }}'
            wait: "Get the IP address from DHCP:"
        - select:
            enter: y
            wait: "Get the TFTP server IP address:"
        - select:
            enter: '{SERVER_IP}'
            wait: "File path of the EFI Application or the kernel :"
        - select:
            enter: '{KERNEL}'
            wait: "Is an EFI Application?"
        - select:
            enter: n
            wait: "Has FDT support?"
        - select:
            enter: y
            wait: "Add an initrd:"
        - select:
            enter: n
            wait: 'Arguments to pass to the binary:'
        - select:
            enter: "{{ tftp_bootargs }}"
            wait: 'Description for this new Entry:'
        - select:
            enter: '{TEST_MENU_NAME}'
            wait: "Choice:"
        - select:
            items:
              - 'Update FDT path'
            wait: "Select the Boot Device:"
        - select:
            items:
               - 'TFTP on MAC Address: {{ mac_address }}'
            wait: "Get the IP address from DHCP:"
        - select:
            enter: y
            wait: "Get the TFTP server IP address:"
        - select:
            enter: '{SERVER_IP}'
            wait: "File path of the FDT blob :"
        - select:
            enter: '{DTB}'
            wait: "Choice:"
        - select:
            items:
               - 'Return to main menu'
            wait: "Start:"
        - select:
            items:
              - '{TEST_MENU_NAME}'
{% endblock body %}


{% block vland %}
parameters:
  media:  # four USB slots.
    usb:
      UUID-required: True
      {{ usb_label|default('Kingston_DataTraveler') }}:
        uuid: "{{ usb_uuid }}"
        device_id: {{ usb_device_id|default(0) }}  # the bootloader device id for this media on the 'usb' interface
{% endblock vland %}