juno
UEFI
Arm 64-bit (AArch64)
Arm Juno Development Platform
Key facts
- Vendor
- Arm
- Bootloader family
- UEFI
- Architecture
- Arm 64-bit (AArch64) (from the template)
- Bootloader prompt
juno#- Connections
- serial
- Kernel load addresses
- image, booti
Overridable variables (1)
Variables set with a default value in this template. They can be overridden from the device dictionary or, for some of them, from the job context.
| Variable | Default |
|---|---|
| bootloader_prompt | 'juno#' |
Fixed settings (8)
| Variable | Value |
|---|---|
| vexpress_kernel_args | 'rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9' |
| vexpress_uboot_initrd_high | uboot_initrd_high|default('0xffffffffffffffff') |
| vexpress_uboot_fdt_high | uboot_fdt_high|default('0xffffffffffffffff') |
| vexpress_booti_kernel_addr | '0x80080000' |
| vexpress_booti_ramdisk_addr | '0x84000000' |
| vexpress_booti_dtb_addr | '0x83000000' |
| action_timeout_power_off | 35 |
| extra_nfsroot_args | ",vers=3" + extra_nfsroot_args|default('') |
{# device_type = 'juno' #}
{% extends 'vexpress.jinja2' %}
{% set vexpress_kernel_args = 'rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9' %}
{% set vexpress_uboot_initrd_high = uboot_initrd_high|default('0xffffffffffffffff') %}
{% set vexpress_uboot_fdt_high = uboot_fdt_high|default('0xffffffffffffffff') %}
{% set vexpress_booti_kernel_addr = '0x80080000' %}
{% set vexpress_booti_ramdisk_addr = '0x84000000' %}
{% set vexpress_booti_dtb_addr = '0x83000000' %}
{% set bootloader_prompt = bootloader_prompt|default('juno#') %}
{% set action_timeout_power_off = 35 %}
{% set extra_nfsroot_args = ",vers=3" + extra_nfsroot_args|default('') %}
# in milliseconds
character_delays:
deploy: 30
boot: 30
test: 30
hostname: 'juno-01'
devicetype: 'juno'
constants:
# POSIX os (not AOSP)
posix:
lava_test_sh_cmd: /bin/sh
lava_test_results_dir: /lava-%s
lava_test_shell_file: ~/.bashrc
# bootloader specific
barebox:
interrupt-prompt: 'Hit m for menu or any other key to stop autoboot'
interrupt-character: '
'
final-message: 'Starting kernel'
error-messages:
- '### ERROR ### Please RESET the board ###'
- 'ERROR: .*'
- '.*: Out of memory'
u-boot:
interrupt-prompt: 'Hit any key to stop autoboot'
interrupt-character: ' '
interrupt_ctrl_list: []
interrupt-newline: True
final-message: 'Starting kernel'
error-messages:
- 'Resetting CPU'
- 'Must RESET board to recover'
- 'TIMEOUT'
- 'Retry count exceeded'
- 'Retry time exceeded; starting again'
- 'The remote end did not respond in time.'
- 'File not found'
- 'Bad Linux ARM64 Image magic!'
- 'Wrong Ramdisk Image Format'
- 'Ramdisk image is corrupt or invalid'
- 'ERROR: Failed to allocate'
- 'TFTP error: trying to overwrite reserved memory'
- 'Bad Linux RISCV Image magic!'
- 'Wrong Image Format for boot'
- 'ERROR: Did not find a cmdline Flattened Device Tree'
- 'ERROR: RD image overlaps OS image'
- 'kernel_comp_addr_r or kernel_comp_size is not provided'
- 'zimage: Bad magic'
dfu-download: 'DOWNLOAD \.\.\. OK\r\nCtrl\+C to exit \.\.\.'
grub:
interrupt-prompt: 'for a command-line'
interrupt-character: 'c'
interrupt-newline: False
error-messages:
- "error: missing (.*) symbol."
- "error: couldn't send network packet"
- "error: destination unreachable"
- "error: couldn't autoconfigure"
- "error: timeout reading"
- "error: you need to load the kernel first."
- "error: file '(.*)' not found"
- "error: no such device"
- "error: disk '(.*)' not found"
- "error: unknown filesystem"
grub-efi:
interrupt-prompt: 'for a command-line'
interrupt-character: 'c'
error-messages:
- 'Undefined OpCode Exception PC at'
- 'Synchronous Exception at'
- "error: missing (.*) symbol."
- "error: couldn't send network packet"
- "error: destination unreachable"
- "error: couldn't autoconfigure"
- "error: timeout reading"
- "error: you need to load the kernel first."
- "error: file '(.*)' not found"
- "error: no such device"
- "error: disk '(.*)' not found"
- "error: unknown filesystem"
ipxe:
interrupt-prompt: 'Press Ctrl-B for the iPXE command line'
interrupt_ctrl_list: ['b']
error-messages:
- 'No configuration methods succeeded'
- 'Connection timed out'
depthcharge:
final-message: 'Starting kernel'
error-messages:
- 'Tftp failed.'
- 'Dhcp release failed.'
- 'No space left for ramdisk'
- 'TFTP failed for ramdisk.'
- 'Dhcp release failed.'
- 'Out of space adding TFTP server IP to the command line.'
- 'No network device.'
- 'Error code \d+( \([\w\s]+\))?\r\n'
# OS shutdown message
# Override: set as the shutdown-message parameter of an Action.
# SHUTDOWN_MESSAGE
shutdown-message: 'The system is going down for reboot NOW'
# Kernel starting message
kernel-start-message: 'Linux version [0-9]'
# Default shell prompt for AutoLogin
# DEFAULT_SHELL_PROMPT
default-shell-prompt: 'lava-test: # '
# pexpect.spawn maxread
# SPAWN_MAXREAD - in bytes, quoted as a string
# 1 to turn off buffering, pexpect default is 2000
# maximum may be limited by platform issues to 4092
# avoid setting searchwindowsize:
# Data before searchwindowsize point is preserved, but not searched.
spawn_maxread: '4092'
# Set the failure retry to default or override it
failure_retry: 1
# Override boot_retry
boot_retry:
parameters:
# device_ip or device_mac
pass: # sata_uuid_sd_uuid_usb_uuid
image:
kernel: '0x80080000'
ramdisk: '0x84000000'
dtb: '0x83000000'
booti:
kernel: '0x80080000'
ramdisk: '0x84000000'
dtb: '0x83000000'
usb_filesystem_label: 'VEMSD'
actions:
deploy:
parameters:
add_header: u-boot
mkimage_arch: arm64 # string to pass to mkimage -A when adding UBoot headers
append_dtb: False
use_xip: False
connections:
serial:
methods:
nfs:
ssh:
options:
- '-o'
- 'Compression=yes'
- '-o'
- 'PasswordAuthentication=no'
- '-o'
- 'LogLevel=FATAL'
host: ''
port: 22
user: root
identity_file: dynamic_vm_keys/lava
tftp:
vemsd:
parameters:
mcc_prompt: 'Cmd>'
msd_mount_cmd: 'usb_on'
flash_prompt: 'Flash>'
flash_enter_cmd: 'flash'
flash_erase_cmd: 'eraseall'
flash_erase_msg: 'Erasing Flash'
flash_exit_cmd: 'exit'
autorun_prompt: 'Press Enter to stop auto boot...'
mcc_reset_msg: 'Programming NOR Flash'
boot:
connections:
serial:
methods:
minimal:
uefi-menu:
parameters:
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:'
nfs:
- select:
items:
- 'Boot Manager'
wait: "Choice:"
- select:
items:
- 'Add Boot Device Entry'
wait: "Select the Boot Device:"
- select:
enter: '3' # Resolves to 1st NOR Flash device
wait: "File path of the EFI Application or the kernel:"
- select:
enter: 'zImage'
wait: 'Is an EFI Application?'
- select:
enter: n
wait: 'Has FDT support?'
- select:
enter: y
wait: "Add an initrd:"
- select:
enter: y
- select:
enter: 'ramdisk.img'
wait: "Arguments to pass to the binary:"
- select:
enter: "console=ttyAMA0,115200n8 root=/dev/nfs rw nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard,vers=3 rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9 ip=dhcp"
wait: "Description for this new Entry:"
- select:
enter: LAVA TEST NFS
wait: "Choice:"
- select:
items:
- "Return to main menu"
wait: "Start:"
- select:
items:
- LAVA TEST NFS
tftp:
- select:
items:
- 'Boot Manager'
wait: "Choice:"
- select:
items:
- 'Add Boot Device Entry'
wait: "Select the Boot Device:"
- select:
items:
- 'TFTP on 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: "console=ttyAMA0,115200n8 root=/dev/nfs rw nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard,vers=3 rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9 ip=dhcp"
wait: "Description for this new Entry:"
- select:
enter: LAVA TEST TFTP
wait: "Choice:"
- select:
items:
- "Update FDT path"
wait: "Select the Boot Device"
- select:
items:
- 'TFTP on MAC Address: ' # substitute the MAC in the template
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:
- LAVA TEST TFTP
uefi:
parameters:
bootloader_prompt: 'Shell>'
shell_interrupt_prompt: 'any other key to continue'
shell_interrupt_string: ' '
boot_message: 'Linux version'
shell_menu: shell
# Menu options
interrupt_prompt: The default boot selection will start in
interrupt_string: ' '
menu_boot_message: 'UEFI Interactive Shell'
menu_prompt: 'Start:'
item_markup:
- '['
- ']'
item_class: '0-9'
separator: ' '
line_separator: 'dos'
label_class: 'a-zA-Z0-9\s\:'
shell:
- select:
items:
- 'Shell'
nfs:
commands:
- norkern console=ttyAMA0,115200n8 root=/dev/nfs rw nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard,vers=3 rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9 ip=dhcp dtb=board.dtb
ssh:
u-boot:
parameters:
mkimage_arch: arm
bootloader_prompt: juno#
interrupt_prompt: Hit any key to stop autoboot
interrupt_char: ""
boot_message: Booting Linux
defaults:
commands:
- "boot"
nfs:
commands:
- "setenv serverip {SERVER_IP}"
- "setenv autoload no"
- "dhcp"
- "setenv bootdelay 1"
- "setenv ethact smc911x-0"
- "setenv initrd_high 0xffffffffffffffff"
- "setenv fdt_high 0xffffffffffffffff"
- "tftp {KERNEL_ADDR} {KERNEL}"
- "tftp {RAMDISK_ADDR} {RAMDISK}"
- "setenv initrd_size ${filesize}"
- "tftp {DTB_ADDR} {DTB}"
- "setenv bootargs console=ttyAMA0,115200n8 root=/dev/nfs rw nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard,vers=3 rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9 ip=dhcp"
- "{BOOTX}"
norflash:
commands:
- "setenv bootargs 'console=ttyAMA0,115200n8 root=/dev/nfs rw nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard,vers=3 rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9 ip=dhcp'"
- "boot"
ramdisk:
commands:
- "setenv serverip {SERVER_IP}"
- "setenv autoload no"
- "dhcp"
- "setenv bootdelay 1"
- "setenv ethact smc911x-0"
- "setenv initrd_high 0xffffffffffffffff"
- "setenv fdt_high 0xffffffffffffffff"
- "tftp {KERNEL_ADDR} {KERNEL}"
- "tftp {RAMDISK_ADDR} {RAMDISK}"
- "setenv initrd_size ${filesize}"
- "tftp {DTB_ADDR} {DTB}"
- "setenv bootargs 'console=ttyAMA0,115200n8 root=/dev/ram0 rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9 ip=dhcp'"
- "{BOOTX}"
sata:
commands:
- scsi scan
- "setenv bootdelay 1"
- "setenv ethact smc911x-0"
- "load scsi {ROOT_PART} {KERNEL_ADDR} {KERNEL}"
- "load scsi {ROOT_PART} {RAMDISK_ADDR} {RAMDISK}"
- "setenv initrd_size ${filesize}"
- "load scsi {ROOT_PART} {DTB_ADDR} {DTB}"
- "setenv bootargs 'console=ttyAMA0,115200n8 root={ROOT} rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9 ip=dhcp'"
- "{BOOTX}"
usb:
commands:
- "usb start"
- "setenv bootdelay 1"
- "setenv ethact smc911x-0"
- "load usb 0:{ROOT_PART} {KERNEL_ADDR} {KERNEL}"
- "load usb 0:{ROOT_PART} {RAMDISK_ADDR} {RAMDISK}"
- "setenv initrd_size ${filesize}"
- "load usb 0:{ROOT_PART} {DTB_ADDR} {DTB}"
- "setenv bootargs 'console=ttyAMA0,115200n8 root={ROOT} rootwait earlycon=pl011,0x7ff80000 debug systemd.log_target=null user_debug=31 androidboot.hardware=juno loglevel=9 ip=dhcp'"
- "{BOOTX}"
timeouts:
actions:
apply-overlay-image:
minutes: 2
dd-image:
minutes: 10
download-retry:
minutes: 15
http-download:
minutes: 5
lava-test-shell:
minutes: 3
nfs-deploy:
minutes: 10
power-off:
seconds: 35
bootloader-commands:
minutes: 3
bootloader-interrupt:
seconds: 180
u-boot-interrupt:
seconds: 120
umount-retry:
seconds: 45
auto-login-action:
minutes: 5
bootloader-action:
minutes: 3
uboot-action:
minutes: 4
uboot-commands:
minutes: 4
bootloader-retry:
minutes: 3
boot-qemu-image:
minutes: 2
boot-image-retry:
minutes: 2
flash-uboot-ums:
minutes: 20
musca-deploy:
minutes: 3
musca-boot:
minutes: 1
unmount-musca-usbmsd:
seconds: 30
pdu-reboot:
seconds: 30
reset-device:
seconds: 30
connections:
dd-image:
minutes: 10
uboot-commands:
seconds: 4
bootloader-commands:
seconds: 180
auto-login-action:
minutes: 5
bootloader-interrupt:
seconds: 30
u-boot-interrupt:
seconds: 120
lava-test-shell:
seconds: 10
lava-docker-test-shell:
seconds: 10
Rendered with the default values (no device dictionary), using LAVA's own template environment.