From patchwork Thu Oct 24 23:26:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Lira, Victor M" X-Patchwork-Id: 13849829 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14D4CD1038E for ; Thu, 24 Oct 2024 23:27:30 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.825584.1239859 (Exim 4.92) (envelope-from ) id 1t47Ed-0008R8-9a; Thu, 24 Oct 2024 23:27:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 825584.1239859; Thu, 24 Oct 2024 23:27:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t47Ed-0008R1-6M; Thu, 24 Oct 2024 23:27:19 +0000 Received: by outflank-mailman (input) for mailman id 825584; Thu, 24 Oct 2024 23:27:18 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t47Eb-0008CW-UF for xen-devel@lists.xenproject.org; Thu, 24 Oct 2024 23:27:18 +0000 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on20623.outbound.protection.outlook.com [2a01:111:f403:2409::623]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 80f8d9dc-925f-11ef-a0bf-8be0dac302b0; Fri, 25 Oct 2024 01:27:16 +0200 (CEST) Received: from CH5PR02CA0007.namprd02.prod.outlook.com (2603:10b6:610:1ed::29) by CY5PR12MB9054.namprd12.prod.outlook.com (2603:10b6:930:36::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Thu, 24 Oct 2024 23:27:11 +0000 Received: from CH1PEPF0000A34B.namprd04.prod.outlook.com (2603:10b6:610:1ed:cafe::87) by CH5PR02CA0007.outlook.office365.com (2603:10b6:610:1ed::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.17 via Frontend Transport; Thu, 24 Oct 2024 23:27:10 +0000 Received: from SATLEXMB03.amd.com (165.204.84.17) by CH1PEPF0000A34B.mail.protection.outlook.com (10.167.244.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8093.14 via Frontend Transport; Thu, 24 Oct 2024 23:27:10 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 24 Oct 2024 18:27:09 -0500 Received: from xsjwoods50.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 24 Oct 2024 18:27:09 -0500 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: 80f8d9dc-925f-11ef-a0bf-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sQeZtL3r9EWdz9KiUOXlB9VZ5O7a9YFC44zMiL8Ks0DFQPoNKQ61kSejsQhmYbDb1c9lO3j4IGYnwtPQf+4Vhpg2BA04CwCh9QTPg9WC4+Zdb5YQyoB1vDaAHYLnQuw+VWp9coRz19kRarbWmDZA5fth2P6RDfqjRzGRhnhqvgTKB/k9VyfKsMOA1MpIqAXjDPRt8LvMmICUO1NIN/bO2k8DHX9SwDldo9+Ytgd7o9DQ6EXU1p95wzUri3xxYbodp9zZtBrEi7Ri6oiBPjCoBjJrjrxoSCiktUyFw0Z6BNownByql5HYY7tOeHzVPYVkw0lKa1oErosGDoU7xns8Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q0LUaJFjT8XwdIp5i3PMV+jsR+6lpYkPiBuKahmzJMs=; b=p6bXEjCvSMdF642puMkQMWi9x0ZplPsMcFYrt8jH6SPwPjJtq89nceucljEFzk9xN1VvF7iVPHis5aoKlVdmesqqQ3QX/QLWrut39ZOnEeHc0Yc9zvlqh11wRMpyIG7RNCpp/RofYYhLxaw66Vn1WvphxbtPcyKA7LAyBLo/PdXdCGUJKIVM6fPxbuZaoIxU8xuLsf3fSFdnSlkj44KhazNC01/6QyjDu7/jDV/SBX1I9GWJUr+OqsOJu655R9cK8U7/pqM30pzBSBjahjPQ8FKQX7/Tic7Af4yKkebiJZ8W6ZaR1h0Z0J4omKpiTxKnldCwtcNjBjWkXiMmm/nBHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q0LUaJFjT8XwdIp5i3PMV+jsR+6lpYkPiBuKahmzJMs=; b=MpdiylOvuwAzQLonqq+UCOehqMcQ1rxLlSdQnrZvJ2YCp1B2Y0zMtuon+f6u0ecGKtcet+XDSsH7bKOpuS0wJkE72BOCsXvq1z9NnHAZ8o99TKtUimydNN13ZLRCazlidGg1IDTQ49t4PnhlIJVuf1ImuiEUExlUdDhgJyqrAYQ= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C From: To: CC: Victor Lira , Andrew Cooper , =?utf-8?q?Marek_Marczykowski-G?= =?utf-8?q?=C3=B3recki?= , Doug Goldstein , Stefano Stabellini Subject: [TEST_ARTIFACTS PATCH v1 1/1] build: add x86_64 xen artifacts (argo) Date: Thu, 24 Oct 2024 16:26:49 -0700 Message-ID: <3161fa3f955cda2d3c968d18c8afcc38316323bf.1729809799.git.victorm.lira@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: victorm.lira@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A34B:EE_|CY5PR12MB9054:EE_ X-MS-Office365-Filtering-Correlation-Id: 20744b89-a4aa-4fc0-6366-08dcf4836254 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|82310400026|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?yz2fSd0A4yvDNrlm9xhue64/a0vmgl6?= =?utf-8?q?S6JRv7bRNu1Yhw4p0VjTr3aW33UuFvMwvd05U4CpIW/mTPupScsp1hb/l9ZWfN9X1?= =?utf-8?q?HMv/ulSsVA14Vud0b5EtcZmlivyfbDniiQzzAsQE0o8e0Vopp3zEBGjg+uZ+AGsva?= =?utf-8?q?W9llmXX9fqzr/h6Md+FCC0yCBPCCRl3lVMAfzS6hKU39n5Cs8YGJ2ImbN58Yq7Pjc?= =?utf-8?q?0fy4qjf2FYiuhQJtElWyAlQyNcrDhn0WWjoiEPVs4c7udR+J2cqWG17ueF5tjIrY8?= =?utf-8?q?0B1gA2qMpCBd7P5CR/cPAr88gwqyNAiFRS9WxWBXhLE59aXjz53XwQGVSHM7bUKps?= =?utf-8?q?fFxn/sG/LEbQ85H8FdQ5uVwcb/hesvOX7a4exQTPbygYiKKYcXlbGNKn+m9y43jFX?= =?utf-8?q?CdcLwJXIXXT5GA8mzNS10PC+bcnfiz3rr75LrqxiuwFEOiZ3DCFftwrCEBXxIN/N2?= =?utf-8?q?8bK2+tDqn47//hDfYYkFj2UJ+77QFg266eSRr0vLC4Z89FytdQcM0Ml6MxW1pYpyE?= =?utf-8?q?DRuD+8Mbj1GxPrm6yzJaBQpm6+qJpTMRE8XTZjAzqJlSVHUdj+ujtzyAAN95WE/BY?= =?utf-8?q?leh1GqeYLHUi1HtXgIvEJLIGDdeMbWXETIrUjO4pdzsJpaejjjW+p51JZA3DZkokz?= =?utf-8?q?4OAMoouao0R9E5E31MMYOhlPOHMMccaborG4l5nVsuyqnw5RW4H787QiPCXEuZG4/?= =?utf-8?q?OR/zqmsKT7EUcojUAZDTvWasbM5diV5H7epdFyzqfPTn/Tqnb0b8ZEOrJdCqbIIif?= =?utf-8?q?aFnbMshzYGg9Tw7g2x6u7bQtvnDb6LNgq5v261n4WMBtLc43rN6XKoD4Zf1w50VT1?= =?utf-8?q?eDMN+8rlboCp8ZZy41zbavi1CSQg+7yWpbjDFrVRqiSyv4RqGy5vYTFmkMIfZvumo?= =?utf-8?q?gkwzeKsEpx6tNe/7UnmLuve/XgcWKUJviLmACDXeaXBY8w8XOmSAQHnS/w5/lwxqy?= =?utf-8?q?0rLKQTN4C5qm26LkymRgWIJH01+dazGgL1dQTX5o2OKVCzeuH2gjKdf822+32ZYCf?= =?utf-8?q?b+GhCPcnMfCISpeD2nkSMSdjr17pz36HN97QYTPwTTlqm8+NhC63ZAfjq+Wj3CSFX?= =?utf-8?q?8x8ZuaF2YhAqsJEUoPJBjmzaNlN6Hq1WEoOHqNdTyOCbr84zhVhC/rz2UucCfkpIS?= =?utf-8?q?B/lVyqpTuEkYlpB8i4wdVXIh3AZgiUPTrjxlhVIIunWe3gagPhz0g/kU+79hqwAII?= =?utf-8?q?va2J7Phsg+gfsrypZYvSdztAlUdefZGmfy9rh3QBVVNFA7Ldm/orL+1JseO/bLYzo?= =?utf-8?q?zkmJwqjnlX5kWBFNWFhpy9NseH7ei2/wdxg8M34r8KZMLVmXt6rhyceo=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(82310400026)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2024 23:27:10.6421 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20744b89-a4aa-4fc0-6366-08dcf4836254 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000A34B.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB9054 From: Victor Lira Add container image build files: - alpine/x86_64-build - alpine/x86_64-rootfs - Makefile Add CI configuration and jobs to produce binaries for xen tests: - xen-argo Linux Xen Argo kernel module - bzImage Linux kernel - libargo Linux Argo shared library - argo-exec Linux Argo test program - initrd.tar.gz Alpine Linux rootfs Signed-off-by: Victor Lira Reviewed-by: Stefano Stabellini --- Changes v1: - Update dockerfile format to group dependencies - add user to build container --- Cc: Andrew Cooper Cc: Marek Marczykowski-Górecki Cc: Doug Goldstein Cc: Stefano Stabellini Cc: xen-devel@lists.xenproject.org --- .gitlab-ci.yml | 50 ++++++++++++++++++++ binaries/.gitignore | 3 ++ images/Makefile | 20 ++++++++ images/alpine/x86_64-build.dockerfile | 31 +++++++++++++ images/alpine/x86_64-rootfs.dockerfile | 4 ++ scripts/x86_64-argo-linux.sh | 63 ++++++++++++++++++++++++++ scripts/x86_64-kernel-linux.sh | 31 +++++++++++++ scripts/x86_64-rootfs-alpine.sh | 58 ++++++++++++++++++++++++ 8 files changed, 260 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 binaries/.gitignore create mode 100644 images/Makefile create mode 100644 images/alpine/x86_64-build.dockerfile create mode 100644 images/alpine/x86_64-rootfs.dockerfile create mode 100755 scripts/x86_64-argo-linux.sh create mode 100755 scripts/x86_64-kernel-linux.sh create mode 100755 scripts/x86_64-rootfs-alpine.sh -- 2.25.1 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..7e18a87 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,50 @@ +workflow: + name: "xen test artifacts" + +.artifacts: + stage: build + image: + name: registry.gitlab.com/xen-project/hardware/test-artifacts/${CONTAINER} + artifacts: + name: "${CI_JOB_NAME_SLUG}" + paths: + - binaries/ + exclude: + - binaries/.gitignore + +.x86_64-artifacts: + extends: .artifacts + image: + docker: + platform: linux/amd64 + user: xenproject + tags: + - x86_64 + variables: + CONTAINER: alpine:x86_64-build + +x86_64-kernel-linux-6.6.56: + extends: .x86_64-artifacts + script: + - . scripts/x86_64-kernel-linux.sh + variables: + LINUX_VERSION: 6.6.56 + +x86_64-rootfs-alpine-3.18: + extends: .x86_64-artifacts + image: + docker: + user: root + script: + - . scripts/x86_64-rootfs-alpine.sh + variables: + CONTAINER: alpine:x86_64-rootfs + +x86_64-argo-linux-6.6.56: + extends: .x86_64-artifacts + script: + - . scripts/x86_64-argo-linux.sh + variables: + LINUX_VERSION: 6.6.56 + ARGO_SHA: "705a7a8a624b42e13e655d3042059b8a85cdf6a3" + ARGOEXEC_SHA: "d900429f6640acc6f68a3d3a4c945d7da60625d8" diff --git a/binaries/.gitignore b/binaries/.gitignore new file mode 100644 index 0000000..95e2a2e --- /dev/null +++ b/binaries/.gitignore @@ -0,0 +1,3 @@ +# Keep this directory around to be available in CI/CD jobs. +* +!.gitignore diff --git a/images/Makefile b/images/Makefile new file mode 100644 index 0000000..42f231b --- /dev/null +++ b/images/Makefile @@ -0,0 +1,20 @@ + +# The base of where these containers will appear +REGISTRY := registry.gitlab.com/xen-project/hardware/test-artifacts +CONTAINERS = $(subst .dockerfile,,$(wildcard */*.dockerfile)) + +help: + @echo "Containers to build test artifacts." + @echo "To build one run 'make DISTRO/TAG'." + @echo "Available containers:" + @$(foreach file,$(sort $(CONTAINERS)),echo ${file};) + @echo "To push container builds, set the environment variable PUSH" + +%: %.dockerfile ## Builds containers + docker build --pull -t $(REGISTRY)/$(@D):$(@F) -f $< $(&2 echo "LINUX_VERSION must be set"; exit 1 +fi + +set -ex -o pipefail + +BUILDDIR="${PWD}" +COPYDIR="${BUILDDIR}/binaries/" + +# Prepare Linux sources +curl -fsSLO \ + https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-"${LINUX_VERSION}".tar.xz +tar xJf linux-"${LINUX_VERSION}".tar.xz +cd linux-"${LINUX_VERSION}" +make ARCH=x86 defconfig +make ARCH=x86 xen.config +./scripts/config --enable BRIDGE +./scripts/config --enable IGC +./scripts/config --enable TUN +cp .config .config.orig +cat .config.orig \ + | grep 'XEN' \ + | grep '=m' \ + | sed 's/=m/=y/g' \ + >> .config +make ARCH=x86 olddefconfig +make ARCH=x86 modules_prepare + +# Build Linux kernel module for Xen Argo +cd "${BUILDDIR}" +git clone \ + --depth=1 --branch=master \ + https://github.com/OpenXT/linux-xen-argo.git +git -C "${BUILDDIR}/linux-xen-argo" switch --detach "${ARGO_SHA}" +make -C "linux-${LINUX_VERSION}" M="${BUILDDIR}/linux-xen-argo/argo-linux" \ + CFLAGS_MODULE="-Wno-error" KBUILD_MODPOST_WARN=1 +cp "linux-xen-argo/argo-linux/xen-argo.ko" "${COPYDIR}/xen-argo.ko" + +# Build Linux libargo shared library, applying fixes to build in Alpine Linux +cd "${BUILDDIR}/linux-xen-argo/libargo" +sed -i "s|AM_INIT_AUTOMAKE|AC_CONFIG_AUX_DIR(.)\nAM_INIT_AUTOMAKE|" configure.ac +sed -i "s/__SOCKADDR_COMMON (sxenargo_)/sa_family_t sxenargo_family/" src/libargo.h +sed -i "s/__SOCKADDR_COMMON_SIZE/(sizeof (unsigned short int))/" src/libargo.h +autoreconf --install +./configure --prefix="${COPYDIR}" CPPFLAGS="-I${PWD}/../argo-linux/include" +make +make install + +# Build Linux user program, modifying for xilinx argo test +cd "${BUILDDIR}" +wget "https://raw.githubusercontent.com/OpenXT/xenclient-oe/${ARGOEXEC_SHA}/\ +recipes-openxt/argo-exec/argo-exec/argo-exec.c" +sed -i "s|#include ||" argo-exec.c +sed -i "s|ret = shuffle(s, fds\[0\], fds\[1\]);|ret = shuffle(s, 0, 1);|" \ + argo-exec.c +gcc -I"${BUILDDIR}/linux-xen-argo/libargo/src" \ + -I"${BUILDDIR}/linux-xen-argo/argo-linux/include" \ + -L"${COPYDIR}/lib/" \ + -o argo-exec argo-exec.c -largo +cp argo-exec "${COPYDIR}" diff --git a/scripts/x86_64-kernel-linux.sh b/scripts/x86_64-kernel-linux.sh new file mode 100755 index 0000000..2a816f0 --- /dev/null +++ b/scripts/x86_64-kernel-linux.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +if test -z "${LINUX_VERSION}" +then + >&2 echo "LINUX_VERSION must be set"; exit 1 +fi + +set -ex -o pipefail + +WORKDIR="${PWD}" +COPYDIR="${WORKDIR}/binaries/" + +# Build Linux +curl -fsSLO \ + https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-"${LINUX_VERSION}".tar.xz +tar xJf linux-"${LINUX_VERSION}".tar.xz +cd linux-"${LINUX_VERSION}" +make ARCH=x86 defconfig +make ARCH=x86 xen.config +./scripts/config --enable BRIDGE +./scripts/config --enable IGC +./scripts/config --enable TUN +cp .config .config.orig +cat .config.orig \ + | grep 'XEN' \ + | grep '=m' \ + | sed 's/=m/=y/g' \ + >> .config +make ARCH=x86 olddefconfig +make -s -j "$(nproc)" ARCH=x86 +cp arch/x86/boot/bzImage "${COPYDIR}" diff --git a/scripts/x86_64-rootfs-alpine.sh b/scripts/x86_64-rootfs-alpine.sh new file mode 100755 index 0000000..28d8e30 --- /dev/null +++ b/scripts/x86_64-rootfs-alpine.sh @@ -0,0 +1,58 @@ +WORKDIR="${PWD}" + +apk update + +# xen runtime deps +apk add musl +apk add libgcc +apk add openrc +apk add busybox +apk add sudo +apk add dbus +apk add bash +apk add python3 +apk add zlib +apk add ncurses +apk add yajl +apk add libaio +apk add xz +apk add util-linux +apk add argp-standalone +apk add libfdt +apk add glib +apk add pixman +apk add curl +apk add udev +apk add pciutils +apk add libelf + +# Xen +cd / +# Minimal ramdisk environment in case of cpio output +rc-update add udev +rc-update add udev-trigger +rc-update add udev-settle +rc-update add loopback sysinit +rc-update add bootmisc boot +rc-update add devfs sysinit +rc-update add dmesg sysinit +rc-update add hostname boot +rc-update add hwclock boot +rc-update add hwdrivers sysinit +rc-update add modules boot +rc-update add killprocs shutdown +rc-update add mount-ro shutdown +rc-update add savecache shutdown +rc-update add local default +cp -a /sbin/init /init +echo "ttyS0" >> /etc/securetty +echo "hvc0" >> /etc/securetty +echo "ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100" >> /etc/inittab +echo "hvc0::respawn:/sbin/getty -L hvc0 115200 vt100" >> /etc/inittab +echo > /etc/modules +passwd -d "root" root + +# Create rootfs +cd / +tar cvzf "${WORKDIR}/binaries/initrd.tar.gz" \ + bin dev etc home init lib mnt opt root sbin usr var