Help

Device dictionary download

Extends
am335x-sancloud-bbe
1
{% extends 'am335x-sancloud-bbe.jinja2' %}
2
3
{% set hard_reset_command = '/usr/local/bin/acme-cli -s 192.168.66.2 reset 4' %}
4
{% set power_off_command = '/usr/local/bin/acme-cli -s 192.168.66.2 switch_off 4' %}
5
{% set power_on_command = '/usr/local/bin/acme-cli -s 192.168.66.2 switch_on 4' %}
6
7
{% set connection_command = 'telnet 127.0.0.1 63005' %}
1
2
3
# in milliseconds
4
character_delays:
5
boot: 10
6
constants:
7
8
# POSIX os (not AOSP)
9
posix:
10
lava_test_sh_cmd: /bin/sh
11
lava_test_results_dir: /lava-%s
12
lava_test_shell_file: ~/.bashrc
13
14
# bootloader specific
15
barebox:
16
interrupt-prompt: 'Hit m for menu or any other key to stop autoboot'
17
interrupt-character: '
18
'
19
final-message: 'Starting kernel'
20
error-messages:
21
- '### ERROR ### Please RESET the board ###'
22
- 'ERROR: .*'
23
- '.*: Out of memory'
24
u-boot:
25
interrupt-prompt: 'Hit any key to stop autoboot'
26
interrupt-character: ' '
27
interrupt_ctrl_list: []
28
interrupt-newline: True
29
final-message: 'Starting kernel'
30
error-messages:
31
- 'Resetting CPU'
32
- 'Must RESET board to recover'
33
- 'TIMEOUT'
34
- 'Retry count exceeded'
35
- 'Retry time exceeded; starting again'
36
- 'ERROR: The remote end did not respond in time.'
37
- 'File not found'
38
- 'Bad Linux ARM64 Image magic!'
39
- 'Wrong Ramdisk Image Format'
40
- 'Ramdisk image is corrupt or invalid'
41
- 'ERROR: Failed to allocate'
42
- 'TFTP error: trying to overwrite reserved memory'
43
- 'Bad Linux RISCV Image magic!'
44
- 'Wrong Image Format for boot'
45
- 'ERROR: Did not find a cmdline Flattened Device Tree'
46
- 'ERROR: RD image overlaps OS image'
47
dfu-download: 'DOWNLOAD \.\.\. OK\r\nCtrl\+C to exit \.\.\.'
48
grub:
49
interrupt-prompt: 'for a command-line'
50
interrupt-character: 'c'
51
interrupt-newline: False
52
error-messages:
53
- "error: missing (.*) symbol."
54
grub-efi:
55
interrupt-prompt: 'for a command-line'
56
interrupt-character: 'c'
57
error-messages:
58
- 'Undefined OpCode Exception PC at'
59
- 'Synchronous Exception at'
60
- "error: missing (.*) symbol."
61
ipxe:
62
interrupt-prompt: 'Press Ctrl-B for the iPXE command line'
63
interrupt_ctrl_list: ['b']
64
error-messages:
65
- 'No configuration methods succeeded'
66
- 'Connection timed out'
67
depthcharge:
68
final-message: 'Starting kernel'
69
error-messages:
70
- 'Tftp failed.'
71
- 'Dhcp release failed.'
72
- 'No space left for ramdisk'
73
- 'TFTP failed for ramdisk.'
74
- 'Dhcp release failed.'
75
- 'Out of space adding TFTP server IP to the command line.'
76
- 'No network device.'
77
- 'Error code \d+( \([\w\s]+\))?\r\n'
78
# OS shutdown message
79
# Override: set as the shutdown-message parameter of an Action.
80
# SHUTDOWN_MESSAGE
81
shutdown-message: 'The system is going down for reboot NOW'
82
83
# Kernel starting message
84
kernel-start-message: 'Linux version [0-9]'
85
86
# Default shell prompt for AutoLogin
87
# DEFAULT_SHELL_PROMPT
88
default-shell-prompt: 'lava-test: # '
89
90
# pexpect.spawn maxread
91
# SPAWN_MAXREAD - in bytes, quoted as a string
92
# 1 to turn off buffering, pexpect default is 2000
93
# maximum may be limited by platform issues to 4092
94
# avoid setting searchwindowsize:
95
# Data before searchwindowsize point is preserved, but not searched.
96
spawn_maxread: '4092'
97
98
# Set the failure retry to default or override it
99
failure_retry: 1
100
# Override boot_retry
101
boot_retry:
102
commands:
103
connect: telnet 127.0.0.1 63005
104
hard_reset: /usr/local/bin/acme-cli -s 192.168.66.2 reset 4
105
power_off: /usr/local/bin/acme-cli -s 192.168.66.2 switch_off 4
106
power_on: /usr/local/bin/acme-cli -s 192.168.66.2 switch_on 4
107
parameters:
108
# interfaces or device_ip or device_mac
109
110
pass: # sata_uuid_sd_uuid_usb_uuid
111
112
uimage:
113
kernel: '0x82000000'
114
ramdisk: '0x83000000'
115
dtb: '0x88000000'
116
tee: '0x83000000'
117
bootm:
118
kernel: '0x82000000'
119
ramdisk: '0x83000000'
120
dtb: '0x88000000'
121
tee: '0x83000000'
122
zimage:
123
kernel: '0x82000000'
124
ramdisk: '0x83000000'
125
dtb: '0x88000000'
126
tee: '0x83000000'
127
bootz:
128
kernel: '0x82000000'
129
ramdisk: '0x83000000'
130
dtb: '0x88000000'
131
tee: '0x83000000'
132
133
134
135
actions:
136
deploy:
137
parameters:
138
add_header: u-boot
139
mkimage_arch: arm # string to pass to mkimage -A when adding UBoot headers
140
append_dtb: False
141
use_xip: False
142
connections:
143
lxc:
144
fastboot:
145
serial:
146
methods:
147
image:
148
lxc:
149
overlay:
150
usb:
151
tftp:
152
nbd:
153
ssh:
154
options:
155
- '-o'
156
- 'Compression=yes'
157
- '-o'
158
- 'PasswordAuthentication=no'
159
- '-o'
160
- 'LogLevel=FATAL'
161
162
host: ""
163
port: 22
164
user: "root"
165
identity_file: "dynamic_vm_keys/lava"
166
167
boot:
168
connections:
169
lxc:
170
fastboot:
171
serial:
172
methods:
173
minimal:
174
ssh:
175
dfu:
176
implementation: u-boot
177
reset_works: False
178
parameters:
179
enter-commands:
180
command: dfu-util
181
u-boot:
182
parameters:
183
bootloader_prompt: =>
184
interrupt_prompt: Press SPACE to abort autoboot
185
interrupt_char: ""
186
needs_interrupt: True
187
# method specific stanza
188
ums:
189
commands:
190
- "ums 0 mmc 0"
191
nfs:
192
commands:
193
- "setenv autoload no"
194
- "setenv initrd_high 0xffffffff"
195
- "setenv fdt_high 0xffffffff"
196
- "dhcp"
197
- "setenv serverip {SERVER_IP}"
198
- "tftp {KERNEL_ADDR} {KERNEL}"
199
- "tftp {RAMDISK_ADDR} {RAMDISK}"
200
- "tftp {TEE_ADDR} {TEE}"
201
- "setenv initrd_size ${filesize}"
202
- "tftp {DTB_ADDR} {DTB}"
203
# Always quote the entire string if the command includes a colon to support correct YAML.
204
- "setenv bootargs 'console=ttyO0,115200n8 root=/dev/nfs rw nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard ip=dhcp'"
205
- "{BOOTX}"
206
nbd:
207
commands:
208
- "setenv autoload no"
209
- "setenv initrd_high 0xffffffff"
210
- "setenv fdt_high 0xffffffff"
211
- "dhcp"
212
- "setenv serverip {SERVER_IP}"
213
- "tftp {KERNEL_ADDR} {KERNEL}"
214
- "tftp {RAMDISK_ADDR} {RAMDISK}"
215
- "tftp {TEE_ADDR} {TEE}"
216
- "setenv initrd_size ${filesize}"
217
- "tftp {DTB_ADDR} {DTB}"
218
# Always quote the entire string if the command includes a colon to support correct YAML.
219
- "setenv bootargs 'console=ttyO0,115200n8 rw nbd.server={NBDSERVERIP} nbd.port={NBDSERVERPORT} root=/dev/ram0 ramdisk_size=16384 rootdelay=7 ip=dhcp verbose earlyprintk systemd.log_color=false ${extraargs} rw'"
220
- "{BOOTX}"
221
ramdisk:
222
commands:
223
- "setenv autoload no"
224
- "setenv initrd_high 0xffffffff"
225
- "setenv fdt_high 0xffffffff"
226
- "dhcp"
227
- "setenv serverip {SERVER_IP}"
228
- "tftp {KERNEL_ADDR} {KERNEL}"
229
- "tftp {RAMDISK_ADDR} {RAMDISK}"
230
- "tftp {TEE_ADDR} {TEE}"
231
- "setenv initrd_size ${filesize}"
232
- "tftp {DTB_ADDR} {DTB}"
233
- "setenv bootargs 'console=ttyO0,115200n8 root=/dev/ram0 ip=dhcp'"
234
- "{BOOTX}"
235
usb:
236
commands:
237
- "usb start"
238
- "setenv autoload no"
239
- "load usb :{ROOT_PART} {KERNEL_ADDR} {KERNEL}"
240
- "load usb :{ROOT_PART} {RAMDISK_ADDR} {RAMDISK}"
241
- "setenv initrd_size ${filesize}"
242
- "load usb :{ROOT_PART} {DTB_ADDR} {DTB}"
243
- "console=ttyO0,115200n8 root={ROOT} ip=dhcp"
244
- "{BOOTX}"
245
sata:
246
commands:
247
- "scsi scan"
248
- "setenv autoload no"
249
- "load scsi {ROOT_PART} {KERNEL_ADDR} {KERNEL}"
250
- "load scsi {ROOT_PART} {RAMDISK_ADDR} {RAMDISK}; setenv initrd_size ${filesize}"
251
- "load scsi {ROOT_PART} {DTB_ADDR} {DTB}"
252
- "setenv bootargs 'console=ttyO0,115200n8 root={ROOT} ip=dhcp'"
253
- "{BOOTX}"
254
uuu:
255
options:
256
usb_otg_path:
257
usb_otg_path_command:
258
corrupt_boot_media_command:
259
power_off_before_corrupt_boot_media:
260
docker_image: ""
261
remote_options: ""
262
bcu_board_name: ""
263
bcu_board_id: ""
264
bcu_board_id_command:
265
has_bcu_commands: ""
266
267
timeouts:
268
actions:
269
apply-overlay-image:
270
minutes: 2
271
dd-image:
272
minutes: 10
273
download-retry:
274
minutes: 5
275
http-download:
276
minutes: 5
277
lava-test-shell:
278
minutes: 3
279
nfs-deploy:
280
minutes: 10
281
power-off:
282
seconds: 10
283
bootloader-commands:
284
minutes: 3
285
bootloader-interrupt:
286
seconds: 30
287
u-boot-interrupt:
288
seconds: 30
289
umount-retry:
290
seconds: 45
291
auto-login-action:
292
minutes: 2
293
bootloader-action:
294
minutes: 3
295
uboot-action:
296
minutes: 3
297
uboot-commands:
298
minutes: 3
299
bootloader-retry:
300
minutes: 3
301
boot-qemu-image:
302
minutes: 2
303
boot-image-retry:
304
minutes: 2
305
flash-uboot-ums:
306
minutes: 20
307
musca-deploy:
308
minutes: 3
309
musca-boot:
310
minutes: 1
311
unmount-musca-usbmsd:
312
seconds: 30
313
pdu-reboot:
314
seconds: 30
315
reset-device:
316
seconds: 30
317
connections:
318
dd-image:
319
minutes: 10
320
uboot-commands:
321
seconds: 30
322
bootloader-commands:
323
seconds: 30
324
auto-login-action:
325
minutes: 2
326
bootloader-interrupt:
327
seconds: 30
328
u-boot-interrupt:
329
seconds: 30
330
lava-test-shell:
331
seconds: 10
332
lava-docker-test-shell:
333
seconds: 10