All of lore.kernel.org
 help / color / mirror / Atom feed
* [xenomai-images PATCH 0/2] Add hikey test support
@ 2019-11-05 16:22 Q. Gylstorff
  2019-11-05 16:22 ` [xenomai-images PATCH 1/2] tests: hikey xenomai-tests Q. Gylstorff
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Q. Gylstorff @ 2019-11-05 16:22 UTC (permalink / raw)
  To: xenomai

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

Add hikey as platform for xenomai arm64 tests on LAVA.

Quirin Gylstorff (2):
  tests: hikey xenomai-tests
  ci: add hikey test

 .gitlab-ci.yml                             | 13 +++-
 conf/machine/hikey.conf                    |  3 +
 recipes-kernel/linux/files/arm64_defconfig |  6 +-
 tests/jobs/xenomai-hikey.yml               | 72 ++++++++++++++++++++++
 4 files changed, 90 insertions(+), 4 deletions(-)
 create mode 100644 tests/jobs/xenomai-hikey.yml

-- 
2.20.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [xenomai-images PATCH 1/2] tests: hikey xenomai-tests
  2019-11-05 16:22 [xenomai-images PATCH 0/2] Add hikey test support Q. Gylstorff
@ 2019-11-05 16:22 ` Q. Gylstorff
  2019-11-05 16:22 ` [xenomai-images PATCH 2/2] ci: add hikey test Q. Gylstorff
  2019-11-05 20:03 ` [xenomai-images PATCH 0/2] Add hikey test support Jan Kiszka
  2 siblings, 0 replies; 4+ messages in thread
From: Q. Gylstorff @ 2019-11-05 16:22 UTC (permalink / raw)
  To: xenomai

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

For arm64 tests a hikey620 board is used. The board uses u-boot
as bootloader to detect a USB2.0 Ethernet adapter to load the
kernel, devicetree and rootfs.

The U-boot bootloader was build and deployed according [1].

[1]: https://gitlab.denx.de/u-boot/u-boot/tree/master/board/hisilicon/hikey

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 conf/machine/hikey.conf                    |  2 +
 recipes-kernel/linux/files/arm64_defconfig |  6 +-
 tests/jobs/xenomai-hikey.yml               | 72 ++++++++++++++++++++++
 3 files changed, 77 insertions(+), 3 deletions(-)
 create mode 100644 tests/jobs/xenomai-hikey.yml

diff --git a/conf/machine/hikey.conf b/conf/machine/hikey.conf
index 11cf635..c28c350 100644
--- a/conf/machine/hikey.conf
+++ b/conf/machine/hikey.conf
@@ -17,3 +17,5 @@ IMAGER_INSTALL += "${GRUB_BOOTLOADER_INSTALL}"
 IMAGE_PREINSTALL_append = " firmware-ti-connectivity"
 
 PREFERRED_VERSION_xenomai = "next"
+# DTB for testing
+DTB_FILE = "hi6220-hikey.dtb"
diff --git a/recipes-kernel/linux/files/arm64_defconfig b/recipes-kernel/linux/files/arm64_defconfig
index f1d7c31..d4e717e 100644
--- a/recipes-kernel/linux/files/arm64_defconfig
+++ b/recipes-kernel/linux/files/arm64_defconfig
@@ -2071,9 +2071,9 @@ CONFIG_USB_PEGASUS=m
 CONFIG_USB_RTL8150=m
 CONFIG_USB_RTL8152=m
 # CONFIG_USB_LAN78XX is not set
-CONFIG_USB_USBNET=m
-CONFIG_USB_NET_AX8817X=m
-CONFIG_USB_NET_AX88179_178A=m
+CONFIG_USB_USBNET=y
+CONFIG_USB_NET_AX8817X=y
+CONFIG_USB_NET_AX88179_178A=y
 CONFIG_USB_NET_CDCETHER=m
 # CONFIG_USB_NET_CDC_EEM is not set
 CONFIG_USB_NET_CDC_NCM=m
diff --git a/tests/jobs/xenomai-hikey.yml b/tests/jobs/xenomai-hikey.yml
new file mode 100644
index 0000000..3e52212
--- /dev/null
+++ b/tests/jobs/xenomai-hikey.yml
@@ -0,0 +1,72 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2019
+#
+# Authors:
+#  Quirin Gylstorff <quirin.gylstorff@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+job_name: xenomai-test-suite
+device_type: hikey
+
+timeouts:
+  job:
+    minutes: 30
+  action:
+    minutes: 20
+  connection:
+    minutes: 2
+priority: medium
+visibility: public
+
+metadata:
+  docs-source: xenomai-hikey
+  docs-filename: pipeline-xenomai-hikey
+# ACTION_BLOCK
+actions:
+- deploy:
+    timeout:
+      minutes: 30
+    to: tftp
+    kernel:
+      url: ${DEPLOY_URL}/demo-image-xenomai-demo-hikey-vmlinuz
+      type: image
+    dtb:
+      url: ${DEPLOY_URL}/hi6220-hikey.dtb
+    nfsrootfs:
+      url: ${DEPLOY_URL}/demo-image-xenomai-demo-hikey.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\" -p 1000
+      from: inline
+      path: inline/xenomai-test-suite.yaml
+      name: xenomai-test-suite
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [xenomai-images PATCH 2/2] ci: add hikey test
  2019-11-05 16:22 [xenomai-images PATCH 0/2] Add hikey test support Q. Gylstorff
  2019-11-05 16:22 ` [xenomai-images PATCH 1/2] tests: hikey xenomai-tests Q. Gylstorff
@ 2019-11-05 16:22 ` Q. Gylstorff
  2019-11-05 20:03 ` [xenomai-images PATCH 0/2] Add hikey test support Jan Kiszka
  2 siblings, 0 replies; 4+ messages in thread
From: Q. Gylstorff @ 2019-11-05 16:22 UTC (permalink / raw)
  To: xenomai

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

add the hikey lava-test configuration to gitlab-ci.

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 .gitlab-ci.yml | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0974548..0abc256 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -90,7 +90,18 @@ build:board-hikey:
   script:
     - kas build kas.yml:board-hikey.yml:opt-lava-test.yml${BUILD_OPTIONS}
     - scripts/deploy_for_testing.sh hikey
-# hikey is currently not part of the testlab
+
+lava-test:board-hikey:
+  <<: *lava-ssh-key
+  stage: lava-test
+  script:
+    - scripts/install-lavacli.sh
+    - scripts/run-lava-tests.sh hikey
+  needs: [ "build:board-hikey" ]
+  only:
+    variables:
+      - $LAVA_SSH_USER
+
 
 build:board-beaglebone:
   <<: *lava-ssh-key
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [xenomai-images PATCH 0/2] Add hikey test support
  2019-11-05 16:22 [xenomai-images PATCH 0/2] Add hikey test support Q. Gylstorff
  2019-11-05 16:22 ` [xenomai-images PATCH 1/2] tests: hikey xenomai-tests Q. Gylstorff
  2019-11-05 16:22 ` [xenomai-images PATCH 2/2] ci: add hikey test Q. Gylstorff
@ 2019-11-05 20:03 ` Jan Kiszka
  2 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2019-11-05 20:03 UTC (permalink / raw)
  To: Q. Gylstorff, xenomai

On 05.11.19 17:22, Q. Gylstorff wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> 
> Add hikey as platform for xenomai arm64 tests on LAVA.
> 
> Quirin Gylstorff (2):
>   tests: hikey xenomai-tests
>   ci: add hikey test
> 
>  .gitlab-ci.yml                             | 13 +++-
>  conf/machine/hikey.conf                    |  3 +
>  recipes-kernel/linux/files/arm64_defconfig |  6 +-
>  tests/jobs/xenomai-hikey.yml               | 72 ++++++++++++++++++++++
>  4 files changed, 90 insertions(+), 4 deletions(-)
>  create mode 100644 tests/jobs/xenomai-hikey.yml
> 

Thanks, works nicely, all applied.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-05 20:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 16:22 [xenomai-images PATCH 0/2] Add hikey test support Q. Gylstorff
2019-11-05 16:22 ` [xenomai-images PATCH 1/2] tests: hikey xenomai-tests Q. Gylstorff
2019-11-05 16:22 ` [xenomai-images PATCH 2/2] ci: add hikey test Q. Gylstorff
2019-11-05 20:03 ` [xenomai-images PATCH 0/2] Add hikey test support Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.