aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom/lava-job-definitions/dragonboard-410c/base_template.yaml
blob: e9012a0cfcc0bb3082302c8b92f10aa9ae1abae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
protocols:
  lava-lxc:
    name: lxc-dragonboard410c-test
    template: debian
    distribution: debian
    release: stretch

actions:
- deploy:
    namespace: tlxc
    timeout:
      minutes: 5
    to: lxc
    packages:
    - android-tools-adb
    - android-tools-fastboot
    - img2simg
    - simg2img
    - e2fsprogs
    os: debian

- boot:
    namespace: tlxc
    prompts:
    - 'root@(.*):/#'
    - 'root@linaro-developer:~#'
    timeout:
      minutes: 5
    method: lxc

- deploy:
    timeout:
      minutes: 40
    to: download
    namespace: dragonboard410c
    images:
      partition:
        url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/gpt_both0.bin
      hyp:
        url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/hyp.mbn
      cdt:
        url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbc_1.0_8016.bin
      rpm:
        url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/rpm.mbn
      sbl1:
        url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbl1.mbn
      tz:
        url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/tz.mbn
      aboot:
        url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/emmc_appsboot.mbn
      boot:
        url: ${BOOT_URL}
        compression: ${BOOT_URL_COMP}
      rootfs:
        url: ${ROOTFS_URL}
        compression: ${ROOTFS_URL_COMP}
    os: ${DEPLOY_OS}

- test:
    namespace: tlxc
    timeout:
      minutes: 30
    definitions:
    - from: inline
      name: db410c-resize-rootfs
      path: inline/db410c-resize-rootfs.yaml
      repository:
        metadata:
          description: db410c resize rootfs image for test overlay
          format: Lava-Test Test Definition 1.0
          name: db410c-resize-rootfs
        run:
          steps:
          - if [ -z \"${RESIZE_ROOTFS}\" ]; then echo "No resize request, skiping..." && exit 0; else echo "Resizing to $RESIZE_ROOTFS..."; fi
          - simg2img ${LXC_ROOTFS_FILE} ${LXC_ROOTFS_FILE}.ext4
          - e2fsck -y -f ${LXC_ROOTFS_FILE}.ext4
          - resize2fs ${LXC_ROOTFS_FILE}.ext4 ${RESIZE_ROOTFS}
          - img2simg ${LXC_ROOTFS_FILE}.ext4 ${LXC_ROOTFS_FILE}

 - deploy:
    timeout:
      minutes: 40
    to: fastboot
    namespace: dragonboard410c
    images:
      partition:
        url: lxc:///gpt_both0.bin
      hyp:
        url: lxc:///hyp.mbn
      cdt:
        url: lxc:///sbc_1.0_8016.bin
      rpm:
        url: lxc:///rpm.mbn
      sbl1:
        url: lxc:///sbl1.mbn
      tz:
        url: lxc:///tz.mbn
      aboot:
        url: lxc:///emmc_appsboot.mbn
      boot:
        url: lxc:///${LXC_BOOT_FILE}
      rootfs:
        url: lxc:///${LXC_ROOTFS_FILE}
        apply-overlay: true
    os: ${DEPLOY_OS}
    protocols:
        lava-lxc:
        - action: fastboot-deploy
          request: pre-power-command
          timeout:
              minutes: 2

- boot:
    namespace: dragonboard410c
    auto_login:
      login_prompt: 'login:'
      username: 'root'
    prompts:
    - 'root@(.*):/#'
    - ${BOOT_OS_PROMPT}
    timeout:
      minutes: 15
    method: fastboot