Re: [edk2] Newbie need help developing UEFI application

Subject: Re: [edk2] Newbie need help developing UEFI application

From: "Brian J. Johnson" <>


Date: 2012-08-16 17:02:16

On 08/15/2012 06:57 PM, Melwyn DSouza wrote:
> I am developing an EDK2 Module Application...
> I am currently building X64 Duet Application ... copying into a USB
> drive the app..
> then connecting the USB drive to the EDK2 System..
> doing
> map -r
> then running the application...
> Is there a faster way of developing...
> Like can i connect by dev machine to the UEFI System in some way maybe
> network and some how mount folder from my windows system
> onto the UEFI shell and run something like that than the cumbersome..
> using USB drive
> If i could mount the Windows folder from a separate system in the same
> network onto the UEFI shell in a separate system and somehow run it ...
> It will be quite easier...
> Appreciate any help

It's often easier to do initial testing with a virtual machine rather 
than real hardware, since most VMMs have flexible methods for moving 
data between the guest and the host.  For example, see the info. on 
building OVMF, and on qemu's virtual FAT32 support:

Or if you need to run your app. on non-emulated hardware, some modern 
UEFI systems come with ISCSI support for accessing disk devices over a 
network.  That may be helpful.

Or you could load your app using TFTP, as if you were doing a network 
boot.  Just set up your PXE/TFTP server as you would for netbooting an 
OS (I don't have an example handy, but it shouldn't be hard to find 
online) and put your app in place of the usual boot loader (eg. grub or 
elilo or ebl.)  Then reboot your target machine, enter the boot menu, 
and tell it to boot from the network device.

Hope that helps.



   "Not to find even more ways of saving time, but to look for ways to
    spend it"
        -- The secret to "celebrating the sidelines of life" - Adair Lara

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
edk2-devel mailing list