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 96CCB7803CE for ; Mon, 11 Sep 2023 05:45:28 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=wXvISOPZDqc6VcySdJ4XoE7pWvIBRQGvNZUBIxm1COM=; 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=1694411127; v=1; b=FEQZr4n6NBzIv3ddHyMDrlsSBY594b0eAmudb/KaCOVujfhKvgNK27i24DQ+N6LOf3fFQXJs yZjsxiswN2lnN4eIm/JOL17MbfkLj/UweiFAB9LhZ2hDxkwYhfhb9X9gtrUJz6yVJz1UEF7t6NY E0XBlnsMRlcmQJOqOAM8kJuU= X-Received: by 127.0.0.2 with SMTP id cAs7YY7687511x22MWNPMiBP; Sun, 10 Sep 2023 22:45:27 -0700 X-Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mx.groups.io with SMTP id smtpd.web10.52235.1694411126667188943 for ; Sun, 10 Sep 2023 22:45:26 -0700 X-Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1c0d5b16aacso31986205ad.1 for ; Sun, 10 Sep 2023 22:45:26 -0700 (PDT) X-Gm-Message-State: eKZdk9t7kLc4BSH1b2Tg3fMzx7686176AA= X-Google-Smtp-Source: AGHT+IFDDNrLKMHGPMUcHgTtboeGCVTfQF+lbPSeX3DPnJ+VfilEZQcrw4Fg6WtSzg9YjDDvhsggaQ== X-Received: by 2002:a17:902:d4d2:b0:1c2:36a:52a5 with SMTP id o18-20020a170902d4d200b001c2036a52a5mr8582907plg.57.1694411126033; Sun, 10 Sep 2023 22:45:26 -0700 (PDT) X-Received: from sunil-laptop ([106.51.189.46]) by smtp.gmail.com with ESMTPSA id b4-20020a170902d30400b001bc5dc0cd75sm5450075plc.180.2023.09.10.22.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Sep 2023 22:45:25 -0700 (PDT) Date: Mon, 11 Sep 2023 11:15:18 +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: 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=FEQZr4n6; 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 Mon, Sep 11, 2023 at 07:32:06AM +0200, Laszlo Ersek wrote: > On 9/8/23 08:13, Sunil V L wrote: > > 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. > > Can we include the opensbi project URL at least? > Hi Laszlo, Yes, I think providing the URL is a good idea. Thanks, Sunil > Laszlo > > > > > 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 (#108477): https://edk2.groups.io/g/devel/message/108477 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] -=-=-=-=-=-=-=-=-=-=-=-