[edk2] UEFI: Booting kernel image from USB

Subject: [edk2] UEFI: Booting kernel image from USB

From: manish mahajan <mahajan.m1@gmail.com>

To: edk2-devel@lists.sourceforge.net

Date: 2014-06-30 01:46:58


I am trying to boot kernel bundled into super package, which will be stored on usb device. My plan is to open and read super package into memory using EFI_FILE_PROTOCOL. Once I completely read super package into memory, I am parsing the superpackage and finding the start location of my kernel and initramfs.

Should I use AllocatePool or AllocatePages API to allocate memory for kernel/initramfs? or it does not matter? What is the exact difference between AllocatePool and AllocatePages?