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 E2A51D8006B for ; Tue, 12 Sep 2023 06:23:29 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=nnuSGLInJn1eZ5UaEkcGKOfLZt696hdjPe2I8PBqqys=; 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=1694499808; v=1; b=wIzhOmZd9Fzs2dYSmaBWXgi+5nHTji6Vp0FBff4rAF06KUFhCGAigV77A4uFjHinYzycKWLN owLk5Gkd7buoEeq06GpMcx5RjEdAOEHUXMrrJLeZlil0q4sOYxedblPw9pokCSroSHjTATjC7TU IPD3/L6UiviR+CcfXCL7qg8I= X-Received: by 127.0.0.2 with SMTP id vCW0YY7687511xcIj0EikpXJ; Mon, 11 Sep 2023 23:23:28 -0700 X-Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mx.groups.io with SMTP id smtpd.web10.19152.1694499807514283035 for ; Mon, 11 Sep 2023 23:23:27 -0700 X-Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1c1e128135aso42846875ad.3 for ; Mon, 11 Sep 2023 23:23:27 -0700 (PDT) X-Gm-Message-State: wV5Wih7X8zfM23QGNJilu9rrx7686176AA= X-Google-Smtp-Source: AGHT+IFl+h9TgWzP41XPG7HfQ3lkdNbinpWl99/cTM2k/J7h7TXkIFjB4+3VHxVCRyMy9TMiOEzzHA== X-Received: by 2002:a17:90b:3695:b0:267:f329:947d with SMTP id mj21-20020a17090b369500b00267f329947dmr8804108pjb.33.1694499806741; Mon, 11 Sep 2023 23:23:26 -0700 (PDT) X-Received: from sunil-laptop ([106.51.189.46]) by smtp.gmail.com with ESMTPSA id 13-20020a17090a034d00b00273fbc1fd80sm4611136pjf.52.2023.09.11.23.23.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 23:23:26 -0700 (PDT) Date: Tue, 12 Sep 2023 11:53:20 +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=wIzhOmZd; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none 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 > --- > Merged as #4821 > 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 > + > +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 (#108514): https://edk2.groups.io/g/devel/message/108514 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] -=-=-=-=-=-=-=-=-=-=-=-