boards.io

hi6220-hikey

HiKey (LeMaker)

Inheritance

  1. hi6220-hikey
  2. base

Key facts

Vendor
HiSilicon
Bootloader family
UEFI
Architecture
Arm 64-bit (AArch64) (guessed from the name)
Console device
ttyAMA3
Baud rate
115200
Connections
fastboot, serial

Deploy methods

fastboot ssh

Boot methods

ssh fastboot grub-efi uefi-menu

Boot commands

grub-efi
reset_device, line_separator, menu_options, installed
uefi-menu
menu_options, fastboot

Overridable variables (5)

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.

VariableDefault
root_device'/dev/mmcblk0p9'
base_kernel_args'efi=noruntime backend=ramoops ramoops.mem_address=0x30000000 ramoops.mem_size=0x10000'
console_device'ttyAMA3'
baud_rate'115200'
boot_character_delay300
{# device_type: hi6220-hikey #}
{% extends 'base.jinja2' %}
{% set root_device = root_device | default('/dev/mmcblk0p9') %}
{% set base_kernel_args = base_kernel_args|default('efi=noruntime backend=ramoops ramoops.mem_address=0x30000000 ramoops.mem_size=0x10000') %}
{% set console_device = console_device|default('ttyAMA3') %}
{% set baud_rate = baud_rate|default('115200') %}
{% set boot_character_delay = boot_character_delay|default(300) %}
{% block body %}

adb_serial_number: '{{ adb_serial_number|default('0000000000') }}'
fastboot_serial_number: '{{ fastboot_serial_number|default('0000000000') }}'
fastboot_options: {{ fastboot_options|default([]) }}
flash_cmds_order: ['ptable', 'fastboot', 'nvme', 'boot', 'cache', 'system', 'userdata']

actions:
  deploy:
    methods:
      fastboot:
      ssh:
        options:
{{ ssh_options }}
        host: '{{ ssh_host|default('') }}'
        port: {{ ssh_port|default(22) }}
        user: {{ ssh_user|default('root') }}
        identity_file: {{ ssh_identity_file }}
    connections:
      fastboot:
      serial:
  boot:
    connections:
      fastboot:
      serial:
    methods:
      ssh:
      fastboot:
        - boot
      grub-efi:
        reset_device: False
        line_separator: unix
        menu_options: fastboot
        parameters:
          bootloader_prompt: {{ grub_efi_bootloader_prompt|default('grub>') }}
        installed:
          parameters:
            interrupt_prompt: "Android Fastboot mode"
            interrupt_string: ' '
          commands:
            - search.fs_label {{fs_label|default('rootfs')}} root
            - linux ($root)/boot/{{kernel}} console=tty0 console={{console_device}},{{baud_rate}} root={{root_device}} rootwait rw {{base_kernel_args}} {{extra_kernel_args}}
            - devicetree ($root)/boot/{{devicetree}}
            - boot
      uefi-menu:
        menu_options: fastboot
        parameters:
          interrupt_prompt: {{ interrupt_prompt|default("The default boot selection will start in") }}
          interrupt_string: {{ interrupt_string|default("' '") }}
          item_markup:
            - "["
            - "]"
          item_class: '0-9'
          separator: ' '
          bootloader_prompt: "{{ bootloader_prompt|default('Start:') }}"
        fastboot:
        - select:
            items:
             - {{ fastboot_select_item|default('boot from eMMC') }}

{% endblock body %}

Rendered with the default values (no device dictionary), using LAVA's own template environment.