Forget the last msg.
I did it, now: /* * AutoLoad.c * * Created on: Apr 17, 2015 * Author: jwirlino */ #include <Library/UefiLib.h> #include <Library/UefiApplicationEntryPoint.h> #include <Library/UefiBootServicesTableLib.h> #include <Uefi/UefiSpec.h> #include <Uefi.h> #include<Protocol/DevicePath.h> #include<Protocol/LoadedImage.h> typedef EFI_DEVICE_PATH_PROTOCOL * ( EFIAPI *EFI_CONVERT_FILE_NAME_TO_DEV_PATH)( IN CONST CHAR16 *Path ); EFI_CONVERT_FILE_NAME_TO_DEV_PATH ConvertFileNameToDevPath; EFI_STATUS EFIAPI UefiMain ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ) { EFI_HANDLE LoadedDriverHandle; EFI_STATUS Status; EFI_LOADED_IMAGE_PROTOCOL *LoadedDriverImage; CONST CHAR16 *FileName; FileName = L"AtaPassThruDxe.efi"; EFI_DEVICE_PATH_PROTOCOL *FilePath; LoadedDriverHandle = NULL; LoadedDriverImage = NULL; FilePath = ConvertFileNameToDevPath(FileName); Status = EFI_SUCCESS; Print(L"\nStart \n\n"); Status = gBS->LoadImage( FALSE, ImageHandle, FilePath, NULL, 0, &LoadedDriverHandle ); Print(L"\nString %s\n",FileName); Print(L"\nStatus %r\n",Status); return EFI_SUCCESS; } But, when i type in shell: AutoLoad.efi ( application name ) ... The PC lock. And don't runs anything the AtaPassThruDxe.efi file is in same dir of the AutoLoad.efi ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel