diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2019-02-06 11:37:34 +0100 |
---|---|---|
committer | Loic Poulain <loic.poulain@linaro.org> | 2019-02-06 12:48:13 +0100 |
commit | 3ec7019a1fb2f29af9854c5b6316596b61d7ab78 (patch) | |
tree | b589b14b4d87a79e319fc6063f04435c14dc18ac |
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
-rw-r--r-- | arm-microfs.cpio.gz | bin | 0 -> 926027 bytes | |||
-rw-r--r-- | bcm2710-rpi-3-b.dtb | bin | 0 -> 17761 bytes | |||
-rw-r--r-- | job-def.yaml | 117 | ||||
-rw-r--r-- | kernel.uImage | bin | 0 -> 4574240 bytes |
4 files changed, 117 insertions, 0 deletions
diff --git a/arm-microfs.cpio.gz b/arm-microfs.cpio.gz Binary files differnew file mode 100644 index 0000000..642284a --- /dev/null +++ b/arm-microfs.cpio.gz diff --git a/bcm2710-rpi-3-b.dtb b/bcm2710-rpi-3-b.dtb Binary files differnew file mode 100644 index 0000000..def1bc3 --- /dev/null +++ b/bcm2710-rpi-3-b.dtb diff --git a/job-def.yaml b/job-def.yaml new file mode 100644 index 0000000..7691ec6 --- /dev/null +++ b/job-def.yaml @@ -0,0 +1,117 @@ +device_type: bcm2837-rpi-3-b-32 +job_name: rpi3-b-32 standard health check +timeouts: + job: + minutes: 10 + action: + minutes: 5 + connection: + minutes: 2 +priority: medium +visibility: public + +# There are two namespaces in this job definition +# flasher: Used to write test image to the RPi3 SDCARD (using ramdisk) +# rpi3: For standard testing (running on test image) + +# lava_ip and lava_dir are used by the ramdisk to construct sdcard image URL +# We cannot directly pass the path of the test image to the initial ramdisk. +# We work around this by passing the path of the ramdisk because +# this is known to be uploaded to the same directory. +context: + extra_kernel_args: " 8250.nr_uarts=1 lava_ip={SERVER_IP} lava_dir={RAMDISK}" + console_device: "ttyS0" + +actions: + +- deploy: + namespace: flasher + timeout: + minutes: 5 + to: tftp + kernel: +# known working kernel for booting on minimal ramdisk + url: https://git.linaro.org/people/loic.poulain/rpi3-lava-example.git/plain/kernel.uImage + type: uimage + ramdisk: +# known working minimal ramdisk, from which SDCARD will be flashed + url: https://git.linaro.org/people/loic.poulain/rpi3-lava-example.git/plain/arm-microfs.cpio.gz + compression: gz + add-header: u-boot + dtb: +# known working RPi3 DTB + url: https://git.linaro.org/people/loic.poulain/rpi3-lava-example.git/plain/bcm2710-rpi-3-b.dtb +# link to the MBL SDCARD image +# preseeding is normally used for installer automation. However here preseeding is being (ab)used +# simply to cause the test image to be copied to the worker and shared via its fileserver. + preseed: + url: http://images/rpi/mbl-console-image-test-raspberrypi3-mbl-20180817102533-231.rootfs.wic.gz + +# We firstly boot on the ramdisk +- boot: + namespace: flasher + method: u-boot + commands: ramdisk + auto_login: + login_prompt: 'login:' + username: root + prompts: + - 'micro#' + timeout: + minutes: 5 + +# ramdisk inline test, we retrieve SDCARD image (wget), uncompress and write it to the SDCARD +- test: + namespace: flasher + timeout: + minutes: 10 + definitions: + - repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: mmcblk0-write + description: "Flash RPi3 SDCARD" + os: + - debian + scope: + - functional + run: + steps: + - part=/dev/mmcblk0 + - ip=$(cat /proc/cmdline | awk -F"lava_ip=" '{ print $2 }' | cut -d" " -f0) + - dir=$(cat /proc/cmdline | awk -F"lava_dir=" '{ print $2 }' | cut -d"/" -f1,2) + - addr=http://${ip}/tftp/${dir}/preseed/mbl-console-image-test-raspberrypi3-mbl-20180817102533-231.rootfs.wic.gz + - wget -O- ${addr} | gunzip -c > /dev/mmcblk0 + - sync + from: inline + name: mmcblk0-write + path: inline/mmcblk0-write.yaml + +# Reboot on (just flashed) SDCARD, nothing to do (minimal method) +- boot: + namespace: rpi3 + connection-namespace: flasher + method: minimal +# We use transfer_overlay to download and uncompress test tarball +# This is required since LAVA can not apply test overlay to the SDCARD/rootfs image. + transfer_overlay: + download_command: wget + unpack_command: tar -C / -xzf + auto_login: + login_prompt: 'login:' + username: root + prompts: + - 'root@raspberrypi3:~#' + timeout: + minutes: 5 + +# Add your standard rpi3 test(s) here +- test: + namespace: rpi3 + timeout: + minutes: 5 + 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 diff --git a/kernel.uImage b/kernel.uImage Binary files differnew file mode 100644 index 0000000..4336b8f --- /dev/null +++ b/kernel.uImage |