Help

Device dictionary download

Hostname
upsquare-01
Device type
upsquare
Extends
upsquare
1
{% extends 'upsquare.jinja2' %}
2
3
{% set hard_reset_command = '/usr/local/bin/acme-cli -s 192.168.66.2 reset 5' %}
4
{% set power_off_command = '/usr/local/bin/acme-cli -s 192.168.66.2 switch_off 5' %}
5
{% set power_on_command = '/usr/local/bin/acme-cli -s 192.168.66.2 switch_on 5' %}
6
7
{% set connection_command = 'telnet 127.0.0.1 63002' %}
1
2
3
constants:
4
5
# POSIX os (not AOSP)
6
posix:
7
lava_test_sh_cmd: /bin/sh
8
lava_test_results_dir: /lava-%s
9
lava_test_shell_file: ~/.bashrc
10
11
# bootloader specific
12
barebox:
13
interrupt-prompt: 'Hit m for menu or any other key to stop autoboot'
14
interrupt-character: '
15
'
16
final-message: 'Starting kernel'
17
error-messages:
18
- '### ERROR ### Please RESET the board ###'
19
- 'ERROR: .*'
20
- '.*: Out of memory'
21
u-boot:
22
interrupt-prompt: 'Hit any key to stop autoboot'
23
interrupt-character: ' '
24
interrupt_ctrl_list: []
25
interrupt-newline: True
26
final-message: 'Starting kernel'
27
error-messages:
28
- 'Resetting CPU'
29
- 'Must RESET board to recover'
30
- 'TIMEOUT'
31
- 'Retry count exceeded'
32
- 'Retry time exceeded; starting again'
33
- 'ERROR: The remote end did not respond in time.'
34
- 'File not found'
35
- 'Bad Linux ARM64 Image magic!'
36
- 'Wrong Ramdisk Image Format'
37
- 'Ramdisk image is corrupt or invalid'
38
- 'ERROR: Failed to allocate'
39
- 'TFTP error: trying to overwrite reserved memory'
40
- 'Bad Linux RISCV Image magic!'
41
- 'Wrong Image Format for boot'
42
- 'ERROR: Did not find a cmdline Flattened Device Tree'
43
- 'ERROR: RD image overlaps OS image'
44
dfu-download: 'DOWNLOAD \.\.\. OK\r\nCtrl\+C to exit \.\.\.'
45
grub:
46
interrupt-prompt: 'for a command-line'
47
interrupt-character: 'c'
48
interrupt-newline: False
49
error-messages:
50
- "error: missing (.*) symbol."
51
grub-efi:
52
interrupt-prompt: 'for a command-line'
53
interrupt-character: 'c'
54
error-messages:
55
- 'Undefined OpCode Exception PC at'
56
- 'Synchronous Exception at'
57
- "error: missing (.*) symbol."
58
ipxe:
59
interrupt-prompt: 'Press Ctrl-B for the iPXE command line'
60
interrupt_ctrl_list: ['b']
61
error-messages:
62
- 'No configuration methods succeeded'
63
- 'Connection timed out'
64
depthcharge:
65
final-message: 'Starting kernel'
66
error-messages:
67
- 'Tftp failed.'
68
- 'Dhcp release failed.'
69
- 'No space left for ramdisk'
70
- 'TFTP failed for ramdisk.'
71
- 'Dhcp release failed.'
72
- 'Out of space adding TFTP server IP to the command line.'
73
- 'No network device.'
74
- 'Error code \d+( \([\w\s]+\))?\r\n'
75
# OS shutdown message
76
# Override: set as the shutdown-message parameter of an Action.
77
# SHUTDOWN_MESSAGE
78
shutdown-message: 'The system is going down for reboot NOW'
79
80
# Kernel starting message
81
kernel-start-message: 'Linux version [0-9]'
82
83
# Default shell prompt for AutoLogin
84
# DEFAULT_SHELL_PROMPT
85
default-shell-prompt: 'lava-test: # '
86
87
# pexpect.spawn maxread
88
# SPAWN_MAXREAD - in bytes, quoted as a string
89
# 1 to turn off buffering, pexpect default is 2000
90
# maximum may be limited by platform issues to 4092
91
# avoid setting searchwindowsize:
92
# Data before searchwindowsize point is preserved, but not searched.
93
spawn_maxread: '4092'
94
95
# Set the failure retry to default or override it
96
failure_retry: 1
97
# Override boot_retry
98
boot_retry:
99
commands:
100
connect: telnet 127.0.0.1 63002
101
hard_reset: /usr/local/bin/acme-cli -s 192.168.66.2 reset 5
102
power_off: /usr/local/bin/acme-cli -s 192.168.66.2 switch_off 5
103
power_on: /usr/local/bin/acme-cli -s 192.168.66.2 switch_on 5
104
parameters:
105
# interfaces or device_ip or device_mac
106
107
pass: # sata_uuid_sd_uuid_usb_uuid
108
109
actions:
110
deploy:
111
connections:
112
serial:
113
lxc:
114
methods:
115
tftp:
116
nbd:
117
lxc:
118
boot:
119
connections:
120
serial:
121
lxc:
122
methods:
123
minimal:
124
125
grub:
126
parameters:
127
bootloader_prompt: grub>
128
needs_interrupt: True
129
ramdisk:
130
commands:
131
- net_bootp
132
- clear
133
- insmod linux
134
- clear
135
- insmod tftp
136
- clear
137
- 'linux (tftp,{SERVER_IP})/{KERNEL} console=ttyS0,115200 ip=dhcp '
138
- clear
139
- initrd (tftp,{SERVER_IP})/{RAMDISK}
140
141
- clear
142
- boot
143
nbd:
144
commands:
145
- clear
146
- insmod linux
147
- clear
148
- insmod tftp
149
- clear
150
- 'linux (tftp,{SERVER_IP})/{KERNEL} console=ttyS0,115200 ip=dhcp nbd.server={NBDSERVERIP} nbd.port={NBDSERVERPORT} root=/dev/ram0 ramdisk_size=16384 rootdelay=7 rw '
151
- clear
152
- initrd (tftp,{SERVER_IP})/{RAMDISK}
153
- boot
154
nfs:
155
commands:
156
- net_bootp
157
- 'linux (tftp,{SERVER_IP})/{KERNEL} console=ttyS0,115200 root=/dev/nfs rw nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard ip=dhcp '
158
- initrd (tftp,{SERVER_IP})/{RAMDISK}
159
160
- boot
161
debian-installer:
162
expect_shell: False
163
commands:
164
- net_bootp
165
- 'linux (tftp,{SERVER_IP})/{KERNEL} auto=true interface=eth0 priority=critical noshell BOOT_DEBUG=1 DEBIAN_FRONTEND=text url=tftp://{SERVER_IP}/{PRESEED_CONFIG} --- console=ttyS0,115200 debug verbose'
166
- initrd (tftp,{SERVER_IP})/{RAMDISK}
167
168
- boot
169
debian-installed:
170
commands:
171
- insmod part_gpt
172
- insmod ext2
173
- insmod part_msdos
174
- insmod chain
175
- ls
176
- ls (hd1,gpt1)
177
- sleep 10
178
- set
179
- set root=(hd1,gpt1)
180
- sleep 10
181
- ls (hd1,gpt1)
182
- sleep 10
183
- chainloader (hd1,gpt1)/efi/debian/grubaa64.efi
184
- sleep 10
185
- boot
186
timeouts:
187
actions:
188
apply-overlay-image:
189
minutes: 2
190
dd-image:
191
minutes: 10
192
download-retry:
193
minutes: 5
194
http-download:
195
minutes: 5
196
lava-test-shell:
197
minutes: 3
198
nfs-deploy:
199
minutes: 10
200
power-off:
201
seconds: 10
202
bootloader-commands:
203
minutes: 3
204
bootloader-interrupt:
205
seconds: 30
206
u-boot-interrupt:
207
seconds: 30
208
umount-retry:
209
seconds: 45
210
auto-login-action:
211
minutes: 2
212
bootloader-action:
213
minutes: 3
214
uboot-action:
215
minutes: 3
216
uboot-commands:
217
minutes: 3
218
bootloader-retry:
219
minutes: 3
220
boot-qemu-image:
221
minutes: 2
222
boot-image-retry:
223
minutes: 2
224
flash-uboot-ums:
225
minutes: 20
226
musca-deploy:
227
minutes: 3
228
musca-boot:
229
minutes: 1
230
unmount-musca-usbmsd:
231
seconds: 30
232
pdu-reboot:
233
seconds: 30
234
reset-device:
235
seconds: 30
236
connections:
237
dd-image:
238
minutes: 10
239
uboot-commands:
240
seconds: 30
241
bootloader-commands:
242
seconds: 30
243
auto-login-action:
244
minutes: 2
245
bootloader-interrupt:
246
seconds: 30
247
u-boot-interrupt:
248
seconds: 30
249
lava-test-shell:
250
seconds: 10
251
lava-docker-test-shell:
252
seconds: 10