Skip to contentSkip to conversation

ci: add LAVA integration support for Xenomai on RPi4

PATCH In review Yi Jiang 2 participants 6 messages Jul 1, 2024 – Jul 3, 2024

lore
Share & tools
lore

Yi Jiang

author
#0 lore raw

v2 cover ci: add LAVA integration support for Xenomai on RPi4

Hi, all,

this patch series integrate RPi4 to the LAVA, which support Xenomai (kernel version 6.6) to be deployed on RPi4 remotely.

Changelog:
v1 -> v2:
- change the order of [PATCH 3/4] and [PATCH 4/4]
- [PATCH v2 1/4]: add a new commit message to clarify that U-boot cannot take use of the local DTB file on the board, therefore we must provide the DTB for LAVA.
- [PATCH v2 4/4]: remove rpi4 setup for kernel 5.10, 5,15, 6.1; remove hikey setup for kernel 6.6.

Best regards,
Yi Jiang

Yi Jiang (4):
ci: specify the dtb file for rpi4 in machine conf
ci: add gitlab-ci-base configurations for rpi4
ci: add test job configurations for rpi4
ci: use rpi4 instead of hikey for kernel 6.6 deployment

 ci/gitlab-ci-base.yml       | 14 +++++++-
 ci/kernel_6_6.yml           | 10 +++---
 conf/machine/rpi4.conf      |  2 ++
 tests/jobs/xenomai-rpi4.yml | 72 +++++++++++++++++++++++++++++++++++++
 4 files changed, 92 insertions(+), 6 deletions(-)
 create mode 100644 tests/jobs/xenomai-rpi4.yml
Signature · 1 line
2.39.2
author
#1 lore raw

PATCH v2 1/4 ci: specify the dtb file for rpi4 in machine conf

This patch is necessary because U-boot cannot take use of the local DTB file on the board, therefore we must provide the DTB for LAVA.

---
 conf/machine/rpi4.conf | 2 ++
 1 file changed, 2 insertions(+)
conf/machine/rpi4.conf +2 -0
index 3c0607e..c24bc4c 100644
@@ -30,3 +30,5 @@ IMAGE_BOOT_FILES = " \
     "
 
 IMAGE_PREINSTALL:append = " firmware-brcm80211"
+
+DTB_FILES = "bcm2711-rpi-4-b.dtb"
Signature · 1 line
2.39.2
author
#2 lore raw

PATCH v2 2/4 ci: add gitlab-ci-base configurations for rpi4

In reply to Yi Jiang
---
 ci/gitlab-ci-base.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
ci/gitlab-ci-base.yml +13 -1
index c7a1571..1157fa6 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2019 - 2023
+# Copyright (c) Siemens AG, 2019 - 2024
 #
 # Authors:
 #  Quirin Gylstorff <[email protected]>
@@ -125,6 +125,18 @@ default:
   variables:
     TARGET: hikey
 
+.build:rpi4:
+  extends: .build
+  variables:
+    TARGET: rpi4
+    CACHE_ARCH: arm64
+
+.lava-test:rpi4:
+  extends: .test
+  resource_group: board-rpi4
+  variables:
+    TARGET: rpi4
+
 .build:beagle-bone-black:
   extends: .build
   variables:
Signature · 1 line
2.39.2
author
#3 lore raw

PATCH v2 3/4 ci: add test job configurations for rpi4

In reply to Yi Jiang
---
 tests/jobs/xenomai-rpi4.yml | 72 +++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 tests/jobs/xenomai-rpi4.yml
tests/jobs/xenomai-rpi4.yml new file +72 -0
new file mode 100644
index 0000000..4416a64
@@ -0,0 +1,72 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2024
+#
+# Authors:
+#  Yi Jiang <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+job_name: xenomai-test-suite
+device_type: bcm2711-rpi-4-b
+
+timeouts:
+  job:
+    minutes: 90
+  action:
+    minutes: 65
+  connection:
+    minutes: 5
+priority: medium
+visibility: public
+
+metadata:
+  docs-source: xenomai-rpi4b
+  docs-filename: pipeline-xenomai-rpi4b
+# ACTION_BLOCK
+actions:
+- deploy:
+    timeout:
+      minutes: 30
+    to: tftp
+    kernel:
+      url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-vmlinux
+      type: image
+    dtb:
+      url: ${DEPLOY_URL}/bcm2711-rpi-4-b.dtb
+    nfsrootfs:
+      url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}.tar.gz
+      compression: gz
+#  BOOT_BLOCK
+- boot:
+    timeout:
+      minutes: 5
+    method: u-boot
+    commands: nfs
+    prompts: ["root@demo:"]
+    auto_login:
+      login_prompt: 'demo login:'
+      username: root
+      password_prompt: 'Password:'
+      password: root
+
+- test:
+    timeout:
+      minutes: 30
+    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
+    - repository:
+        metadata:
+          format: Lava-Test Test Definition 1.0
+          name: xenomai-test-suite
+          description: "runs the xenomai test suite"
+        run:
+          steps:
+            - lava-test-case xenomai-test --shell xeno-test -k -l \"dohell -m /tmp 300\"
+      from: inline
+      path: inline/xenomai-test-suite.yaml
+      name: xenomai-test-suite
Signature · 1 line
2.39.2
author
#4 lore raw

PATCH v2 4/4 ci: use rpi4 instead of hikey for kernel 6.6 deployment

In reply to Yi Jiang
---
 ci/kernel_6_6.yml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
ci/kernel_6_6.yml +5 -5
index f13d28d..3d1e3ec 100644
@@ -48,16 +48,16 @@ lava-test-6.6:qemu-arm64:
   variables:
     KERNEL_VERSION: "6.6"
 
-build-6.6:hikey:
-  extends: .build:hikey
+build-6.6:rpi4:
+  extends: .build:rpi4
   variables:
     LINUX_BUILD_OPTION: ":opt-linux-latest-6.6.yml"
     KERNEL_VERSION: "6.6"
     CACHE_KERNEL: dovetail
 
-lava-test-6.6:hikey:
-  needs: [ "build-6.6:hikey" ]
-  extends: .lava-test:hikey
+lava-test-6.6:rpi4:
+  needs: [ "build-6.6:rpi4" ]
+  extends: .lava-test:rpi4
   variables:
     KERNEL_VERSION: "6.6"
 
Signature · 1 line
2.39.2
#5 lore raw
In reply to Yi Jiang
Quoted 19 lines · Yi Jiang

Hi, all,

this patch series integrate RPi4 to the LAVA, which support Xenomai (kernel version 6.6) to be deployed on RPi4 remotely.

Changelog:
v1 -> v2:
- change the order of [PATCH 3/4] and [PATCH 4/4]
- [PATCH v2 1/4]: add a new commit message to clarify that U-boot cannot take use of the local DTB file on the board, therefore we must provide the DTB for LAVA.
- [PATCH v2 4/4]: remove rpi4 setup for kernel 5.10, 5,15, 6.1; remove hikey setup for kernel 6.6.

Best regards,
Yi Jiang

Yi Jiang (4):
ci: specify the dtb file for rpi4 in machine conf
ci: add gitlab-ci-base configurations for rpi4
ci: add test job configurations for rpi4
ci: use rpi4 instead of hikey for kernel 6.6 deployment

Quoted 7 lines
 ci/gitlab-ci-base.yml       | 14 +++++++-
 ci/kernel_6_6.yml           | 10 +++---
 conf/machine/rpi4.conf      |  2 ++
 tests/jobs/xenomai-rpi4.yml | 72 +++++++++++++++++++++++++++++++++++++
 4 files changed, 92 insertions(+), 6 deletions(-)
 create mode 100644 tests/jobs/xenomai-rpi4.yml

Thanks, all applied, and the pipeline worked fine (for this device, we have an unrelated regression on the beaglebone right now).

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center