summaryrefslogtreecommitdiffstats
path: root/templates/machine/raspberrypi3/test
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-08-02 17:27:25 -0400
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-08-04 17:24:27 +0000
commit3ca6c578c302e5658ea78f6eed216188b50ed906 (patch)
tree62932bd51bb8fcbdfb710d71877551af5ecc7682 /templates/machine/raspberrypi3/test
parent019c73818e94f79d75f2bc5893fd57a3d011e24a (diff)
raspberrypi: Fix U-Boot support
In order to use U-Boot on the raspberrypi3 we need to have the equivalent of the following commit from upstream meta-raspberrypi: commit 67e02164929a7d8cc187315aaaab60f6f3aaf422 Author: Paul Barker <paul@paulbarker.me.uk> Date: Mon Feb 13 23:32:43 2017 +0000 u-boot: Fix boot on rpi3 With that done, we can re-enable U-Boot support for raspberrypi3. With this done we can also now re-enable testing, so do so. For consistency we can now switch raspberrypi2 over to U-Boot as well. Change-Id: I9c96a66bf5644bf63f2566559ab7d9c4101b7a55 Bug-AGL: SPEC-409 Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10491 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Kevin Hilman <khilman@baylibre.com> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'templates/machine/raspberrypi3/test')
-rw-r--r--templates/machine/raspberrypi3/test/hwtest.enable1
-rw-r--r--templates/machine/raspberrypi3/test/hwtest.short.enable1
-rw-r--r--templates/machine/raspberrypi3/test/hwtest.short.environment10
-rw-r--r--templates/machine/raspberrypi3/test/testjob_short.yaml49
4 files changed, 61 insertions, 0 deletions
diff --git a/templates/machine/raspberrypi3/test/hwtest.enable b/templates/machine/raspberrypi3/test/hwtest.enable
new file mode 100644
index 000000000..573541ac9
--- /dev/null
+++ b/templates/machine/raspberrypi3/test/hwtest.enable
@@ -0,0 +1 @@
+0
diff --git a/templates/machine/raspberrypi3/test/hwtest.short.enable b/templates/machine/raspberrypi3/test/hwtest.short.enable
new file mode 100644
index 000000000..573541ac9
--- /dev/null
+++ b/templates/machine/raspberrypi3/test/hwtest.short.enable
@@ -0,0 +1 @@
+0
diff --git a/templates/machine/raspberrypi3/test/hwtest.short.environment b/templates/machine/raspberrypi3/test/hwtest.short.environment
new file mode 100644
index 000000000..2f084f8ff
--- /dev/null
+++ b/templates/machine/raspberrypi3/test/hwtest.short.environment
@@ -0,0 +1,10 @@
+DEVICE_TYPE=raspberrypi3-uboot
+DEVICE_NAME=raspberrypi3
+DEVICE_DTB=uImage-bcm2710-rpi-3-b.dtb
+DEVICE_KERNEL=uImage
+DEVICE_INITRAMFS=initramfs-netboot-image-raspberrypi3.ext4.gz.u-boot
+DEVICE_NBDROOT=agl-demo-platform-raspberrypi3.ext4.xz
+DEVICE_NBDROOT_COMPRESSION=xz
+DEVICE_BOOT_METHOD=u-boot
+DEVICE_BOOT_TYPE=bootm
+#DEVICE_URL_PREFIX=https://download.automotivelinux.org/AGL
diff --git a/templates/machine/raspberrypi3/test/testjob_short.yaml b/templates/machine/raspberrypi3/test/testjob_short.yaml
new file mode 100644
index 000000000..2ff1ac995
--- /dev/null
+++ b/templates/machine/raspberrypi3/test/testjob_short.yaml
@@ -0,0 +1,49 @@
+# Your first LAVA JOB definition for a porter board
+device_type: @REPLACE_DEVICE_TYPE@
+job_name: AGL-short-smoke
+
+protocols:
+ lava-xnbd:
+ port: auto
+
+timeouts:
+ job:
+ minutes: 30
+ action:
+ minutes: 15
+ connection:
+ minutes: 5
+ bootloader-commands:
+ minutes: 4
+priority: medium
+visibility: public
+
+# ACTION_BLOCK
+actions:
+- deploy:
+ timeout:
+ minutes: 15
+ to: nbd
+ dtb:
+ url: '@REPLACE_URL_PREFIX@/@REPLACE_DTB@'
+ kernel:
+ url: '@REPLACE_URL_PREFIX@/@REPLACE_KERNEL@'
+ initrd:
+ url: '@REPLACE_URL_PREFIX@/@REPLACE_INITRAMFS@'
+ allow_modify: false
+ nbdroot:
+ url: '@REPLACE_URL_PREFIX@/@REPLACE_NBDROOT@'
+ compression: @REPLACE_NBDROOT_COMPRESSION@
+ os: debian
+ failure_retry: 2
+
+# BOOT_BLOCK
+- boot:
+ method: @REPLACE_BOOT_METHOD@
+ commands: nbd
+ type: @REPLACE_BOOT_TYPE@
+ prompts: ["root@@REPLACE_MACHINE@:~"]
+ auto_login:
+ login_prompt: "login:"
+ username: root
+