From patchwork Tue Oct 8 09:49:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Hutt X-Patchwork-Id: 1994168 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=mXUn4XPD; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ZCjyTFiu; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XNB972ZLCz1xvB for ; Tue, 8 Oct 2024 20:50:49 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ok5cBSBISJfpFO2l8WtsBltCLzb2AUk7aRR362cijHQ=; b=mXUn4XPDGoxL3W fzBBhOvz92nKv+oxGS2RUT0OxbeQBNP9czg5eTY+O/MLu//tcIlNP0g4ZNs8ZNfzO//walOEoZ9hy J18GmXYKGfwdA05pW93SILOCzQHHey5b/bLS9Wv5bik9TLYdjzTVYs0lU4ZGFD7hISabPNTjQAQRT uH43/J3fXWfZDJezCB3Y06YUgxv2TxP2eDM7efcHu+doc4UKw9m/7aZtivXpLVuPqs3dLyS+/na4+ ywRHztqPVdRPjlq832ZxODIoxly364TZYUwSN11MjlwqjTPcJaLnE4jA2BaurC92noGqWSbaKu3FY 4uUHPlpHMhgzVbH/pCKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sy6rX-00000005NHM-2ppl; Tue, 08 Oct 2024 09:50:39 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sy6qN-00000005N2G-2f9H for opensbi@lists.infradead.org; Tue, 08 Oct 2024 09:49:29 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-42cbface8d6so72764875e9.3 for ; Tue, 08 Oct 2024 02:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728380965; x=1728985765; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/Y3uFdtECXSvUHiO9ixdWNEfH77zEkYK33uPCbwpXho=; b=ZCjyTFiuDdF4wsobMY7OG1gh/fwmCNdvOHI4Loitjl887oI+6eszcbw2E3h8Mob2J2 o2ohFh9iBKDu6Ocx7pdN688X7XDZNcGHamzJWbKLH8t3jjl+ZoMsQCISIvUCFlsveiQV oyCwS67CvfDq04LKHxlkTo2RHjOWvZzZdLewxVuZ34XU2lVJsa70fL+xQFDJLeGOrOP3 3Bnb3/UlztAfmXzmqgFHYgW+KouRzqoQeopoHE2DdRIWUJCKn2MSAzdhn/3HBLiKO928 0Bru0PWhMKMWnPzTOza1veDwu5xVE7tNbxqx6+yM8wzPC5is0dJuWi0zcfO+9X6PfdAm 90rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728380965; x=1728985765; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/Y3uFdtECXSvUHiO9ixdWNEfH77zEkYK33uPCbwpXho=; b=qySCJtiRj6OR/DjHzQOJlp607tTDneZCsha2uJKmx/Xhg9XaY/ti9MNjtj53acnc56 dshBKRmt5MFKDWKWquD6QeKiYEqpJp201ajm0sRv0Z9Q6mZxGUwJ3rvXWFbqSVt/RJpf QuTCFRwlPYVs/U7gJQDIhKs8cFcY8N2F0Pn972DCc1YG52KsEgErI41oVc7grRm9wuPF zJ8UVDXjMvqHFmVVEuSL1CI815CrvpJipZq3NcvMVuVooUZ8+0kMxTQ+3E0SPifm1bYs kfVbRkmpzsp3kZWZjXwOwwzIKGNGZCTjsB8JtE8g1Gr7gNldeWdPI+dYmMGHzshFNA73 CB/A== X-Gm-Message-State: AOJu0Yx0KJ5sTeLuQFqkbaoaLSxDEEGkGsdTHrfwMEB197s96zhLpWPp c+D/HDgnoaKUsTyk6l1s3ArMRUYFWo8Pfo+c3/xL1UcN3pQbX1+xJ53rAA== X-Google-Smtp-Source: AGHT+IH8o/j2NVSXyEXqfT3MfIbrxe1cZjhVwmdxVMxSbJXcwVKV7fdTk+8N9k4KXRcTeFtJiKUgQA== X-Received: by 2002:a05:600c:511f:b0:42c:c8be:4215 with SMTP id 5b1f17b1804b1-42f85a6e7c9mr141940255e9.4.1728380964902; Tue, 08 Oct 2024 02:49:24 -0700 (PDT) Received: from localhost.localdomain (stav-22-b2-v4wan-169880-cust1982.vm26.cable.virginm.net. [94.174.71.191]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d169203f4sm7705772f8f.53.2024.10.08.02.49.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 02:49:24 -0700 (PDT) From: Tim Hutt To: opensbi@lists.infradead.org Subject: [PATCH] docs: add example of building the Linux kernel Date: Tue, 8 Oct 2024 10:49:19 +0100 Message-Id: <20241008094919.2158843-1-tdhutt@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241008_024927_697768_5A3CF17C X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Slightly expand the QEMU docs to explain how to build the flat Linux kernel image. Signed-off-by: Tim Hutt Reviewed-by: Samuel Holland --- docs/platform/qemu_virt.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:336 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [tdhutt(at)gmail.com] X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Hutt Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Slightly expand the QEMU docs to explain how to build the flat Linux kernel image. Signed-off-by: Tim Hutt Reviewed-by: Samuel Holland --- docs/platform/qemu_virt.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/platform/qemu_virt.md b/docs/platform/qemu_virt.md index 0783be4..fd87ee5 100644 --- a/docs/platform/qemu_virt.md +++ b/docs/platform/qemu_virt.md @@ -56,7 +56,14 @@ qemu-system-riscv64 -M virt -m 256M -nographic \ **Linux Kernel Payload** Note: We assume that the Linux kernel is compiled using -*arch/riscv/configs/defconfig*. +*arch/riscv/configs/defconfig*. The kernel must be a flattened image (a file +called `Image`) rather than an ELF (`vmlinux`). + +Example of building a Linux kernel: +``` +make ARCH=riscv CROSS_COMPILE=riscv64-linux- defconfig +make ARCH=riscv CROSS_COMPILE=riscv64-linux- Image +``` Build: ```