I have encountered a problem that I want my uefi system installed in the hard disk so I want to format the hard disk in GPT format using uefi.However,I cannot read the content of the file using uefi and failed to copy the efi files to complete my install.How to read the content of the file and how to format the hard disk that have uefi field to install the uefi app file in it?As tested,Read function in EFI_FILE_IO_PROTOCOL cannot read the content of file and in uefi all uefi functions have no way to format the hard disk to FAT32 format.
I want an answer using C language with edk or gnu-efi or baremetal.