From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D660E21A0480E for ; Mon, 10 Apr 2017 00:49:21 -0700 (PDT) Received: by mail-wr0-x231.google.com with SMTP id o21so114403419wrb.2 for ; Mon, 10 Apr 2017 00:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3vR9rc3x8MjmopFTxo++2uUzxjKtJgTXIGKiGkXMpRI=; b=p5MSlo5DEXw8JjVItyQ1pCNwqwoUNTxdzQq1aYkKuevpNue1xQ84W3ZuPkgUKmbGNA 88fIQte9jfMPpaVxe734dqirPADaIczGcdFs2Jmcl5PT5+jJnjk9nXB3AUFpjm1JD4Ad ONH7rj3eeVg+jtnZ0iyIRFRvRFdyfc2fWQgXQWUcFy1zNWSd3Z11NnzwdUxA5esBvmrv 1+nsOhJJlvUNuZKc5TZosH74KLZE/vyxScfLu64JaZSsTyitGFKt7wXuamJSKUdy+PIf vsVTBagwNOyfhwbMpj1sYhFceCAYacR/lYdb+e2MnMgnRaLdpPi007sc9mDy0dBiiNRv MKkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3vR9rc3x8MjmopFTxo++2uUzxjKtJgTXIGKiGkXMpRI=; b=txMxcW4ssC0pxrDNbvRalGooteEGwdKPlWGL2eDl/Knnn0zamheYUOxdSqPr6bmUmQ XeXqAA8vta/+IFDnpPkilIcqWWGy58Zp1H1gsE5Y5fBa4Y2oJUUpIfvTy6uaHoh/0BrR m1M1h6YLLEhmDAyz3eYfBE6PRZlTZEGSMY185k4Tt/7+NuFcqJ6AUkvpY5beGquYjk6E 4DAD/WZ9Ut1vK4SvLl/uWike/wViEDz2oofBM0SvcH2Flf7bhAddlWNU3D/kcT0ldE5q OT5YGnuvLKU8TUSZKZdeiFh5pKgP/0/5gI3/hALyjp5/pzUS3KRyXrBDBdm3s3OgZz5c sQmw== X-Gm-Message-State: AN3rC/4QwziGIn5oRKRthbL4QC25WZD+Tv+H9uU/9+jMP2wXPD8NAcza4T+Z4bwbKITx2mE0ABwb/FztNlbKmA== X-Received: by 10.223.143.1 with SMTP id p1mr14898091wrb.120.1491810559831; Mon, 10 Apr 2017 00:49:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.145.134 with HTTP; Mon, 10 Apr 2017 00:48:59 -0700 (PDT) From: Stefano Cristalli Date: Mon, 10 Apr 2017 09:48:59 +0200 Message-ID: To: edk2-devel@lists.01.org Subject: Running pieces of PEI from binary UEFI images X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2017 07:49:22 -0000 Content-Type: text/plain; charset=UTF-8 Hello everyone, I'm interested in experimenting with the PEI phase using EmulatorPkg, OVMF and other EDKII parts that could be useful. In particular, I'm interested in the possibility of integrating parts of an existing pre-built binary UEFI image with such environments. If the image was developed based on EDKII, would I expect things to work? I'm not looking for complete emulation, I just think it would be interesting to be able to single-step code inside PEIMs or even the PeiCore from random images, leveraging the already existing EDKII infrastructures (rather than switching to other debugging/emulation projects). I thought that the task might be feasible, since the layout of the memory at the beginning of PEI and even the arguments passed to the PeiCore are standardized... I should at least be able to begin execution. What do you think? Am I missing something? Additionally, I would ask for technical help, as it's not clear to me how exactly I would be able to load such modules. I saw that there is the possibility of loading binaries inside an EDKII image build (cfr. INF_Spec_1_25 section 2.7), but I don't understand how would I do this for PEI binaries and if I could expect things to work (as in with only the pointer to the image, without any additional information specified). I'd really appreciate if someone could give me some explanations to clear my ideas about this. Some pointers to documentation would be just fine, for it's quite complicated to figure out completely as an EDKII beginner. "Dude, it's completely unfeasible" is also fine and helpful as a response, if that's the case for some reason. Thanks in advance. Best regards. Stefano Cristalli