device_type: stm32mp157c-dk2
job_name: flasher test
timeouts:
  job:
    minutes: 30
  action:
    minutes: 15
  connection:
    minutes: 5
priority: medium
visibility: public
actions:
- deploy:
    timeout:
      minutes: 20
    to: tftp
    kernel:
      url: http://images.validation.linaro.org/people.linaro.org/~milosz.wasilewski/stm32mp1/stm32_tarball_v4.tar.gz
      type: uimage
    dtb:
      url: http://images.validation.linaro.org/people.linaro.org/~milosz.wasilewski/stm32mp1/FlashLayout_v4.tsv
- boot:
    timeout:
      minutes: 15
    method: u-boot
    commands: nfs
      - setenv ipaddr 192.168.1.201
      - setenv gatewayip 192.168.1.200
      - setenv serverip 192.168.1.200
      - setenv netmask 255.255.255.0
      - tftpboot 0xc2000000 uImage
      - tftpboot oxc4000000 stm32mp157c-ev1.dtb
      - setenv bootargs 'root=/dev/mmcblk0p6 rootwait rw console=ttySTM0,115200'
      - bootm 0xc2000000-0xc4000000
    prompts:
    - 'root@ledge-stm32mp157c-dk2'
    - 'root@debian:~#'
    - '/ #'
    transfer_overlay:
      download_command: udhcpc; cd /tmp ; wget
      unpack_command: tar -C / -xzf
- test:
    timeout:
      minutes: 15
    definitions:
    - repository: http://git.linaro.org/lava-team/lava-functional-tests.git
      from: git
      path: lava-test-shell/smoke-tests-basic.yaml
      name: smoke-tests 