aboutsummaryrefslogtreecommitdiff
path: root/openembedded-lkft/lava-job-definitions/devices/qemu_arm64
blob: 97b7a49422d1b5158d9cc563a1baf6c29bf20f30 (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
{% extends "lkft-nfs.jinja2" %}

{% block global_settings %}
context:
  arch: arm64
  netdevice: tap
  machine: virt
  cpu: cortex-a57
  guestfs_interface: virtio
{{ super() }}
{% endblock global_settings %}

{% block device_type %}qemu{% endblock %}

{% block deploy_target %}
- deploy:
    timeout:
      minutes: 15
    to: tmpfs
    images:
      rootfs:
        image_arg: -drive format=raw,file={rootfs} -m 4096 -smp 4 -nographic
        url: {{NFSROOTFS_URL}}
        compression: gz
        apply-overlay: true
        sparse: false
      kernel:
        image_arg: -kernel {kernel} --append "console=ttyAMA0 root=/dev/vda rw"
        url: {{KERNEL_URL}}
        type: image
    os: oe
{% endblock deploy_target %}

{% block boot_target %}
- boot:
    timeout:
      minutes: 10
    method: qemu
    media: tmpfs
    auto_login:
      login_prompt: 'login:'
      username: root
      login_commands:
        - su
    prompts:
    - 'root@hikey:~#'
{% endblock boot_target %}