boards.io

x86

iPXE x86 64-bit

Inheritance

  1. x86
  2. base

Extended by (2)

Key facts

Vendor
Intel
Bootloader family
iPXE
Architecture
x86 64-bit (guessed from the name)
Connections
serial

Deploy methods

tftp nbd ssh

Boot methods

ssh ipxe

Boot commands

ipxe
nfs, nbd, ramdisk

Overridable variables (4)

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
boot_character_delay500
boot_interface'net0'
console_device'ttyS0'
baud_rate115200

Fixed settings (1)

VariableValue
base_kernel_argsextra_kernel_args | default(base_kernel_args)
{# device_type: x86 #}
{% extends 'base.jinja2' %}

# in milliseconds
{% set boot_character_delay = boot_character_delay | default(500) %}
{% set boot_interface = boot_interface | default('net0') %}
{% block body %}

{% set console_device = console_device | default('ttyS0') %}
{% set baud_rate = baud_rate | default(115200) %}

{# allow job context override - use a different variable name, undefined if not in job context #}
{% set base_kernel_args = extra_kernel_args | default(base_kernel_args) %}

actions:
  deploy:
    methods:
      tftp:
      nbd:
      ssh:
        options:
{{ ssh_options }}
        host: '{{ ssh_host|default('') }}'
        user: {{ ssh_user|default('root') }}
        port: {{ ssh_port|default(22) }}
        identity_file: {{ ssh_identity_file }}
  boot:
    connections:
      serial:
    methods:
      ssh:
      ipxe:
        parameters:
          bootloader_prompt: {{ bootloader_prompt|default('iPXE>') }}
          use_bootscript: {{ use_bootscript|default(False)}}
          lava_mac: {{ lava_mac_address|default('00:90:05:af:00:7d') }}
        nfs:
          commands:
          - dhcp {{ boot_interface }}
          - set console console={{ console_device }},{{ baud_rate }}n8 lava_mac={LAVA_MAC}
          - "set extraargs root=/dev/nfs rw {{ base_nfsroot_args }} {{ base_kernel_args }} {{ base_ip_args }}"
          - kernel tftp://{SERVER_IP}/{KERNEL} ${extraargs} ${console}
          - initrd tftp://{SERVER_IP}/{RAMDISK}
          - boot
        nbd:
          commands:
          - dhcp {{ boot_interface }}
          - set console console={{ console_device }},{{ baud_rate }}n8 lava_mac={LAVA_MAC}
          - set extraargs {{ base_nbdroot_args }} rw {{ base_kernel_args }} {{ base_ip_args }}
          - kernel tftp://{SERVER_IP}/{KERNEL} ${extraargs} ${console}
          - initrd tftp://{SERVER_IP}/{RAMDISK}
          - boot
        ramdisk:
          commands:
          - dhcp {{ boot_interface }}
          - set console console={{ console_device }},{{ baud_rate }}n8 lava_mac={LAVA_MAC}
          - set extraargs {{ base_kernel_args }} {{ base_ip_args }}
          - kernel tftp://{SERVER_IP}/{KERNEL} ${extraargs} ${console}
          - initrd tftp://{SERVER_IP}/{RAMDISK}
          - boot
{% endblock body %}

{% block timeouts %}
timeouts:
  actions:
    bootloader-retry:
      minutes: 2
    bootloader-interrupt:
      minutes: 5
    bootloader-commands:
      minutes: 5
  connections:
    bootloader-retry:
      minutes: 2
    bootloader-interrupt:
      minutes: 5
    bootloader-commands:
      minutes: 5
{% endblock timeouts %}

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