{% extends "lkft-fastboot.jinja2" %} {# libhugetlbfs_word_size variable is required for libhugetlbfs.yaml test template #} {% set libhuggetlbfs_word_size = 32 %} {% block device_type %}x15{% endblock %} {% block deploy_target %} - deploy: timeout: minutes: 25 to: fastboot namespace: target connection: lxc images: super: url: lxc:///rpb-console-image-lkft.rootfs.img apply-overlay: true os: oe {% endblock deploy_target %} {% block boot_target %} - boot: namespace: target auto_login: login_prompt: 'am57xx-evm login:' username: root prompts: - 'root@am57xx-evm:' commands: - setenv fdtfile am57xx-beagle-x15.dtb - setenv console ttyS2,115200n8 - setenv mmcdev 1 - part number mmc 1 super part_num - "setenv bootpart 1:${part_num}" - run mmcboot timeout: minutes: 15 method: u-boot {% endblock boot_target %} {% block test_target %} {{ super() }} - from: inline repository: metadata: format: Lava-Test Test Definition 1.0 name: prep-tmp-disk description: "Mount local disk for tmp space" run: steps: {% if KERNEL_VERSION != '4.4' %} - export STORAGE_DEV=$(lava-target-storage SATA || lava-target-storage USB) - test -n "${STORAGE_DEV}" || lava-test-raise "STORAGE_DEV not found; job exit" - echo "y" | mkfs -t ext4 ${STORAGE_DEV} || lava-test-raise "mkfs -t ext4 ${STORAGE_DEV} failed; job exit" - mkdir -p /scratch - mount ${STORAGE_DEV} /scratch && echo "mounted" || lava-test-raise "mount ${STORAGE_DEV} failed; job exit" {% endif %} - df -h - mount name: prep-tmp-disk path: inline/prep.yaml {% endblock test_target %}