From nobody Sun Feb 19 03:10:43 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PK9Y268JDz3sKl2; Sun, 19 Feb 2023 03:10:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PK9Y23735z4J4n; Sun, 19 Feb 2023 03:10:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676776246; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BqwUvXOkyDjO85p7mcv8m12kUe2Dk9ZAYx5xLeBpGhw=; b=r6zTrSLmfS4GPuoMZkkZ6RRathET2LQ24VdmtPJCvCri0MnHxNQfqst4EkwFZZBTNRgt0i 8+DrA67TO1zqmx0x+7QeERuflSdRoqUdiCWs5PmoVacL6OBDK4Q00ILHUWNBnHJJO1Tq8D 4wr2Gl1SGsDB1PYkuSvoaHc5tXUn/2Bp7Cb6kaESJctFpjap7CyEX56fM0vKsPmuo3wxEC 9q5/ui6RRRAf27z+kdTLL3IJ2ymzKbN3SK0GhUgw8/bd0EtSinVsjLe0DWNTuW7wAe41rd bRxhpv/5qzdq/7sBpkAMVhuMqW856gz9RHdKn6PM0QHCfhKIlZ5DCNbMdAJT3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676776246; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BqwUvXOkyDjO85p7mcv8m12kUe2Dk9ZAYx5xLeBpGhw=; b=aj+yJSlJ48agI+cz10CL5+mRbYnOUqytDCPbLhGpJfvocJGMDyI7OafBVrbJhfe1CTwpK/ RwZblHAp3pBGWz3zB+W7QO+//aO4VP8oNgDDMhBspPCrYe+XTKtjHGBLWctwaDI595adw9 BmBliciTntQx6kz1WZ4B3gmp/wdW5jrEuCeGXI5tb1sGkbe0NOvoxslLAkHCR6j9zYBy7+ 5x4qMtq9ly6Baivyntd+/TgTzXXQiCOIgpGnFiMevrUe4bHR4pkS96GkMNLPufWO+FM/oz EGIFB+Q6hRZCGMh6RNkOyGFxWthwHZ9YiVuKNm+z+0cvIr3dCToxzy5LFW2mGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676776246; a=rsa-sha256; cv=none; b=u6cdJAOIkL/kdm7ckhhNKoFMQ+bC56S00lESGSgDsFVA90xtSHhh9T4qO07NzBpILN/FNx CMR4KQgI3avFc0L0AfnBNB10CCYLiopzv1p7COkmz2tpfJ/yyUiOPMavKRyrb8DZaoJtHt d4WB2eShTsX/tHqoViYIWriW/u4acT2Kv4TtMAAqIOvAOMDuQJC+qd+8ChTu/foWeTxGuz hOdgr7Q9no3R/vb0Gh+h3RSQSSyb6Y1aRwcvIdg8swTyBL7t7qkQqGEeL+it2LFLWVAQgX VY/Ehfv9CBQoisalY8YVO6A81T5CZWMk9UfxpK2iTFhUKAzcLtCgtzEnx6wj4Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PK9Xz70KgzmSn; Sun, 19 Feb 2023 03:10:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31J3Ah41080915; Sun, 19 Feb 2023 03:10:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31J3AhBR080914; Sun, 19 Feb 2023 03:10:43 GMT (envelope-from git) Date: Sun, 19 Feb 2023 03:10:43 GMT Message-Id: <202302190310.31J3AhBR080914@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: e600bcfb871c - main - stand: Better documentation for full-test.sh List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e600bcfb871ccd70262a0bf0695e929331cae83d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e600bcfb871ccd70262a0bf0695e929331cae83d commit e600bcfb871ccd70262a0bf0695e929331cae83d Author: Warner Losh AuthorDate: 2023-02-19 02:52:01 +0000 Commit: Warner Losh CommitDate: 2023-02-19 02:53:19 +0000 stand: Better documentation for full-test.sh Update now that things have been pushed into the tree. Sponsored by: Netflix --- tools/boot/full-test.readme | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tools/boot/full-test.readme b/tools/boot/full-test.readme index 97e79171aa54..db1f12c7024b 100644 --- a/tools/boot/full-test.readme +++ b/tools/boot/full-test.readme @@ -1,36 +1,33 @@ First, you will need a few things. -(1) My latest branch at https://github.com/bsdimp/freebsd/tree/boot-linuxboot - (so the boot-linuxboot branch of my freebsd tree, it's sync to Friday). - -(2) a small cache of binaries. You'll need to put these into +(1) a small cache of binaries. You'll need to put these into ~/stand-test-root/cache. You can find the tarball at freefall.freebsd.org:~imp/cache.tar. You can just extract this in ~. These are the linux kernels I'm testing with. -(3) The latest qemu-system-aarch64 (I think ports/pkg version of emulators/qemu +(2) The latest qemu-system-aarch64 (I think ports/pkg version of emulators/qemu is recent enough). If not, I know the latest master of qemu project works. -(4) A recent enough universe that the building of stand will work for all the +(3) A recent enough universe that the building of stand will work for all the architectures that I build. You can hack the ARCHES line near the top of tools/boot/full-test.sh if need be, but you'll need at least amd64, arm64 and maybe riscv (I don't have a good way to filter arches in this script yet, since it's at an early state of development. -(5) Build the kernel for at least arm64 and use it as an 'override'. I do this +(4) Build the kernel for at least arm64 and use it as an 'override'. I do this by sudo -E make installkernel DESTDIR=$HOME/stand-test-root/override/arm64-aarch64 TARGET=arm64 after building the kernel. The script is designed to use kernels and binaries from the latest CDs to do the testing, but has a way to override the kernel and since we need to fix arm64... -(6) You'll need to build the images. If you've done 1-5 correctly (and I've not +(5) You'll need to build the images. If you've done 1-5 correctly (and I've not missed anything), then "cd /src; sh tools/boot/full-test.sh" will create all the images and scripts to run qemu. There should be no errors, though warnings about zfs.ko etc missing from powerpc is fine (and ignored by the script already). -(7) There will be a script to recreate this created in +(6) There will be a script to recreate this created in $HOME/stand-test-root/scripts/arm64-aarch64/linuxboot-test.sh. Just run it with 'sh'. And extra args are passed to qemu, so '-s -S' for gdb and '-d trace:gicv3\* -D /tmp/gic.log' for verbose gic tracing (spaces are important).