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 D70D17803CD for ; Mon, 11 Sep 2023 13:40:46 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=OsuIGIxlmR7d3yB4F98ENvKA9HiS6A/na6Ya9AowRCM=; 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=1694439645; v=1; b=VpxPCAH4rV73tBftoFKP4zqPZPwKp093JW03EZ2rI6LBIvrzlB2zKLGP9k206hafK1EIoLl0 83xas+Ibra563X5LFIQAL8b38Ejn2UMLcuk71lAVA6F511PRTaOy1UK0uJ43kOwxcbtmHYMc38I KhjWucQqK/TVcHe04gQG2vhE= X-Received: by 127.0.0.2 with SMTP id 0DXUYY7687511x5LfXOWq19M; Mon, 11 Sep 2023 06:40:45 -0700 X-Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mx.groups.io with SMTP id smtpd.web10.58628.1694439644748927026 for ; Mon, 11 Sep 2023 06:40:44 -0700 X-Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1c3cbfa40d6so1275115ad.1 for ; Mon, 11 Sep 2023 06:40:44 -0700 (PDT) X-Gm-Message-State: IsTNZuOJZJtcfvcej0Zg8tUqx7686176AA= X-Google-Smtp-Source: AGHT+IE2iD6nQb5luxBqPYVmVxyOQRLGdRNm9NIaztvjeZoiWueiyBH24HwWs9Nnzf1xY4IExRoCQg== X-Received: by 2002:a17:902:8ec2:b0:1c3:90c7:b99d with SMTP id x2-20020a1709028ec200b001c390c7b99dmr7077239plo.41.1694439644134; Mon, 11 Sep 2023 06:40:44 -0700 (PDT) X-Received: from sunil-laptop ([106.51.189.46]) by smtp.gmail.com with ESMTPSA id 11-20020a170902c20b00b001bdc6ca748esm6477542pll.185.2023.09.11.06.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 06:40:43 -0700 (PDT) Date: Mon, 11 Sep 2023 19:10:37 +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=VpxPCAH4; 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 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 > + > +then specify that binary for QEMU, with the following additional command line > +option: > + > + -bios $OPENSBI_DIR/build/platform/generic/firmware/fw_dynamic.bin Reviewed-by: Sunil V L Thanks! Sunil -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108488): https://edk2.groups.io/g/devel/message/108488 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] -=-=-=-=-=-=-=-=-=-=-=-