Re: [edk2] Boot to ISO image in volatile memory

Subject: Re: [edk2] Boot to ISO image in volatile memory

From: Thomas Rognon <tcrognon@gmail.com>

To: edk2-devel@lists.sourceforge.net

Date: 2013-04-05 00:08:00

Oh ok, that's good news regarding El Torito. I'll start wrapping my head around the code you mentioned. The ISOs I will be booting are OS installers. Specifically, I'm trying to boot a legit Windows 7 installer from memory right now.


On Thu, Apr 4, 2013 at 3:41 PM, Tim Lewis <tim.lewis@insyde.com> wrote:

The partition driver already exists (see MdeModulePkg/Universal/Disk/PartitionDxe). This already recognizes El Torito format, so, as long as the partition you boot from is FAT32 you should have no trouble (see the FatBinPkg).

If you are trying to boot an OS, then you have to figure out how to convince how to convince that OS to continue to use that driver once it reaches the hand-off point in boot, because it then requires a native OS driver to continue to access your ISO.

Tim

From: Thomas Rognon [mailto:tcrognon@gmail.com]
Sent: Thursday, April 04, 2013 1:31 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] Boot to ISO image in volatile memory

Thanks! That gives me a great start. I'm new to a lot of this stuff, though, so the steps you outlined will be tough for me without guidance. Is there any UEFI optical drive code floating around the internet somewhere? I looked but couldn't find any. I'm essential doing the same thing as booting to a CD/DVD, except its all in memory.

Thomas Rognon

On Thu, Apr 4, 2013 at 2:27 PM, Tim Lewis <tim.lewis@insyde.com> wrote:

Produce an instance of BLOCK_IO protocol which returns pieces of the in-memory image. Then perform a ConnectController() on that handle, which should cause a DISK_IO and SIMPLE_FILE_SYSTEM to be mounted automatically.

Then, you use the file system to load the boot loader (LoadImage()), signal the ready-to-boot event, set up the UEFI watchdog timer, and then start the boot loader (StartImage()). There may be a few more standard boot items I may be forgetting, but thats about it.

Tim

From: Thomas Rognon [mailto:tcrognon@gmail.com]
Sent: Thursday, April 04, 2013 12:21 PM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Boot to ISO image in volatile memory

Let's say I'm running a UEFI_APPLICATION called IsoBootTest.efi and I have an ISO image in volatile memory and I have the start address and size of the ISO image. Can I boot the ISO image? If so, can someone give me a hint on how I would do it? (If it makes any difference, I'm using UDK2010.)

Thomas Rognon


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel