From patchwork Fri Jun 26 01:26:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1317561 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=slZGF7Oe; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=u/EKdUhC; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49tYs23vw6z9sQt for ; Fri, 26 Jun 2020 21:03:18 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=/STDZtlOCTNvMLYhPbjAWpm88ABq9z0RrvHKRyWR7Z8=; b=slZGF7OeEcb7kLzuWkEUtZK47Z eR+3tJa7Ikf7rcyBUWmFTkQ/IRM/rYTZwFUL9sxBtwYXsqmAI+2JiPBb43D8ZqbGFTz3WTKtj8/KT uS5ataGH0ZtCshDLbn9rjfIuGPvSI2qT+nx6fqg4fXZza/XX9o5tRoRZz5upigULp5JTKEFr4nHOW pXtFDHA76t8rL0EsgxZRVepF1r6kPqTGvRLFkMgTcgRneqRXbn559BG47ClAfbCPrQN43NKiD/ogV Vh4rLsua9EHhR61Wm1gAdna08dVD0BsF/vdO7X1xeolOgApIUEJuuHGUT9JJI0S0MWRoUEPTL/TH+ y8XnDVkg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jom8X-0001Or-LX; Fri, 26 Jun 2020 11:03:13 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jom8V-0001Nv-0K for opensbi@lists.infradead.org; Fri, 26 Jun 2020 11:03:11 +0000 Received: by mail-oi1-x22a.google.com with SMTP id k4so7718435oik.2 for ; Fri, 26 Jun 2020 04:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=2zcXEGlvQUOGKsrfQPA99bXw69UwvZiYDvwCZfbo5Eo=; b=u/EKdUhCiIa6IVwEtDnEXeVFmnDFcUcCi2zowDtouSKT9EA3oGJFK3dwLZ+oOlhrDg uUeWgkWY9SlPkwXoYwslKnGY152J5DRBKTjd9cCyMJsEjwG1W09Fgh7pf9JY+p+QtfBc 5bDXnF6dw6Q+IMGL5v3U2ryYpkCoROzVWlpL5rguwjJUM6tBEt0UNuvidrMxIP3RevUp v4Oq64/cc3jtXIe8PCxAtjGnifKlRdJLU9GecGRkphnYprzFpjog+gMiihbZ5y0E5LdC O8a7oV1IHSGkyCujRr7MUeFkdpCqqQ4bYRYim4R0WZCJ6lcqv/n8LFWhHwBVH5fpgIn8 P7dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2zcXEGlvQUOGKsrfQPA99bXw69UwvZiYDvwCZfbo5Eo=; b=g8m+YnWjj9+Pbu/e45aalFfOHBxV7Z5b2CwlRpaX1FgfR4x346ho2wu7OT0DCCSN30 9OjgsP52/WMft5nnzCMKDhRYMQy6ooSyiiAVZgalZgW3iVWqEokKZf6PpbYbthGJRTFl OygDfbPNCjMnnZG3BNkrZucByXFf3KEUhmcHPWSZieOVP1K06+jkQEAzYoxSMz2fe3eu RGjAiJraBvbPqanY6zeUTHW0XtaLQ/rB1BBPmsIBTOea7CqB83WwsAsIzb8HCdg2nkIQ +OONQI9NOeflebG7IrQul1Q5sz0sQT7VbaQ/fdnCl8WLrccKeT56NjOIvghhSJanUSBR iH0A== X-Gm-Message-State: AOAM5302Z67iK5Ul65DSywiDW5Oka5hOYk36bsxTRrc5UtJZau69bh+V KrDS+jL3MYwJUXcStroT+G3nswT7 X-Google-Smtp-Source: ABdhPJwCEaNYzWhTC/GnzaVxrLFc0T4N/gbKAhHNIgFBTYx929QCd/66EDFoIRveKFHpEaCC6EZ1CA== X-Received: by 2002:a17:90a:ec13:: with SMTP id l19mr702999pjy.81.1593134777122; Thu, 25 Jun 2020 18:26:17 -0700 (PDT) Received: from localhost.localdomain (unknown-224-80.windriver.com. [147.11.224.80]) by smtp.gmail.com with ESMTPSA id a12sm24490964pfr.44.2020.06.25.18.26.16 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 25 Jun 2020 18:26:16 -0700 (PDT) From: Bin Meng To: Atish Patra , opensbi@lists.infradead.org Subject: [PATCH v2 1/3] docs/platform: Update QEMU parameter for fw_payload Date: Thu, 25 Jun 2020 18:26:02 -0700 Message-Id: <1593134764-16743-1-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.1 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:22a listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [bmeng.cn[at]gmail.com] -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_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bin Meng MIME-Version: 1.0 Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Bin Meng Since QEMU v5.1, if there is no "-bios" option provided, the default OpenSBI firmware will be loaded by QEMU as the BIOS automatically, hence to load fw_payload type image, we should explicitly pass the "-bios" option to QEMU. Signed-off-by: Bin Meng Reviewed-by: Atish Patra --- (no changes since v1) docs/platform/qemu_virt.md | 12 ++++++------ docs/platform/spike.md | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/platform/qemu_virt.md b/docs/platform/qemu_virt.md index 2196e5a..2777148 100644 --- a/docs/platform/qemu_virt.md +++ b/docs/platform/qemu_virt.md @@ -28,7 +28,7 @@ make PLATFORM=generic Run: ``` qemu-system-riscv64 -M virt -m 256M -nographic \ - -kernel build/platform/generic/firmware/fw_payload.bin + -bios build/platform/generic/firmware/fw_payload.bin ``` **U-Boot Payload** @@ -44,7 +44,7 @@ make PLATFORM=generic FW_PAYLOAD_PATH=/u-boot.bin Run: ``` qemu-system-riscv64 -M virt -m 256M -nographic \ - -kernel build/platform/generic/firmware/fw_payload.elf + -bios build/platform/generic/firmware/fw_payload.elf ``` or ``` @@ -66,7 +66,7 @@ make PLATFORM=generic FW_PAYLOAD_PATH=/arch/riscv/boot/Im Run: ``` qemu-system-riscv64 -M virt -m 256M -nographic \ - -kernel build/platform/generic/firmware/fw_payload.elf \ + -bios build/platform/generic/firmware/fw_payload.elf \ -drive file=,format=raw,id=hd0 \ -device virtio-blk-device,drive=hd0 \ -append "root=/dev/vda rw console=ttyS0" @@ -95,7 +95,7 @@ make PLATFORM=generic PLATFORM_RISCV_XLEN=32 Run: ``` qemu-system-riscv32 -M virt -m 256M -nographic \ - -kernel build/platform/generic/firmware/fw_payload.bin + -bios build/platform/generic/firmware/fw_payload.bin ``` **U-Boot Payload** @@ -111,7 +111,7 @@ make PLATFORM=generic PLATFORM_RISCV_XLEN=32 FW_PAYLOAD_PATH=,format=raw,id=hd0 \ -device virtio-blk-device,drive=hd0 \ -append "root=/dev/vda rw console=ttyS0" diff --git a/docs/platform/spike.md b/docs/platform/spike.md index 8d6b422..79e2eb2 100644 --- a/docs/platform/spike.md +++ b/docs/platform/spike.md @@ -59,7 +59,7 @@ make PLATFORM=generic Run: ``` qemu-system-riscv64 -M spike -m 256M -nographic \ - -kernel build/platform/generic/firmware/fw_payload.elf + -bios build/platform/generic/firmware/fw_payload.elf ``` **Linux Kernel Payload** @@ -75,7 +75,7 @@ make PLATFORM=generic FW_PAYLOAD_PATH=/arch/riscv/boot/Im Run: ``` qemu-system-riscv64 -M spike -m 256M -nographic \ - -kernel build/platform/generic/firmware/fw_payload.elf \ + -bios build/platform/generic/firmware/fw_payload.elf \ -initrd \ -append "root=/dev/ram rw console=hvc0 earlycon=sbi" ```