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 13F6FAC14FE for ; Thu, 7 Sep 2023 19:03:02 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=p7cey25ThZpaMF+NePE9wyrD5E23bJh94EvESribhaI=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1694113381; v=1; b=V+SFzSdf/yzfcR1620L+fzlVCDdbZ9r7neBzjf8UESWcRNP/glBqNUcIOWGvVzG9AdZgv5xG X8rBuHf8YrWSGJIOalYO+ZBImAtDBl735LHZjfByquPAsy9KNxWcH+qq3ZGGx30h6uP3bFAkNEk WyUJRQ8b5ct8928c+fsy/p1U= X-Received: by 127.0.0.2 with SMTP id FlWsYY7687511xE7OIgYneiw; Thu, 07 Sep 2023 12:03:01 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.21893.1694113380824990644 for ; Thu, 07 Sep 2023 12:03:01 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10826"; a="357761696" X-IronPort-AV: E=Sophos;i="6.02,235,1688454000"; d="scan'208";a="357761696" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2023 12:03:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10826"; a="771386939" X-IronPort-AV: E=Sophos;i="6.02,235,1688454000"; d="scan'208";a="771386939" X-Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 07 Sep 2023 12:02:59 -0700 X-Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 7 Sep 2023 12:02:59 -0700 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 7 Sep 2023 12:02:58 -0700 X-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Thu, 7 Sep 2023 12:02:58 -0700 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Thu, 7 Sep 2023 12:02:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F8E1LXOPqRLKbt4jZcAp1EahrL4Z+LmPBJ6Clf5vwUh7QSeyzQDRPSmRixiBDlk94i935DfSaeoBjWhQQcJKJh8vlrcDOvEmXPkcRQV4AOwgnqJYmYVALZmZ7nRoZy20rt2fbL8e6osvuhbn2oYYk+LzTTcODQGjSC5TLNfMY3+p7bo76TRBRInOoom/FcIaybFcBteyF2S32YISZvJlIUqFtBTX4t9S9HbbeEGLAveHai9S6Z37OrySM+9in+U0mqkSpz57GqAFsWQS5MLHd23fcm1wMBePfAAsku15SsfqWjLzqwKGFiwV3P730zaf3MFyhNaPvBNbeGLV+HOcYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OpSh3SWqFvk2Keqw5jpVtTaZT9ZOiWVPpa2BRJ3sux4=; b=RAYpUwkBqYRdmtABeC2CiurR452KQCk60mN5+AQxNPP6ZPriazV3JCcouA31XgclhMV+/tnM+a50ykxAHPHEpvwslx61eqf1DJYRaqHtolpcxDRZbQFsYxgzYsei2ZgyDMOCEYr/hNKEJPRbSEjOastU2gP9oY+ACf3OA8VESCI/O7rcPN7mjONUk7RL/eZnLn9NHNRLXInKpR4rM5SEzFCMZrMH7ry2zCFgyBCFbe9ZFRXrjkc2bJ+jp/ZCRlchcwUHJDAkh3RkugEq/g9vDGOsZIPvM6R1nHsOiB+zbaKqS/njDS4c0woWoRYJv1YsxpxP/Uf2ItUOFTllIi20sQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from PH8PR11MB6856.namprd11.prod.outlook.com (2603:10b6:510:22b::7) by SA0PR11MB4752.namprd11.prod.outlook.com (2603:10b6:806:99::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.35; Thu, 7 Sep 2023 19:02:56 +0000 X-Received: from PH8PR11MB6856.namprd11.prod.outlook.com ([fe80::b52a:7c70:b4d3:93cf]) by PH8PR11MB6856.namprd11.prod.outlook.com ([fe80::b52a:7c70:b4d3:93cf%5]) with mapi id 15.20.6768.029; Thu, 7 Sep 2023 19:02:56 +0000 From: "Andrei Warkentin" To: Laszlo Ersek , edk2-devel-groups-io CC: Ard Biesheuvel , Gerd Hoffmann , "Yao, Jiewen" , "Justen, Jordan L" , Sunil V L Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg/RiscVVirt/README.md: bring your own OpenSBI Thread-Topic: [PATCH 1/1] OvmfPkg/RiscVVirt/README.md: bring your own OpenSBI Thread-Index: AQHZ4ZvjfYhCjc6ooUm1xVE7B/ZKG7APuGfw Date: Thu, 7 Sep 2023 19:02:55 +0000 Message-ID: References: <20230907145825.87830-1-lersek@redhat.com> In-Reply-To: <20230907145825.87830-1-lersek@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH8PR11MB6856:EE_|SA0PR11MB4752:EE_ x-ms-office365-filtering-correlation-id: ca7279c8-f3ee-4dcb-0f52-08dbafd50b96 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: jJnUNOnDHn4xtofP0oJXlUcjUXvrs2S1TeWv+lxbVr7CuUoWS5oJvGbbYetWJC2Sf5WP/hPBqPSjr1nCAyA2MwDKZuLsmi90/dMApLV++7af9HSNgKOYaGyn0VDTXPp9HItfiRF/xh4b+8LFmuwpgzIlsVL+vhWnzakUm5dVEC0E9Za1Agz9DvyCLOiSEZrPD2pGrPyq/mF+OyRL4R2Ajdz/J2lwtNJWWMGbRRJE5BAO3a13Jpn00ustqv7psATAe7a6Rem3IgyRMhSejr1GlAaHzr48qPILXyVhGNqyLR+m/UV0jyIfZVdNaeIy89QEBlESGoZyFcXGMxO2f62gdyhAUMQyoSCCfq1YnllbHv4FV/rBy47NDljN+X7TayqJaXhE99KED5fpxRLJ9uCuta9xv96iqax1lkpI09N5/DEHLe4Q0//zWzHa89cExQk75CRQ7+m9FFFXfzCOXRYxWQR3STOtsNlV36QYNkwVspiSd9CqFdmy7NguptVZ3OYGH7wu0KLAc49vksnY9wCVNl/rq7ufiathHmQb10uYVu1w6QrdopANQpHqjptbX5x52OYo/WDJeBrYuuXVYnMZkSux5qQqZEHUhHbdmZLyCzuJCy/cC45BlJYZwGSZ6HBDF0W6fn/TG6oOSgYB+ymx6g== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FgyzArXIXXc28xilL5lFe/3rvrVvw3rK4HCFFAXFHf+cz3HUXhNlGgBg4GVY?= =?us-ascii?Q?WS8WoAiDEZZZl0rAFTEGtwTQpPlLmpkYxkoUCaZmFKIW4hqpjoDdVtEKfFUm?= =?us-ascii?Q?cecaHN8Cru7X2wmsm9z/fzN7MP7kMqtDgvZ3q/CyzIN24YuTzYXhcwo5dNv9?= =?us-ascii?Q?H+a1R/nyE8BkWcHC3WsOXd/8WL6cFlQVa/WJSmIqCcE/eTClCZTRdl9GdLj/?= =?us-ascii?Q?0tWutCNAXHVc/8ewP3yXB5SsuxZRfLdR6a9aUiuV7l1Ox7BtSdHG+Gx/WSTg?= =?us-ascii?Q?CwCUgxAsfudcDDqG6eZzJVQoSUYg+ra24ZfbsvP8wbzsflqI5yJFC73OK6/O?= =?us-ascii?Q?xRp3fxfikCWu0m8X9VEYLUJdqgn530QmwjGS7kqq1wizy4U+RcccaYXyhtGa?= =?us-ascii?Q?h5eHCmmq2ZHVjdTRJ6jZCx/UzvARIFHd1LWkWlDJGhdlBQRZDYCSha3xT75M?= =?us-ascii?Q?YsTgF0eWqrH7XVFOa/B6vxh6vXMJUV4ghRpYSK7jEDK/xhmKNy8HpkKhDc8i?= =?us-ascii?Q?G+MMeVMViJI+3bgZSCF+Fx/kZEzUVXzOQm8VRnnAXm1sijwp7xk1B7GX4tiR?= =?us-ascii?Q?bvXhxHaDvhjyzDWPLJIK5F/lkBrx5RxliKPzoNtEg8V663vCBH8CLWla4eqZ?= =?us-ascii?Q?XLl8FcIClln01+6EI5UiRMVRjKP1283kDJzdwiBpctJ9sL5SROkXQN/x5jXs?= =?us-ascii?Q?Hg+V/B8CTqG69eMGUqAflePV/v4+d/J10s8+FnfPIr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1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB6856.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca7279c8-f3ee-4dcb-0f52-08dbafd50b96 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2023 19:02:55.9902 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +tCh+IyaRhKB8VPawE7RaH9FgG7vpM1tQSDY+eMk4S4FdD5Zx1Tyqmqtdi3JeP2AY4V33M5kdwX16076ObslHfVoW37hvkhKaHZMYmQj4W0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4752 X-OriginatorOrg: intel.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,andrei.warkentin@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 5jceg8pxayEevZAHYvFHN8VEx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=V+SFzSdf; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=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 This looks fine to me as far as an edit, but I didn't validate the commands= . Reviewed-by: Andrei Warkentin > -----Original Message----- > From: Laszlo Ersek > Sent: Thursday, September 7, 2023 9:58 AM > To: lersek@redhat.com; edk2-devel-groups-io > Cc: Warkentin, Andrei ; Ard Biesheuvel > ; Gerd Hoffmann ; Yao, > Jiewen ; Justen, Jordan L > ; Sunil V L > Subject: [PATCH 1/1] OvmfPkg/RiscVVirt/README.md: bring your own > OpenSBI >=20 > Explain how users can compose their pre-OS environment purely from > binaries they've built themselves. >=20 > Cc: Andrei Warkentin > Cc: Ard Biesheuvel > Cc: Gerd Hoffmann > Cc: Jiewen Yao > Cc: Jordan Justen > Cc: Sunil V L > Signed-off-by: Laszlo Ersek > --- >=20 > Notes: > rendered version: >=20 > https://github.com/lersek/edk2/tree/bring-your-own- > opensbi/OvmfPkg/RiscVVirt#test-with-your-own-opensbi-binary >=20 > OvmfPkg/RiscVVirt/README.md | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) >=20 > 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=3Dnet0 \ > -device virtio-blk-device,drive=3Dhd0 \ > -drive file=3DopenSUSE-Tumbleweed-RISC-V-E20- > efi.riscv64.raw,format=3Draw,id=3Dhd0 > + > +## 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=3D... > + git clone https://github.com/riscv/opensbi.git $OPENSBI_DIR > + make -C $OPENSBI_DIR \ > + -j $(getconf _NPROCESSORS_ONLN) \ > + CROSS_COMPILE=3Driscv64-linux-gnu- \ > + PLATFORM=3Dgeneric > + > +then specify that binary for QEMU, with the following additional > +command line > +option: > + > + -bios $OPENSBI_DIR/build/platform/generic/firmware/fw_dynamic.bin -=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 (#108413): https://edk2.groups.io/g/devel/message/108413 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-