Update to Isar 0.9
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/4 Update to Isar 0.9
From: Jan Kiszka <[email protected]>
This brings changes to image types that are almost easy to account for and permit to drop our downstream patch. Also the image file name changed, so adjust test jobs, readme and start-qemu.sh.
There was one catch: qemu-machine.inc did not weak-assign IMAGE_FSTYPES, which is now important as opt-ci.yml must be able to overwrite it.
The Isar update itself fixes logging issues, thus helps a lot with analyzing failing builds, specifically in CI.
--- README.md | 2 +- conf/machine/beagle-bone-black.conf | 2 +- conf/machine/hikey.conf | 2 +- conf/machine/qemu-machine.inc | 2 +- conf/machine/x86-64-efi.conf | 2 +- .../0001-classes-ext4.img-Compress.patch | 31 ------------------- kas.yml | 2 +- opt-ci.yml | 12 ++----- start-qemu.sh | 2 +- tests/jobs/xenomai-qemu-amd64.yml | 2 +- tests/jobs/xenomai-qemu-arm64.yml | 2 +- tests/jobs/xenomai-qemu-armhf.yml | 2 +- 12 files changed, 12 insertions(+), 51 deletions(-) delete mode 100644 isar-patches/0001-classes-ext4.img-Compress.patch
README.md +1 -1
@@ -41,7 +41,7 @@ armhf(`board-beagle-bone-black.yml`) and arm64(`board-hikey.yml`) targets. Each physical target will generate ready-to-boot images under `build/tmp/deploy/images/`. To flash, e.g., the HiKey image to an SD card, run - dd if=build/tmp/deploy/images/hikey/demo-image-hikey-xenomai-demo-hikey.wic.img \ + dd if=build/tmp/deploy/images/hikey/demo-image-hikey-xenomai-demo-hikey.wic \ of=/dev/<medium-device> bs=1M status=progress ## CI Build
conf/machine/beagle-bone-black.conf +1 -1
@@ -13,7 +13,7 @@ DISTRO_ARCH = "armhf" IMAGE_INSTALL += "u-boot-script" -IMAGE_FSTYPES ?= "wic-img" +IMAGE_FSTYPES ?= "wic" DTB_FILES = "am335x-boneblack.dtb" IMAGER_INSTALL += "u-boot-omap" IMAGE_PREINSTALL += "fake-hwclock"
conf/machine/hikey.conf +1 -1
@@ -11,7 +11,7 @@ DISTRO_ARCH = "arm64" -IMAGE_FSTYPES ?= "wic-img" +IMAGE_FSTYPES ?= "wic" IMAGER_INSTALL += "${GRUB_BOOTLOADER_INSTALL}" IMAGE_PREINSTALL_append = " firmware-ti-connectivity"
conf/machine/qemu-machine.inc +1 -1
@@ -9,7 +9,7 @@ # SPDX-License-Identifier: MIT # -IMAGE_FSTYPES = "ext4-img" +IMAGE_FSTYPES ?= "ext4" IMAGE_INSTALL_remove += "expand-on-first-boot" ROOTFS_EXTRA = "1024"
conf/machine/x86-64-efi.conf +1 -1
@@ -11,5 +11,5 @@ DISTRO_ARCH = "amd64" -IMAGE_FSTYPES ?= "wic-img" +IMAGE_FSTYPES ?= "wic" IMAGER_INSTALL += "${GRUB_BOOTLOADER_INSTALL}"
isar-patches/0001-classes-ext4.img-Compress.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From 915eec01cf660b160b1eab551c60fba4aac13b4b Mon Sep 17 00:00:00 2001 -From: Quirin Gylstorff <[email protected]> -Date: Fri, 17 Apr 2020 11:32:39 +0200 -Subject: [PATCH] classes/ext4.img: Compress - -change owner and add compress option - -Signed-off-by: Quirin Gylstorff <[email protected]> ---- - meta/classes/ext4-img.bbclass | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/meta/classes/ext4-img.bbclass b/meta/classes/ext4-img.bbclass -index 334dc64..dc091d9 100644 ---- a/meta/classes/ext4-img.bbclass -+++ b/meta/classes/ext4-img.bbclass -@@ -17,6 +17,11 @@ do_ext4_image() { - - sudo chroot ${BUILDCHROOT_DIR} /sbin/mke2fs ${MKE2FS_ARGS} \ - -F -d '${PP_ROOTFS}' '${PP_DEPLOY}/${EXT4_IMAGE_FILE}' -+ sudo chown $(id -u):$(id -g) ${DEPLOY_DIR_IMAGE}/${EXT4_IMAGE_FILE} -+ -+ if [ "${COMPRESS}" = "gz" ]; then -+ gzip ${DEPLOY_DIR_IMAGE}/${EXT4_IMAGE_FILE} -+ fi - } - - addtask ext4_image before do_image after do_image_tools --- -2.20.1 -
kas.yml +1 -1
@@ -22,7 +22,7 @@ repos: isar: url: https://github.com/ilbers/isar.git - refspec: a960a4e52c50ef4a15e382768eeee5fa9cfffead + refspec: 213b8f62fa74e87321f927fb6b4ed9db93e5cb37 layers: meta:
opt-ci.yml +2 -10
@@ -14,21 +14,13 @@ header: includes: - opt-debug.yml -repos: - isar: - patches: - 01-compress-ext4: - path: isar-patches/0001-classes-ext4.img-Compress.patch - repo: xenomai - # LAVA uses nfs to deploy the image to real boards. For this we need a tarball # instead of full disk/wic image -# For qemu we need a compressed ext4-img +# For qemu we need a compressed ext4 image local_conf_header: xenomai-ci: | ROOTFS_POSTPROCESS_COMMAND_remove = "image_postprocess_sshd_key_regen" IMAGE_INSTALL_remove += "sshd-regen-keys" IMAGE_INSTALL_remove += "expand-on-first-boot" - IMAGE_FSTYPES = "${@ 'ext4-img' if d.getVar('MACHINE', True).startswith('qemu') else 'targz-img' }" - COMPRESS = "${@ 'gz' if d.getVar('MACHINE', True).startswith('qemu') else '' }" + IMAGE_FSTYPES = "${@ 'ext4.gz' if d.getVar('MACHINE', True).startswith('qemu') else 'tar.gz' }"
start-qemu.sh +1 -1
@@ -83,7 +83,7 @@ fi shift 1 ${QEMU_PATH}${QEMU} \ - -drive file=${IMAGE_PREFIX}.ext4.img,discard=unmap,if=none,id=disk,format=raw \ + -drive file=${IMAGE_PREFIX}.ext4,discard=unmap,if=none,id=disk,format=raw \ -m 1G -serial mon:stdio -netdev user,id=net \ -kernel ${IMAGE_PREFIX}-${KERNEL_SUFFIX} -append "${KERNEL_CMDLINE}" \ -initrd ${IMAGE_PREFIX}-initrd.img ${QEMU_EXTRA_ARGS} "$@"
tests/jobs/xenomai-qemu-amd64.yml +1 -1
@@ -53,7 +53,7 @@ actions: url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-initrd.img rootfs: image_arg: -drive file={rootfs},discard=unmap,if=none,id=disk,format=raw - url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}.ext4.img.gz + url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}.ext4.gz compression: gz # BOOT_BLOCK - boot:
tests/jobs/xenomai-qemu-arm64.yml +1 -1
@@ -57,7 +57,7 @@ actions: url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-initrd.img rootfs: image_arg: -drive file={rootfs},discard=unmap,if=none,id=disk,format=raw - url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}.ext4.img.gz + url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}.ext4.gz compression: gz # BOOT_BLOCK - boot:
tests/jobs/xenomai-qemu-armhf.yml +1 -1
@@ -53,7 +53,7 @@ actions: url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}-initrd.img rootfs: image_arg: -drive file={rootfs},discard=unmap,if=none,id=disk,format=raw - url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}.ext4.img.gz + url: ${DEPLOY_URL}/${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${TARGET}.ext4.gz compression: gz # BOOT_BLOCK - boot:
Signature · 1 line
2.35.3
PATCH 2/4 ci: Make alternative DNS server configuration configurable
In reply to a message not in the archiveFrom: Jan Kiszka <[email protected]>
Private deployments may not need or may not even support the hack we carry for AWS hostings.
--- ci/gitlab-ci-base.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
ci/gitlab-ci-base.yml +5 -2
@@ -1,7 +1,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2019 - 2020 +# Copyright (c) Siemens AG, 2019 - 2022 # # Authors: # Quirin Gylstorff <[email protected]>
@@ -22,13 +22,16 @@ variables: ISAR_DISTRIBUTION: xenomai-demo LAVA_TESTS_ENABLED: "true" BUILD_IDENTIFIER: "xenomai-${XENOMAI_VERSION}_kernel-${KERNEL_VERSION}" + ALT_DNS_SERVER: "" default: image: ghcr.io/siemens/kas/kas-isar:2.6.3 .common-config: before_script: - - sudo sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf" + - if [ -n "$ALT_DNS_SERVER" ]; then + sudo sh -c "echo 'nameserver $ALT_DNS_SERVER' > /etc/resolv.conf"; + fi - mkdir -p -m=700 ~/.ssh - if [ -n "$https_proxy" ]; then echo "ProxyCommand socat - PROXY:$(echo $https_proxy | sed 's|.*://\([^:]*\).*|\1|'):%h:%p,proxyport=$(echo $https_proxy | sed 's|.*:\([0-9]*\)$|\1|')" >> ~/.ssh/config;
Signature · 1 line
2.35.3
PATCH 3/4 kconfig: Limit I-pipe kernels to supported versions
In reply to a message not in the archiveFrom: Jan Kiszka <[email protected]>
The development head of Xenomai lost I-pipe support. Therefore, limit those kernels to 3.1 and 3.2 stable branches.
--- Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Kconfig +4 -4
@@ -107,19 +107,19 @@ config KERNEL_5_10 config KERNEL_5_4_LATEST bool "Head of 5.4 I-pipe branch" - depends on !XENOMAI_3_0_LATEST + depends on XENOMAI_3_2_LATEST || XENOMAI_3_2 || XENOMAI_3_1_LATEST || XENOMAI_3_1 config KERNEL_5_4 bool "Latest 5.4 I-pipe version" - depends on !XENOMAI_3_0_LATEST + depends on XENOMAI_3_2_LATEST || XENOMAI_3_2 || XENOMAI_3_1_LATEST || XENOMAI_3_1 config KERNEL_4_19_LATEST bool "Head of 4.19-cip I-pipe branch" - depends on !XENOMAI_3_0_LATEST + depends on XENOMAI_3_2_LATEST || XENOMAI_3_2 || XENOMAI_3_1_LATEST || XENOMAI_3_1 config KERNEL_4_19 bool "Latest 4.19-cip I-pipe version" - depends on !XENOMAI_3_0_LATEST + depends on XENOMAI_3_2_LATEST || XENOMAI_3_2 || XENOMAI_3_1_LATEST || XENOMAI_3_1 config KERNEL_4_4_LATEST bool "Head of 4.4-cip I-pipe branch"
Signature · 1 line
2.35.3
PATCH 4/4 Add option to build latest kernel version
In reply to a message not in the archiveFrom: Jan Kiszka <[email protected]>
This is currently 5.19-dovetail. Permits to enable and test Xenomai early against newer kernels. Official support will remain focused on LTS kernels, though.
--- Kconfig | 5 +++++ opt-linux-latest.yml | 18 ++++++++++++++++++ recipes-kernel/linux/linux-xenomai_latest.bb | 20 +++++++++++++++++--- 3 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 opt-linux-latest.yml
Kconfig +5 -0
@@ -89,6 +89,10 @@ choice prompt "Kernel version" default KERNEL_5_10 +config KERNEL_LATEST + bool "Head of latest Dovetail branch" + depends on XENOMAI_LATEST + config KERNEL_5_15_LATEST bool "Head of 5.15 Dovetail branch" depends on XENOMAI_LATEST
@@ -133,6 +137,7 @@ endchoice config KAS_INCLUDE_KERNEL string + default "opt-linux-latest.yml" if KERNEL_LATEST default "opt-linux-latest-5.15.yml" if KERNEL_5_15_LATEST default "opt-linux-5.15.yml" if KERNEL_5_15 default "opt-linux-latest-5.10.yml" if KERNEL_5_10_LATEST
opt-linux-latest.yml new file +18 -0
@@ -0,0 +1,18 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2022 +# +# Authors: +# Jan Kiszka <[email protected]> +# +# SPDX-License-Identifier: MIT +# + +header: + version: 10 + +local_conf_header: + linux-xenomai-version: | + PREFERRED_VERSION_linux-xenomai = "9999-%" + LATEST_GIT_BRANCH = "latest"
recipes-kernel/linux/linux-xenomai_latest.bb +17 -3
@@ -22,6 +22,17 @@ def is_kernel(d, ver): linux_ver = d.getVar('LATEST_GIT_BRANCH') or '' return linux_ver == ver +python () { + import subprocess + if is_kernel(d, 'latest'): + cmd = 'git ls-remote --tags --head --refs https://source.denx.de/xenomai/linux-dovetail.git | ' \ + 'sed -e "s/.*[[:space:]]refs\/\(tags\|heads\)\///" | ' \ + 'grep "v5\.[0-9][0-9].*-dovetail-rebase" | ' \ + 'sort -r -n -t - -k 5 -k 6 | head -1' + (ret, out) = subprocess.getstatusoutput(cmd) + d.setVar('LATEST_KERNEL_BRANCH', out) +} + # default: amd64 or i386 GIT_REPO = "${@ \ 'git://github.com/xenomai-ci/ipipe.git' if is_xeno_3_0(d) \
@@ -32,7 +43,8 @@ GIT_BRANCH = "${@ \ else 'ipipe-x86-4.19.y-cip' if is_kernel(d, '4.19') \ else 'ipipe-x86-5.4.y' if is_kernel(d, '5.4') \ else 'v5.10.y-dovetail-rebase' if is_kernel(d, '5.10') \ - else 'v5.15.y-dovetail-rebase' }" + else 'v5.15.y-dovetail-rebase' if is_kernel(d, '5.15') \ + else d.getVar('LATEST_KERNEL_BRANCH') }" GIT_REPO_armhf = "${@ \ 'git://github.com/xenomai-ci/ipipe.git' if is_xeno_3_0(d) \
@@ -43,7 +55,8 @@ GIT_BRANCH_armhf = "${@ \ else 'ipipe/4.19.y-cip' if is_kernel(d, '4.19') \ else 'ipipe/5.4.y' if is_kernel(d, '5.4') \ else 'v5.10.y-dovetail-rebase' if is_kernel(d, '5.10') \ - else 'v5.15.y-dovetail-rebase' }" + else 'v5.15.y-dovetail-rebase' if is_kernel(d, '5.15') \ + else d.getVar('LATEST_KERNEL_BRANCH') }" GIT_REPO_arm64 = "${@ \ 'git://github.com/xenomai-ci/ipipe-arm64.git' if is_kernel(d, '4.19') or is_kernel(d, '5.4') \
@@ -52,7 +65,8 @@ GIT_BRANCH_arm64 = "${@ \ 'ipipe/4.19.y-cip' if is_kernel(d, '4.19') \ else 'ipipe/5.4.y' if is_kernel(d, '5.4') \ else 'v5.10.y-dovetail-rebase' if is_kernel(d, '5.10') \ - else 'v5.15.y-dovetail-rebase' }" + else 'v5.15.y-dovetail-rebase' if is_kernel(d, '5.15') \ + else d.getVar('LATEST_KERNEL_BRANCH') }" SRC_URI += "${GIT_REPO};protocol=https;branch=${GIT_BRANCH}" SRCREV = "${AUTOREV}"
Signature · 1 line
2.35.3