{% set PROJECT = PROJECT|default("") %}
{% extends PROJECT+"nfs.jinja2" %}

{% set AUTO_LOGIN_PASSWORD_PROMPT = "Password:" %}
{% set AUTO_LOGIN_PASSWORD = "P@ssword-1" %}
{% set BOOT_OS_PROMTP = "root@rzn1-snarc:" %}

{% set auto_login = auto_login|default(true) %}
{% set boot_method = boot_method|default("u-boot") %}
{% set run_nand_commands = true %}
{% set run_tftp_commands = true %}
{% set TARGET_BOOT_TIMEOUT = 10 %}
{% set target_deploy_timeout = 5 %}

{% block device_type %}rzn1d{% endblock %}

{% block kernel_extra_args %}
      type: uimage
{% endblock kernel_extra_args %}

{% block boot_commands %}
{% if boot_method == "u-boot" %}
    commands:
      - setenv autoload no
      - dhcp
      - dhcp
      - env print
      - setenv serverip {SERVER_IP}
      - tftp {KERNEL_ADDR} {KERNEL}
      - run LINUX_BOOTARGS
      - bootm {KERNEL_ADDR}#conf@1
{% elif boot_method == "bootloader" %}
    bootloader: u-boot
    commands: []
{% endif %}
{% endblock boot_commands %}
