Skip to contentSkip to conversation

ci: add LAVA integration support for Xenomai on RPi4

PATCH Superseded Yi Jiang 2 participants 10 messages Jun 28, 2024 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yi Jiang

author
#0 lore raw

cover ci: add LAVA integration support for Xenomai on RPi4

Hi, all,

this patch series integrate RPi4 to the LAVA, so that Xenomai can be deployed on RPi4 remotely.

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 kernel support for rpi4
ci: add test job configurations for rpi4

 ci/gitlab-ci-base.yml       | 14 +++++++-
 ci/kernel_5_10.yml          | 15 +++++++-
 ci/kernel_5_15.yml          | 15 +++++++-
 ci/kernel_6_1.yml           | 15 +++++++-
 ci/kernel_6_6.yml           | 13 +++++++
 conf/machine/rpi4.conf      |  2 ++
 tests/jobs/xenomai-rpi4.yml | 72 +++++++++++++++++++++++++++++++++++++
 7 files changed, 142 insertions(+), 4 deletions(-)
 create mode 100644 tests/jobs/xenomai-rpi4.yml
Signature · 1 line
2.39.2
author
#1 lore raw

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

---
 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
#2 lore raw

Re: [PATCH 1/4] ci: specify the dtb file for rpi4 in machine conf

Reasoning would be good here: This is needed because U-Boot on the board is not providing a working DTB to the kernel, and therefore we need to deploy one here so that patch 4 can inject that into LAVA?

Quoted 10 lines · Yi Jiang
---
 conf/machine/rpi4.conf | 2 ++
 1 file changed, 2 insertions(+)
conf/machine/rpi4.conf +0 -0
index 3c0607e..c24bc4c 100644

conf/machine/rpi4.conf IMAGE_BOOT_FILES = " \ · line 34

Quoted 5 lines
conf/machine/rpi4.conf +2 -0
@@ -30,3 +30,5 @@ IMAGE_BOOT_FILES = " \
     "
 
 IMAGE_PREINSTALL:append = " firmware-brcm80211"
+
+DTB_FILES = "bcm2711-rpi-4-b.dtb"

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#3 lore raw

Re: [PATCH 1/4] ci: specify the dtb file for rpi4 in machine conf

Quoted 4 lines · Jan Kiszka

Reasoning would be good here: This is needed because U-Boot on the board is not providing a working DTB to the kernel, and therefore we need to deploy one here so that patch 4 can inject that into LAVA?

That said, it is likely better to deploy our own DTB here because the one on the board is permanent it might no longer be optimal for a newer kernel we deploy from xenomai-images. So, just clarify in the commit message the reason for deployment.

Jan

Quoted 19 lines · Yi Jiang
Quoted 10 lines
---
 conf/machine/rpi4.conf | 2 ++
 1 file changed, 2 insertions(+)
conf/machine/rpi4.conf +0 -0
index 3c0607e..c24bc4c 100644

conf/machine/rpi4.conf IMAGE_BOOT_FILES = " \ · line 34

Quoted 5 lines
conf/machine/rpi4.conf +2 -0
@@ -30,3 +30,5 @@ IMAGE_BOOT_FILES = " \
     "
 
 IMAGE_PREINSTALL:append = " firmware-brcm80211"
+
+DTB_FILES = "bcm2711-rpi-4-b.dtb"

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
author
#4 lore raw

PATCH 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
#5 lore raw

PATCH 3/4 ci: add kernel support for rpi4

In reply to Yi Jiang
---
 ci/kernel_5_10.yml | 15 ++++++++++++++-
 ci/kernel_5_15.yml | 15 ++++++++++++++-
 ci/kernel_6_1.yml  | 15 ++++++++++++++-
 ci/kernel_6_6.yml  | 13 +++++++++++++
 4 files changed, 55 insertions(+), 3 deletions(-)
ci/kernel_5_10.yml +14 -1
index 44cd6d6..36c2e06 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2019 - 2022
+# Copyright (c) Siemens AG, 2019 - 2024
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-5.10:hikey:
   variables:
     KERNEL_VERSION: "5.10"
 
+build-5.10:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-5.10.yml"
+    KERNEL_VERSION: "5.10"
+    CACHE_KERNEL: dovetail
+
+lava-test-5.10:rpi4:
+  needs: [ "build-5.10:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "5.10"
+
 build-5.10:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:
ci/kernel_5_15.yml +14 -1
index 52710fd..e17275a 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2022
+# Copyright (c) Siemens AG, 2022 - 2024
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-5.15:hikey:
   variables:
     KERNEL_VERSION: "5.15"
 
+build-5.15:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-5.15.yml"
+    KERNEL_VERSION: "5.15"
+    CACHE_KERNEL: dovetail
+
+lava-test-5.15:rpi4:
+  needs: [ "build-5.15:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "5.15"
+
 build-5.15:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:
ci/kernel_6_1.yml +14 -1
index 1c6a6d7..cd7906d 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2022-2023
+# Copyright (c) Siemens AG, 2022-2024
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-6.1:hikey:
   variables:
     KERNEL_VERSION: "6.1"
 
+build-6.1:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.1"
+    CACHE_KERNEL: dovetail
+
+lava-test-6.1:rpi4:
+  needs: [ "build-6.1:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "6.1"
+
 build-6.1:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:
ci/kernel_6_6.yml +13 -0
index f13d28d..d840d26 100644
@@ -61,6 +61,19 @@ lava-test-6.6:hikey:
   variables:
     KERNEL_VERSION: "6.6"
 
+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:rpi4:
+  needs: [ "build-6.6:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "6.6"
+
 build-6.6:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:
Signature · 1 line
2.39.2
#6 lore raw

Re: [PATCH 3/4] ci: add kernel support for rpi4

Quoted 121 lines · Yi Jiang
---
 ci/kernel_5_10.yml | 15 ++++++++++++++-
 ci/kernel_5_15.yml | 15 ++++++++++++++-
 ci/kernel_6_1.yml  | 15 ++++++++++++++-
 ci/kernel_6_6.yml  | 13 +++++++++++++
 4 files changed, 55 insertions(+), 3 deletions(-)
ci/kernel_5_10.yml +14 -1
index 44cd6d6..36c2e06 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2019 - 2022
+# Copyright (c) Siemens AG, 2019 - 2024
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-5.10:hikey:
   variables:
     KERNEL_VERSION: "5.10"
 
+build-5.10:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-5.10.yml"
+    KERNEL_VERSION: "5.10"
+    CACHE_KERNEL: dovetail
+
+lava-test-5.10:rpi4:
+  needs: [ "build-5.10:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "5.10"
+
 build-5.10:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:
ci/kernel_5_15.yml +14 -1
index 52710fd..e17275a 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2022
+# Copyright (c) Siemens AG, 2022 - 2024
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-5.15:hikey:
   variables:
     KERNEL_VERSION: "5.15"
 
+build-5.15:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-5.15.yml"
+    KERNEL_VERSION: "5.15"
+    CACHE_KERNEL: dovetail
+
+lava-test-5.15:rpi4:
+  needs: [ "build-5.15:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "5.15"
+
 build-5.15:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:
ci/kernel_6_1.yml +14 -1
index 1c6a6d7..cd7906d 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2022-2023
+# Copyright (c) Siemens AG, 2022-2024
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-6.1:hikey:
   variables:
     KERNEL_VERSION: "6.1"
 
+build-6.1:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.1"
+    CACHE_KERNEL: dovetail
+
+lava-test-6.1:rpi4:
+  needs: [ "build-6.1:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "6.1"
+
 build-6.1:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:
ci/kernel_6_6.yml +6 -0
index f13d28d..d840d26 100644
@@ -61,6 +61,19 @@ lava-test-6.6:hikey:
   variables:
     KERNEL_VERSION: "6.6"
 
+build-6.6:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.6.yml"
+    KERNEL_VERSION: "6.6"
+    CACHE_KERNEL: dovetail

ci/kernel_6_6.yml lava-test-6.6:hikey: · line 79

Quoted 10 lines
ci/kernel_6_6.yml +7 -0
+
+lava-test-6.6:rpi4:
+  needs: [ "build-6.6:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "6.6"
+
 build-6.6:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:

Two things:

- I strongly suspect that patch 4 needs to come first, or this patch will break CI

- I would prefer to switch some existing hikey jobs to rpi4, rather than adding theses 4 extra ones. How about only switching 6.6 to rpi for now?

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

Re: [PATCH 3/4] ci: add kernel support for rpi4

[always use reply-to-all on mailing lists]

Quoted 136 lines · Yi (T CED OES-DE)
Quoted 135 lines · Jan Kiszka
Quoted 128 lines · Yi Jiang

---
 ci/kernel_5_10.yml | 15 ++++++++++++++-
 ci/kernel_5_15.yml | 15 ++++++++++++++-
 ci/kernel_6_1.yml  | 15 ++++++++++++++-
 ci/kernel_6_6.yml  | 13 +++++++++++++

 4 files changed, 55 insertions(+), 3 deletions(-)
ci/kernel_5_10.yml +1 -1
index 44cd6d6..36c2e06 100644
@@ -1,7 +1,7 @@
  #
  # Xenomai Real-Time System
  #
-# Copyright (c) Siemens AG, 2019 - 2022
+# Copyright (c) Siemens AG, 2019 - 2024
  #
  # Authors:
  #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-5.10:hikey:

   variables:
     KERNEL_VERSION: "5.10"

ci/kernel_5_10.yml +13 -0
+build-5.10:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-5.10.yml"
+    KERNEL_VERSION: "5.10"
+    CACHE_KERNEL: dovetail
+
+lava-test-5.10:rpi4:
+  needs: [ "build-5.10:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "5.10"
+

 build-5.10:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:

ci/kernel_5_15.yml +1 -1
index 52710fd..e17275a 100644
@@ -1,7 +1,7 @@
  #
  # Xenomai Real-Time System
  #
-# Copyright (c) Siemens AG, 2022
+# Copyright (c) Siemens AG, 2022 - 2024
  #
  # Authors:
  #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-5.15:hikey:

   variables:
     KERNEL_VERSION: "5.15"

ci/kernel_5_15.yml +13 -0
+build-5.15:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-5.15.yml"
+    KERNEL_VERSION: "5.15"
+    CACHE_KERNEL: dovetail
+
+lava-test-5.15:rpi4:
+  needs: [ "build-5.15:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "5.15"
+

 build-5.15:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:

ci/kernel_6_1.yml +1 -1
index 1c6a6d7..cd7906d 100644
@@ -1,7 +1,7 @@
  #
  # Xenomai Real-Time System
  #
-# Copyright (c) Siemens AG, 2022-2023
+# Copyright (c) Siemens AG, 2022-2024
  #
  # Authors:
  #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-6.1:hikey:

   variables:
     KERNEL_VERSION: "6.1"

ci/kernel_6_1.yml +13 -0
+build-6.1:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.1"
+    CACHE_KERNEL: dovetail
+
+lava-test-6.1:rpi4:
+  needs: [ "build-6.1:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "6.1"
+

 build-6.1:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:

ci/kernel_6_6.yml +0 -0
index f13d28d..d840d26 100644
@@ -61,6 +61,19 @@ lava-test-6.6:hikey:

   variables:
     KERNEL_VERSION: "6.6"

ci/kernel_6_6.yml +13 -0
+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:rpi4:
+  needs: [ "build-6.6:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "6.6"
+
Quoted 3 lines

 build-6.6:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:

Two things:

Quoted 7 lines
Quoted 3 lines

 - I strongly suspect that patch 4 needs to come first, or this patch will break CI

Does it mean that ci/gitlab-ci-base.yml depends on tests/jobs/xenomai- rpi4.yml, so that ci/gitlab-ci-base.yml will crash if it did not detect tests/jobs/xenomai-rpi4.yml?

Well, you extend the pipeline in this patch to run RPi4 jobs, including their lava tests, no? Then that part of the pipeline implicitly expects the job descriptions that you only add in patch 4 to be available already. If I'm right, you should simply flip the ordering of patch 3 and 4 in your next version of this series.

Quoted 11 lines
Quoted 8 lines

 - I would prefer to switch some existing hikey jobs to rpi4, rather than adding theses 4 extra ones. How about only switching 6.6 to rpi
   for now?

Jan

Yes, I can do that.

Thanks,
Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
author
#9 lore raw

Re: [PATCH 3/4] ci: add kernel support for rpi4

Quoted 150 lines · Jan Kiszka

[always use reply-to-all on mailing lists]

Quoted 141 lines · Yi (T CED OES-DE)
Quoted 135 lines · Jan Kiszka
Quoted 128 lines · Yi Jiang

---
 ci/kernel_5_10.yml | 15 ++++++++++++++-
 ci/kernel_5_15.yml | 15 ++++++++++++++-
 ci/kernel_6_1.yml  | 15 ++++++++++++++-
 ci/kernel_6_6.yml  | 13 +++++++++++++

 4 files changed, 55 insertions(+), 3 deletions(-)
ci/kernel_5_10.yml +1 -1
index 44cd6d6..36c2e06 100644
@@ -1,7 +1,7 @@
  #
  # Xenomai Real-Time System
  #
-# Copyright (c) Siemens AG, 2019 - 2022
+# Copyright (c) Siemens AG, 2019 - 2024
  #
  # Authors:
  #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-5.10:hikey:

   variables:
     KERNEL_VERSION: "5.10"

ci/kernel_5_10.yml +13 -0
+build-5.10:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-5.10.yml"
+    KERNEL_VERSION: "5.10"
+    CACHE_KERNEL: dovetail
+
+lava-test-5.10:rpi4:
+  needs: [ "build-5.10:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "5.10"
+

 build-5.10:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:

ci/kernel_5_15.yml +1 -1
index 52710fd..e17275a 100644
@@ -1,7 +1,7 @@
  #
  # Xenomai Real-Time System
  #
-# Copyright (c) Siemens AG, 2022
+# Copyright (c) Siemens AG, 2022 - 2024
  #
  # Authors:
  #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-5.15:hikey:

   variables:
     KERNEL_VERSION: "5.15"

ci/kernel_5_15.yml +13 -0
+build-5.15:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-5.15.yml"
+    KERNEL_VERSION: "5.15"
+    CACHE_KERNEL: dovetail
+
+lava-test-5.15:rpi4:
+  needs: [ "build-5.15:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "5.15"
+

 build-5.15:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:

ci/kernel_6_1.yml +1 -1
index 1c6a6d7..cd7906d 100644
@@ -1,7 +1,7 @@
  #
  # Xenomai Real-Time System
  #
-# Copyright (c) Siemens AG, 2022-2023
+# Copyright (c) Siemens AG, 2022-2024
  #
  # Authors:
  #  Jan Kiszka <[email protected]>
@@ -61,6 +61,19 @@ lava-test-6.1:hikey:

   variables:
     KERNEL_VERSION: "6.1"

ci/kernel_6_1.yml +13 -0
+build-6.1:rpi4:
+  extends: .build:rpi4
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.1"
+    CACHE_KERNEL: dovetail
+
+lava-test-6.1:rpi4:
+  needs: [ "build-6.1:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "6.1"
+

 build-6.1:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:

ci/kernel_6_6.yml +0 -0
index f13d28d..d840d26 100644
@@ -61,6 +61,19 @@ lava-test-6.6:hikey:

   variables:
     KERNEL_VERSION: "6.6"

ci/kernel_6_6.yml +13 -0
+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:rpi4:
+  needs: [ "build-6.6:rpi4" ]
+  extends: .lava-test:rpi4
+  variables:
+    KERNEL_VERSION: "6.6"
+
Quoted 3 lines

 build-6.6:beagle-bone-black:
   extends: .build:beagle-bone-black
   variables:

Two things:

Quoted 4 lines

 - I strongly suspect that patch 4 needs to come first, or this patch
   will break CI

Quoted 5 lines

Does it mean that ci/gitlab-ci-base.yml depends on tests/jobs/xenomai-
rpi4.yml, so that ci/gitlab-ci-base.yml will crash if it did not detect
tests/jobs/xenomai-rpi4.yml?

Quoted 8 lines

Well, you extend the pipeline in this patch to run RPi4 jobs, including
their lava tests, no? Then that part of the pipeline implicitly expects
the job descriptions that you only add in patch 4 to be available already. If I'm right, you should simply flip the ordering of patch 3 and 4 in your next version of this series.

Yes, I extend the pipeline by adding RPi4 jobs, including their lava tests. I will change the order of patch 3 and 4 in the next version.

Quoted 17 lines
Quoted 8 lines
Quoted 8 lines

 - I would prefer to switch some existing hikey jobs to rpi4, rather
   than adding theses 4 extra ones. How about only switching 6.6 to
rpi
   for now?

Quoted 5 lines
Quoted 2 lines

Jan

Yes, I can do that.

Thanks,
Jan

Signature · 3 lines
Yi Jiang
Siemens AG
www.siemens.com
author
#10 lore raw

PATCH 4/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