From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id C4EEDAC08F0 for ; Fri, 8 Sep 2023 06:13:26 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0nciGD97OVxUGBo4wlZRST2s/ArdicTAzNVklZ1rIIc=; c=relaxed/simple; d=groups.io; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition; s=20140610; t=1694153605; v=1; b=N3zZ473c2bcc//BgQepAXHNxAKjFGkaQ3NMVriORcFuLQ2BWOGK4WgIYTWzcJKJBsFOsQybN 2mFPkh60k7EtyNc+OtWKLQOsOyUyWOCZ88gMcaWyqDECr/gQlwEc7y8PUCRF/7xcHbqh4dqydzY s1ZTdDYzj3Q0Ao0TRW3Yk1jc= X-Received: by 127.0.0.2 with SMTP id lH0VYY7687511xNPCUhCUaMu; Thu, 07 Sep 2023 23:13:25 -0700 X-Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mx.groups.io with SMTP id smtpd.web11.33773.1694153604713249788 for ; Thu, 07 Sep 2023 23:13:24 -0700 X-Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-26f9521de4cso1292090a91.0 for ; Thu, 07 Sep 2023 23:13:24 -0700 (PDT) X-Gm-Message-State: 1lbarJVxGmPNVI7pcgM3DWaBx7686176AA= X-Google-Smtp-Source: AGHT+IH12LLzuBvHSYHxkZKIFwdxNCB4j8fb0QQlygKAjSVkJPBsZAFeA7JC3lZ76vI5obiNo/kuXw== X-Received: by 2002:a17:90b:28f:b0:26b:7d8e:edf9 with SMTP id az15-20020a17090b028f00b0026b7d8eedf9mr1413388pjb.49.1694153604115; Thu, 07 Sep 2023 23:13:24 -0700 (PDT) X-Received: from sunil-laptop ([106.51.189.46]) by smtp.gmail.com with ESMTPSA id jk6-20020a170903330600b001ab39cd875csm749262plb.133.2023.09.07.23.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 23:13:23 -0700 (PDT) Date: Fri, 8 Sep 2023 11:43:17 +0530 From: "Sunil V L" To: Laszlo Ersek Cc: edk2-devel-groups-io , Andrei Warkentin , Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Jordan Justen Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg/RiscVVirt/README.md: bring your own OpenSBI Message-ID: References: <20230907145825.87830-1-lersek@redhat.com> MIME-Version: 1.0 In-Reply-To: <20230907145825.87830-1-lersek@redhat.com> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sunilvl@ventanamicro.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=N3zZ473c; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Hi Laszlo, On Thu, Sep 07, 2023 at 04:58:25PM +0200, Laszlo Ersek wrote: > Explain how users can compose their pre-OS environment purely from > binaries they've built themselves. > > Cc: Andrei Warkentin > Cc: Ard Biesheuvel > Cc: Gerd Hoffmann > Cc: Jiewen Yao > Cc: Jordan Justen > Cc: Sunil V L > Signed-off-by: Laszlo Ersek > --- > > Notes: > rendered version: > > https://github.com/lersek/edk2/tree/bring-your-own-opensbi/OvmfPkg/RiscVVirt#test-with-your-own-opensbi-binary > > OvmfPkg/RiscVVirt/README.md | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/OvmfPkg/RiscVVirt/README.md b/OvmfPkg/RiscVVirt/README.md > index 8c3ac37b802a..dbb40bbe89b0 100644 > --- a/OvmfPkg/RiscVVirt/README.md > +++ b/OvmfPkg/RiscVVirt/README.md > @@ -69,3 +69,20 @@ Below example shows how to boot openSUSE Tumbleweed E20. > -device virtio-net-pci,netdev=net0 \ > -device virtio-blk-device,drive=hd0 \ > -drive file=openSUSE-Tumbleweed-RISC-V-E20-efi.riscv64.raw,format=raw,id=hd0 > + > +## Test with your own OpenSBI binary > +Using the above QEMU command line, **RISCV_VIRT_CODE.fd** is launched by the > +OpenSBI binary that is bundled with QEMU. You can build your own OpenSBI binary > +as well: > + > + OPENSBI_DIR=... > + git clone https://github.com/riscv/opensbi.git $OPENSBI_DIR > + make -C $OPENSBI_DIR \ > + -j $(getconf _NPROCESSORS_ONLN) \ > + CROSS_COMPILE=riscv64-linux-gnu- \ > + PLATFORM=generic > + Do we need to duplicate these OpenSBI build instructions in EDK2? IMO, we should just document how to use -bios to use custom OpenSBI image. The build instructions for other software repos can change at any time. Thanks, Sunil > +then specify that binary for QEMU, with the following additional command line > +option: > + > + -bios $OPENSBI_DIR/build/platform/generic/firmware/fw_dynamic.bin -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108439): https://edk2.groups.io/g/devel/message/108439 Mute This Topic: https://groups.io/mt/101216052/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-