[edk2] How can I "umount" filesystem from UEFI Shell?

2014-08-22 Thread ASM
Hi folks. After UEFI Shell was run I can see FS0 filesystem. FS0 is alias for PciRoot/Pci/Ata device. I want to remove all MBR and GPT partition from this device (I write zeros to the 0,1,last sectors). What I doing: 1 I get Handle for this device, 2 I call gBS->DisconnectController (DiskHandle

[edk2] Get GPT DiskGuid (PartitionTypeGUID)

2014-02-13 Thread ASM
Hi folks! I am writing bootloader. The bootloader need to found all GPT partition with vendor GUID. I can to get all Handles of DiskIO protocol. I can to get a Path protocol and select only MEDIA_DEVICE_PATH, MEDIA_HARDDRIVE_DP. >From PathDev I can to get all UniquePartitionGUID. But how can get

Re: [edk2] Questions about booting

2013-10-03 Thread ASM
> You just did it. All you need to do is add a device path, protocol to the > handle. I did it, all works! My brain is back from a state of collapse. Andrew, thank you very much! --- Best regards, Leonid Myravjev -- Oc

Re: [edk2] Questions about booting

2013-10-02 Thread ASM
On 1 October 2013 18:47, Andrew Fish wrote: > The EFI Driver Model, EFI_DRIVER_BINDING_PROTOCOL, assumes that an EFI_HANDLE > exists that you can connect to. So the Handle that represents the 1st device > path node is usually added by a DXE driver. So on most platform this is > usually the PCI

[edk2] Questions about booting

2013-10-01 Thread ASM
Hi folks! I apologize for the stupid questions, but I really can not understand how it works. Please help me. I need to make new boot item, and boot from it. Loading do using specific getting image, and startimage with specific preparation. Load using LOAD_FILE PROTOCOL from MyLoad function. For