base-fastboot
base template
This template is not a device-type: it holds the settings shared by the 26 device-types that extend it, directly or not.
Inheritance
- base-fastboot
- base
Inheritance tree
base-fastboot 26 device-types
Device-types extending base-fastboot (26)
| Device type | Vendor | Arch | Through |
|---|---|---|---|
| dragonboard-410c | Qualcomm | arm64 | directly |
| dragonboard-820c | Qualcomm | arm64 | directly |
| dragonboard-845c | Qualcomm | arm64 | directly |
| exynos850-e850-96 | Samsung | arm64 | directly |
| gs101-oriole | Samsung | arm64 | directly |
| hi6220-hikey-bl | HiSilicon | arm64 | directly |
| hi6220-hikey-r2 | HiSilicon | arm64 | directly |
| hi960-hikey | HiSilicon | arm64 | directly |
| ifc6410 | Qualcomm | arm | directly |
| mediatek-8173 | MediaTek | arm64 | directly |
| nexus10 | arm | directly | |
| nexus4 | arm | directly | |
| nexus5x | arm64 | directly | |
| nexus9 | arm64 | directly | |
| pixel | arm64 | directly | |
| qcs404-evb-1k | Qualcomm | arm64 | sdm845-mtp |
| qcs404-evb-4k | Qualcomm | arm64 | sdm845-mtp |
| qrb4210-rb2 | Qualcomm | arm64 | directly |
| qrb5165-rb5 | Qualcomm | arm64 | directly |
| sdm845-mtp | Qualcomm | arm64 | directly |
| sm8150-mtp | Qualcomm | arm64 | directly |
| sm8250-mtp | Qualcomm | arm64 | directly |
| sm8350-hdk | Qualcomm | arm64 | directly |
| sm8350-mtp | Qualcomm | arm64 | directly |
| sm8550-hdk | Qualcomm | arm64 | directly |
| sm8650-hdk | Qualcomm | arm64 | directly |
{% extends 'base.jinja2' %}
{% set fastboot_auto_detection = fastboot_auto_detection|default(false) %}
{% set adb_serial_number = adb_serial_number|default('0000000000') %}
{% set fastboot_serial_number = fastboot_serial_number|default('0000000000') %}
{% set soft_reboot_command = soft_reboot_command|default('adb -s ' + fastboot_serial_number + ' reboot bootloader') %}
{% set device_info = device_info|default([{'board_id': fastboot_serial_number}]) %}
{% block body %}
fastboot_auto_detection: {{ fastboot_auto_detection|default(false) }}
adb_serial_number: "{{ adb_serial_number|default('0000000000') }}"
fastboot_serial_number: "{{ fastboot_serial_number|default('0000000000') }}"
fastboot_options: {{ fastboot_options|default([]) }}
{% if fastboot_deploy_uboot_commands %}
# This attribute identifies whether a device should get into fastboot mode by
# interrupting uboot and issuing commands at the bootloader prompt.
fastboot_via_uboot: True
{% endif %}
actions:
deploy:
methods:
ssh:
options:
{{ ssh_options }}
host: '{{ ssh_host|default('') }}'
port: {{ ssh_port|default(22) }}
user: {{ ssh_user|default('root') }}
identity_file: {{ ssh_identity_file }}
{% if recovery_mode %}
{{ recovery_mode }}
recovery_mode:
{% for url in recovery_mode_command %}
- {{ url }}
{% endfor %}
recovery_exit:
{% for url in recovery_exit_command %}
- {{ url }}
{% endfor %}
{% endif %}
nfs:
fastboot:
{% if fastboot_deploy_uboot_commands %}
u-boot:
parameters:
bootloader_prompt: "{{ bootloader_prompt }}"
interrupt_prompt: "{{ interrupt_prompt }}"
interrupt_char: "{{ interrupt_char }}"
fastboot:
commands:
{% for command in fastboot_deploy_uboot_commands %} - {{ command }}{% endfor %}
{% endif %}
{{- fastboot_interrupt_params }}
connections:
adb:
fastboot:
serial:
boot:
connections:
adb:
fastboot:
serial:
adb:
methods:
ssh:
minimal:
u-boot:
parameters:
bootloader_prompt: {{ bootloader_prompt|default('=>') }}
interrupt_prompt: {{ interrupt_prompt|default('Hit any key to stop autoboot') }}
interrupt_char: "{{ interrupt_char|default('') }}"
needs_interrupt: {{ uboot_needs_interrupt|default(True) }}
fastboot: {{ fastboot_sequence }}
{{- fastboot_boot_uboot }}
{{- fastboot_boot_grub }}
test:
methods:
docker:
global_options:
- {{ docker_shell_global_arguments }}
options:
- {{ docker_shell_extra_arguments }}
{% endblock body %}