From nobody Sun May 5 23:11:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1659734297; cv=none; d=zohomail.com; s=zohoarc; b=c0QQVYAG7ATraNd0ldcJXh2ZCWY4dmRJfy31pxUdwpjtFdkxpTQ3YiFNPYNJW2KLjV6vuvVGYbk7xfrvr2q5rxQ7+V5mDbiotqCa22VB5NraP8qErvzdz7qGNoChsVB8dOTjtVfBT6VfW9U/vIDwEu0dpE+HWY+RUtvX+vr6E58= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659734297; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=s9dZ6sD5EIOKc0plVklLAsEe+knWyHasBDCNA/VtHus=; b=NuBH9PzN5pF3csNexcbVKBVB5gHyMrL+wT+ZAVehYT/TBZ9FwB+BBldFDc9Rz/yJy56gLi4AUt49AOKER1nsz6579PJWt0d5jv/rYaDYa/3EJGdzWJB7DaOtwjR86isetnGRSjIRlnwBmHJu0ihdyhDskHU4vs3Rps2LxGV1yBw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1659734297275224.896455827291; Fri, 5 Aug 2022 14:18:17 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.381517.616247 (Exim 4.92) (envelope-from ) id 1oK4hc-0007n0-8B; Fri, 05 Aug 2022 21:17:52 +0000 Received: by outflank-mailman (output) from mailman id 381517.616247; Fri, 05 Aug 2022 21:17:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oK4hc-0007mt-3m; Fri, 05 Aug 2022 21:17:52 +0000 Received: by outflank-mailman (input) for mailman id 381517; Fri, 05 Aug 2022 21:17:51 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oK4ha-0007XM-Vr for xen-devel@lists.xenproject.org; Fri, 05 Aug 2022 21:17:51 +0000 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [2a00:1450:4864:20::433]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 0f5dd7d5-1504-11ed-924f-1f966e50362f; Fri, 05 Aug 2022 23:17:50 +0200 (CEST) Received: by mail-wr1-x433.google.com with SMTP id z16so4471012wrh.12 for ; Fri, 05 Aug 2022 14:17:50 -0700 (PDT) Received: from uni.. ([2a02:587:ac1d:6c00:cdd9:ab5d:6d5c:1538]) by smtp.googlemail.com with ESMTPSA id z9-20020a5d4d09000000b0021dd08ad8d7sm4833347wrt.46.2022.08.05.14.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 14:17:48 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 0f5dd7d5-1504-11ed-924f-1f966e50362f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=s9dZ6sD5EIOKc0plVklLAsEe+knWyHasBDCNA/VtHus=; b=DcUFLQg+YNAbdV/DmeSGNv8P8WebdIyymNu1Z26ni61qgnFhAkmTdJ7px68E3khP83 wSQnneMtiEJdZ24Nh8cFtVGJ043EaQ31P+yUcGLBXwJqtGMhR/ApDkLrmsA10Lg1mqMU MtU5AyPLtPxcq8/PGGF6jlu3IGn2NY5yc2O5v5hpicUtDz/qzAQOzJvE68GhL1GQyfbF 6X2vnrdA4Bsk5UPOtRK0hGHGHZ88q4jqrnpwpvGgHBnXgOxtIKttCUlDhtANiUhPHfBu +bucLw5+1+2E3vqo+1XU5iTXXKs6x7wTRjytAvxKi7DSrjHQVNI7tuJ6fGaNB+wGnfJL GtwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=s9dZ6sD5EIOKc0plVklLAsEe+knWyHasBDCNA/VtHus=; b=bGywSkySecqzOuPNnyMPhxM+nZx18nV4lRsePLCJIY3yCJatwDdJ37796rRcEt8Jks EPOYxUhCGIhV8h5efHeIS7yuf1mnvtWE2oHJExw+0cAC19lt+UqhB9bHv6o9fhVU0hsK zMJ64Fwdnb9TV30eGk8mjWB5Q+8Pdbeq2CMj5cesUwQ/XA9DNCfDJCtVCIqoyzZ67USd aDqtpmcWgUIyukyjJEwjo79kmlWwvbntMPIz9LFUBv1VzMoOA5bTCe7Po3ILaYJb1yiu SV+eWySD9bVEYb41fMej4mV0DJlbs6laC/vzEZWa/MT2sxnlQ/pR6kq4fbKpVsN0rHGW PZ9g== X-Gm-Message-State: ACgBeo1a+MfAhDXmMbCktYAH+u29Ry980aQxPUUeAp13usiufzMfTz3j 9Fdw+NOdh6h8porU3dpMTyWvajr8iZo= X-Google-Smtp-Source: AA6agR4hrVFhpDLKSUGRNxT6uDWRR5gklde0uzfTdMLn9KjEGGlsjQsBbtgAxXxuTXRjBfJybezsIQ== X-Received: by 2002:adf:ce10:0:b0:221:760e:17fc with SMTP id p16-20020adfce10000000b00221760e17fcmr2420585wrn.495.1659734269494; Fri, 05 Aug 2022 14:17:49 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Doug Goldstein , Stefano Stabellini Subject: [PATCH 1/2] automation: qemu-smoke-arm64: Use kernel 5.19 Date: Sat, 6 Aug 2022 00:17:40 +0300 Message-Id: <20220805211741.1869068-2-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220805211741.1869068-1-burzalodowa@gmail.com> References: <20220805211741.1869068-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1659734298987100001 Content-Type: text/plain; charset="utf-8" Use kernel 5.19 to unblock testing dom0less enhanced. This kernel version has the necessary patches for deferring xenbus probe until xenstore is fully initialized. Also, build kernel with bridging and xen netback support enabled because it will be used for testing network connectivity between Dom0 and Dom1 over a pv network interface. Signed-off-by: Xenia Ragiadakou Reviewed-by: Stefano Stabellini --- automation/gitlab-ci/build.yaml | 11 ++++++ automation/gitlab-ci/test.yaml | 4 +- .../kernel/5.19-arm64v8.dockerfile | 37 +++++++++++++++++++ 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 automation/tests-artifacts/kernel/5.19-arm64v8.dockerfi= le diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.y= aml index 23b306e7d0..d2f75a090c 100644 --- a/automation/gitlab-ci/build.yaml +++ b/automation/gitlab-ci/build.yaml @@ -597,6 +597,17 @@ kernel-5.9.9-arm64-export: tags: - arm64 =20 +kernel-5.19-arm64-export: + extends: .test-jobs-artifact-common + image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:5.19-a= rm64v8 + script: + - mkdir binaries && cp /Image binaries/Image + artifacts: + paths: + - binaries/Image + tags: + - arm64 + qemu-system-aarch64-6.0.0-arm64-export: extends: .test-jobs-artifact-common image: registry.gitlab.com/xen-project/xen/tests-artifacts/qemu-system-a= arch64:6.0.0-arm64v8 diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index 6f9f64a8da..aa633fb655 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -70,7 +70,7 @@ qemu-smoke-arm64-gcc: - ./automation/scripts/qemu-smoke-arm64.sh 2>&1 | tee qemu-smoke-arm64= .log needs: - debian-unstable-gcc-arm64 - - kernel-5.9.9-arm64-export + - kernel-5.19-arm64-export - qemu-system-aarch64-6.0.0-arm64-export artifacts: paths: @@ -88,7 +88,7 @@ qemu-smoke-arm64-gcc-staticmem: - ./automation/scripts/qemu-smoke-arm64.sh static-mem 2>&1 | tee qemu-= smoke-arm64.log needs: - debian-unstable-gcc-arm64 - - kernel-5.9.9-arm64-export + - kernel-5.19-arm64-export - qemu-system-aarch64-6.0.0-arm64-export artifacts: paths: diff --git a/automation/tests-artifacts/kernel/5.19-arm64v8.dockerfile b/au= tomation/tests-artifacts/kernel/5.19-arm64v8.dockerfile new file mode 100644 index 0000000000..e445c1f03a --- /dev/null +++ b/automation/tests-artifacts/kernel/5.19-arm64v8.dockerfile @@ -0,0 +1,37 @@ +FROM arm64v8/debian:unstable +LABEL maintainer.name=3D"The Xen Project" \ + maintainer.email=3D"xen-devel@lists.xenproject.org" + +ENV DEBIAN_FRONTEND=3Dnoninteractive +ENV LINUX_VERSION=3D5.19 +ENV USER root + +RUN mkdir /build +WORKDIR /build + +# build depends +RUN apt-get update && \ + apt-get --quiet --yes install \ + build-essential \ + libssl-dev \ + bc \ + curl \ + flex \ + bison \ + && \ + \ + # Build the kernel + curl -fsSLO https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-"$LINUX= _VERSION".tar.xz && \ + tar xvJf linux-"$LINUX_VERSION".tar.xz && \ + cd linux-"$LINUX_VERSION" && \ + make defconfig && \ + sed -i 's/CONFIG_IPV6=3Dm/CONFIG_IPV6=3Dy/g' .config && \ + sed -i 's/CONFIG_BRIDGE=3Dm/CONFIG_BRIDGE=3Dy/g' .config && \ + sed -i 's/# CONFIG_XEN_NETDEV_BACKEND is not set/CONFIG_XEN_NETDEV_BAC= KEND=3Dy/g' .config && \ + make -j$(nproc) Image.gz && \ + cp arch/arm64/boot/Image / && \ + cd /build && \ + rm -rf linux-"$LINUX_VERSION"* && \ + apt-get autoremove -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/* --=20 2.34.1 From nobody Sun May 5 23:11:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1659734307; cv=none; d=zohomail.com; s=zohoarc; b=Mz/7ORAloKqMgNw1VRMglamnQDCO7TDxLgg76vXR8XnSI0wpBvflNRNcwWsGHfDn5f/UV45mst7fENbibRTDLP6K0hAxC0ZGnW/i6NlDCKPrIkOoRrCBukvRBcOL8eYWTKtyYRvqKdhDbIbsjwiGlRxXQ7ESTvT7dXNexVKJznk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659734307; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FtiZPovu9vfEtmY1jAZC9LcYQsm0U6GpSbrl2Z2hIbc=; b=K8Ee7SHBxceYXaX0jfvugnJm9er/aslM6dZUEJMxscToeBFNe6/cKYbaztMAx/E+d7XskfLhp4pHhdUQfXyJBatCSmk7enQ3LNsRDS05nqtkqxGjmNGkSMQq5otL5LKhviQzGIptAMvDSsc4FcAJb++Ue5fH5Mqfcw1q/98Fbyo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1659734307293810.6621182381431; Fri, 5 Aug 2022 14:18:27 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.381518.616257 (Exim 4.92) (envelope-from ) id 1oK4he-00083F-EP; Fri, 05 Aug 2022 21:17:54 +0000 Received: by outflank-mailman (output) from mailman id 381518.616257; Fri, 05 Aug 2022 21:17:54 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oK4he-000836-Bg; Fri, 05 Aug 2022 21:17:54 +0000 Received: by outflank-mailman (input) for mailman id 381518; Fri, 05 Aug 2022 21:17:53 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oK4hd-0007XM-76 for xen-devel@lists.xenproject.org; Fri, 05 Aug 2022 21:17:53 +0000 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [2a00:1450:4864:20::436]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 10b00da1-1504-11ed-924f-1f966e50362f; Fri, 05 Aug 2022 23:17:52 +0200 (CEST) Received: by mail-wr1-x436.google.com with SMTP id z17so4528125wrq.4 for ; Fri, 05 Aug 2022 14:17:52 -0700 (PDT) Received: from uni.. ([2a02:587:ac1d:6c00:cdd9:ab5d:6d5c:1538]) by smtp.googlemail.com with ESMTPSA id z9-20020a5d4d09000000b0021dd08ad8d7sm4833347wrt.46.2022.08.05.14.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 14:17:51 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 10b00da1-1504-11ed-924f-1f966e50362f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=FtiZPovu9vfEtmY1jAZC9LcYQsm0U6GpSbrl2Z2hIbc=; b=iaVdZeRoahjmE2/0xsoK1A9C/Wz4QKmJeuoUGehyxz9Ze+r7bs9FRV414CyEWyXYWJ Ziv90U8mWv6Wz91aFPh08G39sT3IfSnYLmbyjgQ0QuzM03LlcM+Y2TslEyY6cIvWoElt 8s6+u5LiRynHZ9I3sunbhhLLq6u0curk8sdU8I9NGlUBHUhHVMH84Ftc6u7rDNNm/o7h nrm+c0tsHQLu3/MDDleARoxL2wOdvKtBYO9UKYNR7H2Lmk817s09uoSQHHpUoG1ey5CJ 7W+EaJTIpgrUlhIs2j7ZYGZ/MqRacJSZjzkYPiYRKGlnjntoZ/BZpY3bDSs2juACO+cM aLuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=FtiZPovu9vfEtmY1jAZC9LcYQsm0U6GpSbrl2Z2hIbc=; b=c//1H1v1VksYme/MqmDOPYa8j4o0m0a99Gjl2gNQBcxlUdTjcVMLb0qxthlfRQ/gru +NMj5RuBW8hbT4CrWJv7ZfOywbKnCTlVIvOcuDxw2DD5ExqDPWB2ZO60TkB8ZitTDhKp j1F4SZd1v08oYMN5TsMWzmZWaWBcoGgMaJ9/UG5I6xIHgmekE31xH7vAatf/1LRerxv8 ireelRTm27FDSwxi64JvkDhlqQsRCwi4oOyFjZ1GoMiBaMQxe8nU8nFim8B+Hpp2yk9g s51S2CofLA5bLNTCyDTCMLwPwMMRnwZIh6gx3+RNsfKWbBJm/jTBcs3082ti2UutieuZ ON0A== X-Gm-Message-State: ACgBeo08jS1bPa450l9M2dDNQOWs1UW4lVPq63hMV4DGW6Em6qkEc5Ao FncsgPApwf3MkvpubXzgYstwGC80MRY= X-Google-Smtp-Source: AA6agR4TEPDzWeoho1seRvUXiN8ohf2xxoKIF7etu4KP7Do/42XxlyZ5JsnHqCJ5IeKzgdHzuzarhA== X-Received: by 2002:a5d:64e2:0:b0:220:7dc6:1353 with SMTP id g2-20020a5d64e2000000b002207dc61353mr5417626wri.411.1659734271743; Fri, 05 Aug 2022 14:17:51 -0700 (PDT) From: Xenia Ragiadakou To: xen-devel@lists.xenproject.org Cc: Doug Goldstein , Stefano Stabellini Subject: [PATCH 2/2] automation: qemu-smoke-arm64: Run ping test over a pv network interface Date: Sat, 6 Aug 2022 00:17:41 +0300 Message-Id: <20220805211741.1869068-3-burzalodowa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220805211741.1869068-1-burzalodowa@gmail.com> References: <20220805211741.1869068-1-burzalodowa@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1659734309098100001 Content-Type: text/plain; charset="utf-8" This patch modified the test in the following way - Dom0 is booted with an alpine linux rootfs with the xen tools. - Once Dom0 is booted, it starts xenstored, calls init-dom0less to setup the xenstore interface for the dom0less Dom1, setups the bridged network and attaches a pv network interface to Dom1. - In the meantime, Dom1 in its init script tries to assign an ip to eth0 and ping Dom0, - If Dom1 manages to ping Dom0, it prints 'passed'. Signed-off-by: Xenia Ragiadakou --- automation/gitlab-ci/test.yaml | 6 ++-- automation/scripts/qemu-smoke-arm64.sh | 43 +++++++++++++++++++++++--- 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index aa633fb655..2eb6c3866e 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -69,7 +69,8 @@ qemu-smoke-arm64-gcc: script: - ./automation/scripts/qemu-smoke-arm64.sh 2>&1 | tee qemu-smoke-arm64= .log needs: - - debian-unstable-gcc-arm64 + - alpine-3.12-gcc-arm64 + - alpine-3.12-arm64-rootfs-export - kernel-5.19-arm64-export - qemu-system-aarch64-6.0.0-arm64-export artifacts: @@ -87,7 +88,8 @@ qemu-smoke-arm64-gcc-staticmem: script: - ./automation/scripts/qemu-smoke-arm64.sh static-mem 2>&1 | tee qemu-= smoke-arm64.log needs: - - debian-unstable-gcc-arm64 + - alpine-3.12-gcc-arm64 + - alpine-3.12-arm64-rootfs-export - kernel-5.19-arm64-export - qemu-system-aarch64-6.0.0-arm64-export artifacts: diff --git a/automation/scripts/qemu-smoke-arm64.sh b/automation/scripts/qe= mu-smoke-arm64.sh index b48a20988f..0d19ad52cc 100755 --- a/automation/scripts/qemu-smoke-arm64.sh +++ b/automation/scripts/qemu-smoke-arm64.sh @@ -4,8 +4,13 @@ set -ex =20 test_variant=3D$1 =20 -passed=3D"BusyBox" -check=3D"" +passed=3D"passed" +check=3D" +until ifconfig eth0 192.168.0.2 && ping -c 10 192.168.0.1; do + sleep 30 +done +echo \"${passed}\" +" =20 if [[ "${test_variant}" =3D=3D "static-mem" ]]; then # Memory range that is statically allocated to DOM1 @@ -68,6 +73,36 @@ cd initrd find . | cpio --create --format=3D'newc' | gzip > ../binaries/initrd cd .. =20 +# DOM0 rootfs +mkdir -p rootfs +cd rootfs +tar xzf ../binaries/initrd.tar.gz +mkdir proc +mkdir run +mkdir srv +mkdir sys +rm var/run +cp -ar ../binaries/dist/install/* . + +echo "#!/bin/bash + +export LD_LIBRARY_PATH=3D/usr/local/lib +bash /etc/init.d/xencommons start + +/usr/local/lib/xen/bin/init-dom0less + +brctl addbr xenbr0 +brctl addif xenbr0 eth0 +ifconfig eth0 up +ifconfig xenbr0 up +ifconfig xenbr0 192.168.0.1 + +xl network-attach 1 type=3Dvif +" > etc/local.d/xen.start +chmod +x etc/local.d/xen.start +echo "rc_verbose=3Dyes" >> etc/rc.conf +find . | cpio -H newc -o | gzip > ../binaries/dom0-rootfs.cpio.gz +cd .. =20 # ImageBuilder echo 'MEMORY_START=3D"0x40000000" @@ -76,7 +111,7 @@ MEMORY_END=3D"0x80000000" DEVICE_TREE=3D"virt-gicv2.dtb" XEN=3D"xen" DOM0_KERNEL=3D"Image" -DOM0_RAMDISK=3D"initrd" +DOM0_RAMDISK=3D"dom0-rootfs.cpio.gz" XEN_CMD=3D"console=3Ddtuart dom0_mem=3D512M" =20 NUM_DOMUS=3D1 @@ -113,5 +148,5 @@ timeout -k 1 240 \ -bios /usr/lib/u-boot/qemu_arm64/u-boot.bin |& tee smoke.serial =20 set -e -(grep -q "^BusyBox" smoke.serial && grep -q "DOM1: ${passed}" smoke.serial= ) || exit 1 +(grep -q "^Welcome to Alpine Linux 3.12" smoke.serial && grep -q "DOM1: ${= passed}" smoke.serial) || exit 1 exit 0 --=20 2.34.1