From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web11.4149.1654294017485325342 for ; Fri, 03 Jun 2022 15:06:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Ols42pm5; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0153be94a9=brian.johnson@hpe.com) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 253LMWgZ030810; Fri, 3 Jun 2022 22:06:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=message-id : date : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=/fGsu3O6bjSU6xyirdBJUFHrYcYifN9JOfN3wWFQk/4=; b=Ols42pm5oxXW+u7QEWhbSzuHvuJmP0XPS/dRuVXYLIBnAoLWTpSaGi18a677sLz7c3+J M1HoDffgzSNYpOkFjUsKsdv9DB95093i9+Ff0BSRLN7TR5nTVdbbMzb3J19rNVvG/rwO Nh+NKg99Cfu88r3/gz2Ojhym2PBbpu2xfTh7unMx/MFkXObeJ0rsJ5QfGKrdVm6RAQp5 cE6edfSHqMn2/PceesO/wGJWcWlpofmiKAfcgehlsRg0NcdaobgNoWbFuRszjaYiAgG/ hUzpzPKXuQZ8j+EcCbrnNqNP4YOJ0TY7QJxcnYMpPo7funJW7uiBlaMBiRb6VHio8kog uw== Received: from p1lg14880.it.hpe.com (p1lg14880.it.hpe.com [16.230.97.201]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3gfksxujhv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Jun 2022 22:06:56 +0000 Received: from p1wg14926.americas.hpqcorp.net (unknown [10.119.18.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by p1lg14880.it.hpe.com (Postfix) with ESMTPS id 6321C8005D7; Fri, 3 Jun 2022 22:06:55 +0000 (UTC) Received: from p1wg14923.americas.hpqcorp.net (10.119.18.111) by p1wg14926.americas.hpqcorp.net (10.119.18.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Fri, 3 Jun 2022 10:06:55 -1200 Received: from P1WG14918.americas.hpqcorp.net (16.230.19.121) by p1wg14923.americas.hpqcorp.net (10.119.18.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15 via Frontend Transport; Fri, 3 Jun 2022 10:06:55 -1200 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (192.58.206.38) by edge.it.hpe.com (16.230.19.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Fri, 3 Jun 2022 22:06:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gUeaMAIYQPPKP3lVdiretWhb2Ek4PVAfu/rgKhc6MjXJt8JAum751rf3UXBzejLc+RpFp+41nxZICe9/YIwjEUStdIHXNyRfaxU2cISt28kAKRnQYBv5dUQ35sFTuehTNS8jgtMgLfbgoptXJEfQxHRyPcuXeRSyFTBDSwR4Avwac6TX8D/oyM+MlOk/eg7N4CPcCX9hD8ihhgKH13yS9dSOEhdTK8Rxv1ON/h2l6w2jFkUss7xVYVqjJSQeyyTgzm2lNll/7ZSqDs5MFMTsKdQBG9tstYKyWUznOYziFTTfZRJHkP55tNW3g/934JLjE50lbZ+hOgnfmJS0BMAwYA== 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=58QJZxROdfXZF3N9+LB6P0cd55iIw1USiS1sCyrZBLY=; b=XG2WFcSVf/ge7qTr91tP3Ii38/YbVD4lnAuZ64oJOpTLDR92WFo2d28kITDW8LPAwdE7Avlhu7j/eM0/z1MJPa/OTIBWhkB2jDIVzxu5BETAVMjFmiMbIIW1tMlJZYWOxVn/y1qRHXwUomWz/YBrrJb30v3eKf4j/uL3E979LxP4yJBmqUeeOUKN2tq18K85fWDU/bfHI4yCr0qqawFUGUeI6VlXtijimIC2YcY9+uLEWz7ilYLwKMCKiAFVL/swA8CKQ/eHZY7EEjnP2dkqUhRDgOCvltg5x8yt8Bs3G3NZd08XSiePt/NHSoQ61o7JLjNDn/BNvDBl8wR0Pr0Nog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:303:1c0::21) by MW4PR84MB1443.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:303:1a6::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.15; Fri, 3 Jun 2022 22:06:53 +0000 Received: from MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM ([fe80::a8ef:95c0:f06:8b1c]) by MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM ([fe80::a8ef:95c0:f06:8b1c%7]) with mapi id 15.20.5314.013; Fri, 3 Jun 2022 22:06:53 +0000 Message-ID: <42fc9038-82b7-692d-58e6-0b9d293d7bb3@hpe.com> Date: Fri, 3 Jun 2022 17:06:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [edk2-devel] Running and Testing Modules and Applications To: , References: From: "Brian J. Johnson" Organization: HPE In-Reply-To: X-ClientProxiedBy: DM6PR21CA0025.namprd21.prod.outlook.com (2603:10b6:5:174::35) To MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:303:1c0::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dd2f2b85-47cd-4744-ab25-08da45ad5ddb X-MS-TrafficTypeDiagnostic: MW4PR84MB1443:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RPCiKgX/ugZXC7S0X0q23pPUSo8JPr7TC92tYDoHvyAgRcBAsyjM5G63LRLC1eMdS33Zsv1vVhkEBnOH1xFOUEVkQTkHc7E9ECAYLA4EbH5bHqYQXjltY4WfFS7v71SURsegUeR9IhR0yKVbii5B9pd1kKQYEuxZbVz9UlxMa3mc9c7jjfhFVT5K8Fxukb2PAyN/cW6iMGNln5aiToy7y4NoOBDtYi2cMk/WH9fyv+tTKc4ry4DgbCvXLu8IJ5oenL0HkNu6hC4WnfQWWN65ok4Qn8vAODYXbhg0VH4rBTx6QR85LDJ0P47oLLKhWYp7CDLzD7fiFrTBVtppsXAm99l2aEhSmx/zEAR1yXb/k+wLpedPxD3HwSR5+pFDVbTgXghst/Ep3wYIfQH+uoR1uzKKckjN4ynTY03iVE7ynsnuF8QADEDgPiNAnOhi6ZKsXNzfqzWTQ9YPUcxuqZrDCPqTIL6Uo9VZef4lMIHuLmVvWbKS3jdYiPKTIG8Tw86qua/wkIW75ilpL92o0COc7XJQ2cBr6Jz8/w2dczSrZgL+gOIPadXLwoMzTzvhCWAPWbUOtYqxDM2RIWvtjEwWuOF79Yxg4T55ytr88B1K9W0WBvxmXrmfQP2iye4SWG/oRg+Sw/Eu8dzDsPUQxtPYNuN/yjgU9RkmlzCNdj+QLHVQu6ySgWw19bWxH4D+Q1VpALEWSKZeUwCWpY1lRf7weQvd9IomJw+SCiEIymQm9YYUV83VxWFU6PwMTwFgydKlJ41veHIyEWQhqMXbBbYuCHw5Dn6NFJr0fsWtoQjM2GcCPUVudZYN461rK0UzWcmBF0avL65Xg/K9J8828yTZYEDXOrqSoTFT7ZzOAUPHvqw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230001)(366004)(38100700002)(186003)(2616005)(31696002)(86362001)(66556008)(8676002)(66476007)(66946007)(316002)(36756003)(31686004)(508600001)(5660300002)(6512007)(36916002)(6506007)(53546011)(26005)(2906002)(83380400001)(82960400001)(966005)(6486002)(8936002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UVZZcmxTYWQxd081ZFZCR3NFQktLcmI5cG92WUt3TDc5ODlEZm5KSmxTNVFj?= =?utf-8?B?RWdGQzdld0ZNaHRCbWxQS24rTEFZZ3BxcytxeXdYREN4ZitQQzhLMzVlL1RP?= =?utf-8?B?dEh0VlcrQ1BPSFJZTWxVNkhpKzVIUXpidVphNlZTM0RIR2pPNG4wR1hPaWVp?= =?utf-8?B?TlAvbGo3REEzb2szUmt2STZSNXhmdVd1SnhyVzZUNmpwYnVMYjNLTU8vamtU?= =?utf-8?B?NURrTnc1QVByci9DOGVkV09JdS9yNFpVNXVWVDlTN1c4L1FxK1FPM3QrRkVv?= =?utf-8?B?a05YbzBNMHY5d0tUMndmeGd5RXdjWnhvaXRDaFlSRFFXZWdRbDdLNWgwWmt5?= =?utf-8?B?bFlHTkRKd3dVWFFUeEMrMzdCblM5ZlQ2MVVLc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TUi95TnpJ?= =?utf-8?B?NU9nS2ZDcENvNVV2OEl0K0JtNFIwZFpYNDRxUjZUWHVDdDg5MTJwSHF0V2tl?= =?utf-8?B?eVlIdG44M00rR1Q4Wk5QYzFlSW5SUHRqc3k5T2k3clgzVVYrT2UxbHc5elpS?= =?utf-8?B?blh4T2UyRE1CMzdJcXprSEVreUh3ZDJlb2FTQU96S01LdFJNK0kzZz09?= X-MS-Exchange-CrossTenant-Network-Message-Id: dd2f2b85-47cd-4744-ab25-08da45ad5ddb X-MS-Exchange-CrossTenant-AuthSource: MW5PR84MB1354.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2022 22:06:53.4401 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: F4CEZQvyOLAO+kI3oOVI3WGZKa9Tzs+W9qqUjnCpZPamhQegEF1t+GfuEUpshw9rzObKhUZqLB67agrNEg8MCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR84MB1443 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: c2hIbRUcto6Su7W9Q-EvK7apRrlvRBc8 X-Proofpoint-ORIG-GUID: c2hIbRUcto6Su7W9Q-EvK7apRrlvRBc8 X-Proofpoint-UnRewURL: 4 URL's were un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-03_08,2022-06-03_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 clxscore=1011 mlxlogscore=999 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 phishscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206030087 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Qemu's virtual VFAT (vvfat) disk type is a convenient way to test UEFI applications. It presents a folder on the host as a VFAT file system to the guest. It's not the fastest or the most stable disk type (be careful not to modify files from the host while the guest is running), but it's really handy. Another way to put a file on a UEFI VFAT disk image for qemu is to use mtools (https://www.gnu.org/software/mtools/), a set of user-mode programs which can manipulate FAT disk images. You can write some scripts around them to automate your workflow, similarly to uefi-run. I've done that quite a bit in the past. Good luck, Brian J. Johnson -------- Original Message -------- From: Ayush Singh [mailto:ayushdevel1325@gmail.com] Sent: Friday, June 3, 2022, 11:49 AM To: edk2-devel-groups-io Subject: [edk2-devel] Running and Testing Modules and Applications Hello everyone, I wanted to ask everyone how most modules and applications are run/tested in edk2. I will be working on Adding Rust support for edk2 during GSoC and thus will probably have to do a lot of primitive testing. I did look at the EmulationPkg but didn't really understand how to use it. It simply drops me into gdb, although maybe that's what it is supposed to do? There were also some GUI programs (VisualUefi) that can be used in windows, but since I am in Linux, they aren't much useful. I also found a tutorial to run it in a physical machine (https://tait.tech/2021/04/18/uefi-development-environment/ ), but that seems more for the final testing rather than testing during development. I have also tried using qemu for running applications, and I guess I was somewhat successful by using the script: `https://github.com/Richard-W/uefi-run` to test out uefi applications in qemu. However, it builds a FAT filesystem around the EFI application, so I was wondering if there was a better and simpler way to do it. Ayush Singh