From nobody Sat Feb 7 10:16:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+106594+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+106594+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1688371731; cv=none; d=zohomail.com; s=zohoarc; b=OPsYYNSrzb0La4RFetEH8e2lzsqzmoh2zlVJT9k65ZEl3KNEbd0mcVFPOfYzMhGXc+lF/2XSw9V4D2f691gtsZYoYfwSsvkTVYRnpNgsU8QuxyJcRsgsjaN9p4wP8qoU+MtnvAO5eklh2XHVd9zf1zIkNfD+8/meejI69m4GN6A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688371731; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=gPPQPiVXsllyy7eGZwgiv4RxegFg9MmxK4uDpkBjeD4=; b=ZIYcHAolpLmiuL1RPNswlrTPQmR/HIgfJWln1UR8tG+8LsqBiRY/O/QJ+zTrZ+k7r3MwRpQaUVGtOjdNEa1MBZFcxydPXfod2i+0GXhAc73RyxvkCnBc7ifjeBPxhbXK+fNTsAsSaefuJUk0oSylg0168iOqL/ZGvit/Eopz420= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+106594+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1688371731589307.5687181885703; Mon, 3 Jul 2023 01:08:51 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id gR2mYY1788612xuRylGiaM0a; Mon, 03 Jul 2023 01:08:51 -0700 X-Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com [209.85.161.50]) by mx.groups.io with SMTP id smtpd.web11.22575.1688371730650664371 for ; Mon, 03 Jul 2023 01:08:50 -0700 X-Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-563439ea4a2so2685753eaf.0 for ; Mon, 03 Jul 2023 01:08:50 -0700 (PDT) X-Gm-Message-State: AxTLAWzrIOseUvtHEHm2ldMEx1787277AA= X-Google-Smtp-Source: ACHHUZ7MAlu9NVhF6Ac5a8DRGWLHEbT4JdDCx9VD5RWMdcmZ7sctma/C8XybcqkXO+xou76XjAURQA== X-Received: by 2002:a05:6808:df2:b0:398:9ee4:1dac with SMTP id g50-20020a0568080df200b003989ee41dacmr8273337oic.32.1688371729842; Mon, 03 Jul 2023 01:08:49 -0700 (PDT) X-Received: from sunil-laptop.. ([106.51.184.72]) by smtp.gmail.com with ESMTPSA id s18-20020a17090a881200b0024e05b7ba8bsm14863253pjn.25.2023.07.03.01.08.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 01:08:49 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Sunil V L , Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann , Andrei Warkentin , Heinrich Schuchardt Subject: [edk2-devel] [PATCH 4/4] OvmfPkg/RiscVVirt: Update README for CLANGDWARF support Date: Mon, 3 Jul 2023 13:38:31 +0530 Message-Id: <20230703080831.51075-5-sunilvl@ventanamicro.com> In-Reply-To: <20230703080831.51075-1-sunilvl@ventanamicro.com> References: <20230703080831.51075-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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 Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1688371731; bh=JSD9ScmfV7Wm5r0a8tIaar/zQdf3AuYGw4GFOTHxUcQ=; h=Cc:Date:From:Reply-To:Subject:To; b=w/6QNDqPYM8G1bH7/LMve+ksKdiobhnSnhrMEFek45H+7oY3X8NeWASa6HtE40c7sy5 y700MHwxhsVhyezrniHv+7Aex691QKP0CiRVhiYlbhHsYjDxhuHHrtyQ2etoTmEdSRxqJ i9HAm0h+UZbHQL8YvNQ/0f0bXDlLumwZp+E= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1688371733580100011 Content-Type: text/plain; charset="utf-8" Update the README with instruction to build using CLANGDWARF toolchain. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Andrei Warkentin Signed-off-by: Sunil V L Reviewed-by: Heinrich Schuchardt --- OvmfPkg/RiscVVirt/README.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/RiscVVirt/README.md b/OvmfPkg/RiscVVirt/README.md index 950694419e8b..8c3ac37b802a 100644 --- a/OvmfPkg/RiscVVirt/README.md +++ b/OvmfPkg/RiscVVirt/README.md @@ -12,24 +12,46 @@ The minimum QEMU version required is [7efd65423a](https://github.com/qemu/qemu/commit/7efd65423ab22e6f5890ca08a= e40c84d6660242f) which supports separate pflash devices for EDK2 code and variable storage. =20 +## Get edk2 sources + + git clone --recurse-submodule git@github.com:tianocore/edk2.git + ## Build + +### Using GCC toolchain +**Prerequisite**: RISC-V GNU compiler toolchain should be installed. + export WORKSPACE=3D`pwd` export GCC5_RISCV64_PREFIX=3Driscv64-linux-gnu- export PACKAGES_PATH=3D$WORKSPACE/edk2 export EDK_TOOLS_PATH=3D$WORKSPACE/edk2/BaseTools - source edk2/edksetup.sh + source edk2/edksetup.sh --reconfig make -C edk2/BaseTools source edk2/edksetup.sh BaseTools build -a RISCV64 --buildtarget RELEASE -p OvmfPkg/RiscVVirt/RiscVVirtQ= emu.dsc -t GCC5 =20 +### Using CLANGDWARF toolchain (clang + lld) +**Prerequisite**: LLVM toolchain with clang and lld should be installed. + + export WORKSPACE=3D`pwd` + export CLANGDWARF_BIN=3D/usr/bin/ + export PACKAGES_PATH=3D$WORKSPACE/edk2 + export EDK_TOOLS_PATH=3D$WORKSPACE/edk2/BaseTools + source edk2/edksetup.sh --reconfig + make -C edk2/BaseTools + source edk2/edksetup.sh BaseTools + build -a RISCV64 --buildtarget RELEASE -p OvmfPkg/RiscVVirt/RiscVVirtQ= emu.dsc -t CLANGDWARF + +After a successful build, two files namely **RISCV_VIRT_CODE.fd** and **RI= SCV_VIRT_VARS.fd** are created. + ## Test Below example shows how to boot openSUSE Tumbleweed E20. =20 1) RISC-V QEMU pflash devices should be of of size 32MiB. =20 - `truncate -s 32M Build/RiscVVirtQemu/RELEASE_GCC5/FV/RISCV_VIRT_CODE.f= d` + `truncate -s 32M RISCV_VIRT_CODE.fd` =20 - `truncate -s 32M Build/RiscVVirtQemu/RELEASE_GCC5/FV/RISCV_VIRT_VARS.f= d` + `truncate -s 32M RISCV_VIRT_VARS.fd` =20 2) Running QEMU =20 --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#106594): https://edk2.groups.io/g/devel/message/106594 Mute This Topic: https://groups.io/mt/99923014/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-