sun5i-a13-olinuxino-micro
U-Boot
Arm 32-bit
Olimex A13-OLinuXino-MICRO
Inheritance
- sun5i-a13-olinuxino-micro
- sunxi-common
- base-uboot
- base
Key facts
- Vendor
- Allwinner
- Bootloader family
- U-Boot
- Architecture
- Arm 32-bit (from the template)
- Console device
ttyS0- Baud rate
115200- Bootloader prompt
=>- mkimage arch
arm- Connections
- fastboot, serial
- Kernel load addresses
- image, booti, bootz, zimage
Fixed settings (2)
| Variable | Value |
|---|---|
| uboot_mkimage_arch | 'arm' |
| boot_character_delay | 10 |
{% extends 'sunxi-common.jinja2' %}
{% set uboot_mkimage_arch = 'arm' %}
# Without this, all uboot cmdline are truncated
{% set boot_character_delay = 10 %}
# in milliseconds
character_delays:
boot: 10
hostname: 'sun5i-a13-olinuxino-micro-01'
devicetype: 'sun5i-a13-olinuxino-micro'
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: '0x40000000'
ramdisk: '0x43300000'
dtb: '0x43000000'
tee: '0x83000000'
dtbo: '0x93c00000'
booti:
kernel: '0x40000000'
ramdisk: '0x43300000'
dtb: '0x43000000'
tee: '0x83000000'
dtbo: '0x93c00000'
zimage:
kernel: '0x42000000'
ramdisk: '0x43300000'
dtb: '0x43000000'
tee: '0x83000000'
dtbo: '0x93c00000'
bootz:
kernel: '0x42000000'
ramdisk: '0x43300000'
dtb: '0x43000000'
tee: '0x83000000'
dtbo: '0x93c00000'
dtb_base_resize: 1048576
actions:
deploy:
parameters:
add_header: u-boot
mkimage_arch: arm # string to pass to mkimage -A when adding UBoot headers
append_dtb: False
use_xip: False
connections:
fastboot:
serial:
methods:
image:
overlay:
usb:
tftp:
nbd:
ssh:
options:
- '-o'
- 'Compression=yes'
- '-o'
- 'PasswordAuthentication=no'
- '-o'
- 'LogLevel=FATAL'
host: ""
port: 22
user: "root"
identity_file: "dynamic_vm_keys/lava"
boot:
connections:
fastboot:
serial:
methods:
minimal:
ssh:
dfu:
implementation: u-boot
reset_works: False
parameters:
enter-commands:
command: dfu-util
u-boot:
parameters:
bootloader_prompt: =>
interrupt_prompt: Hit any key to stop autoboot
interrupt_char: ""
needs_interrupt: True
# method specific stanza
ums:
commands:
- "ums 0 mmc 0"
nfs:
commands:
- "setenv autoload no"
- "setenv initrd_high 0xffffffff"
- "setenv fdt_high 0xffffffff"
- "dhcp"
- "setenv serverip {SERVER_IP}"
- "tftp {KERNEL_ADDR} {KERNEL}"
- "tftp {RAMDISK_ADDR} {RAMDISK}"
- "tftp {TEE_ADDR} {TEE}"
- "setenv initrd_size ${filesize}"
- "tftp {DTB_ADDR} {DTB}"
# Always quote the entire string if the command includes a colon to support correct YAML.
- "setenv bootargs 'console=ttyS0,115200n8 root=/dev/nfs rw nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard ip=dhcp'"
- "{BOOTX}"
nbd:
commands:
- "setenv autoload no"
- "setenv initrd_high 0xffffffff"
- "setenv fdt_high 0xffffffff"
- "dhcp"
- "setenv serverip {SERVER_IP}"
- "tftp {KERNEL_ADDR} {KERNEL}"
- "tftp {RAMDISK_ADDR} {RAMDISK}"
- "tftp {TEE_ADDR} {TEE}"
- "setenv initrd_size ${filesize}"
- "tftp {DTB_ADDR} {DTB}"
# Always quote the entire string if the command includes a colon to support correct YAML.
- "setenv bootargs 'console=ttyS0,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'"
- "{BOOTX}"
ramdisk:
commands:
- "setenv autoload no"
- "setenv initrd_high 0xffffffff"
- "setenv fdt_high 0xffffffff"
- "dhcp"
- "setenv serverip {SERVER_IP}"
- "tftp {KERNEL_ADDR} {KERNEL}"
- "tftp {RAMDISK_ADDR} {RAMDISK}"
- "tftp {TEE_ADDR} {TEE}"
- "setenv initrd_size ${filesize}"
- "tftp {DTB_ADDR} {DTB}"
- "setenv bootargs 'console=ttyS0,115200n8 root=/dev/ram0 ip=dhcp'"
- "{BOOTX}"
usb:
commands:
- "usb start"
- "setenv autoload no"
- "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}"
- "console=ttyS0,115200n8 root={ROOT} ip=dhcp"
- "{BOOTX}"
sata:
commands:
- "scsi scan"
- "setenv autoload no"
- "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=ttyS0,115200n8 root={ROOT} ip=dhcp'"
- "{BOOTX}"
uuu:
options:
usb_otg_path:
usb_otg_path_command:
corrupt_boot_media_command:
power_off_before_corrupt_boot_media:
docker_image: ""
remote_options: ""
bcu_board_name: ""
bcu_board_id: ""
bcu_board_id_command:
has_bcu_commands: ""
additional_bcu_cleanup_commands: []
grub:
parameters:
bootloader_prompt: 'grub>'
needs_interrupt: true
grub-efi:
parameters:
bootloader_prompt: 'grub>'
needs_interrupt: true
test:
methods:
docker:
global_options:
-
options:
-
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: 10
bootloader-commands:
minutes: 3
bootloader-interrupt:
seconds: 30
u-boot-interrupt:
seconds: 30
umount-retry:
seconds: 45
auto-login-action:
minutes: 2
bootloader-action:
minutes: 3
uboot-action:
minutes: 3
uboot-commands:
minutes: 3
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: 30
bootloader-commands:
seconds: 30
auto-login-action:
minutes: 2
bootloader-interrupt:
seconds: 30
u-boot-interrupt:
seconds: 30
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.