From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 53FF41A1E26 for ; Thu, 29 Sep 2016 04:41:14 -0700 (PDT) Received: by mail-it0-x232.google.com with SMTP id u134so105258056itb.1 for ; Thu, 29 Sep 2016 04:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=FBaxDQX2BDcMA9svR0kvWtpoxlB72NB/Xe5hLiqu1sA=; b=ThnnoqArIkSnfEBVEVnez8Gu8CoEZqyvODkIwKeCWlw1oKSIvhsu6K1+Ow8KrGJgKQ r4k6L8pF2k9SMVm5UN21KFoqkAcl8BHIPfi/ev3e8FRbyzYKckuOo4YqVl3CJQJe8VNT cREFe+rYBJdbT6VW2Q4YDTgTMYYjAXvxtuBUCn+Kcjoo8q4EIUlu7v18pQseyJJVoxBR B+KEimOzDHEIr9cmJwi2WWGv2z1UJLqX3v6e3C7jySbtLUNPHWezqth72UD02gQXEnl6 Mr8YntkvZeuOxGpXO9w/+VPiRLE0sy7NYXVg3KdC+iKj1QYK9o9U97ghYi6IUr7w47Fa AHaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FBaxDQX2BDcMA9svR0kvWtpoxlB72NB/Xe5hLiqu1sA=; b=DTS2CmfU7j471eAQ7rpwtPFDYqXoJnbwoxVZqadtZqNtlC0V/GHSoC1iz7UMXrvVCs KiPXa6HSL8A4Yx8MJOQuvdxY0jkK9rx2LXFCs9b4LOQETb6/dcbJkBN7iEGIoMmQNkvq L8MeFOVCq9CuwgtaSph/nRi8z8N+VzPadBKVzzDBU3TdMe5015LD5PJhAc5PTrx3n2gH ubh/TuTCpXuvrjvGvkjHIv6GCo0/H5S3LhqQw4dolEl5DcWxL183KynytGJ2jkGqMQMQ CP1cQB/TClw8Q3PKfeLdSVQdljFQAr4BjNup17sX8NvS/dyg2DsDYYbmae8hORF0y+6D fvgA== X-Gm-Message-State: AA6/9RnJdlrvkFyuViUVUlEKouc1tp/Re8m4bA2lM2eSxlGE/RxGjEh8J8um/UqAtYYHqqnGC2sXKTLLDf3MCg== X-Received: by 10.36.94.195 with SMTP id h186mr7923625itb.24.1475149273443; Thu, 29 Sep 2016 04:41:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.196.214 with HTTP; Thu, 29 Sep 2016 04:41:13 -0700 (PDT) From: Saqib Khan Date: Thu, 29 Sep 2016 16:41:13 +0500 Message-ID: To: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: stuck on LoadImage while loading image from usb X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 11:41:14 -0000 Content-Type: text/plain; charset=UTF-8 Hi , I am trying to load an EFI from another EFI, it stuck when LoadImage is called both EFI are located on USB . Here is code snippet " UINTN NumberFileSystemHandles; EFI_HANDLE *FileSystemHandles; UINTN Index; EFI_BLOCK_IO* BlkIo; EFI_DEVICE_PATH_PROTOCOL *FilePath; EFI_HANDLE NewHandle; UINTN ExitDataSizePtr; EFI_BOOT_LOGO_PROTOCOL *BootLogo; EFI_STATUS Status; gBS->LocateHandleBuffer(ByProtocol, &gEfiBlockIoProtocolGuid, NULL, &NumberFileSystemHandles, &FileSystemHandles); for(Index = 0; Index HandleProtocol(FileSystemHandles[Index], &gEfiBlockIoProtocolGuid, (VOID**) &BlkIo); Print(L"after HandleProtocol %x - %r\n",FileSystemHandles[Index], Status); if(!EFI_ERROR(Status)) { //check if it is usb if(!BlkIo->Media->RemovableMedia || BlkIo->Media->RemovableMedia) { FilePath = FileDevicePath(FileSystemHandles[Index], L"Hello.efi"); Status = gBS->LoadImage( FALSE, gImageHandle, FilePath, NULL, 0, &NewHandle); if (EFI_ERROR(Status)) { if (NewHandle != NULL) { gBS->UnloadImage(NewHandle); } //return (Status); } } " can any one help me what I am doing wrong here? -- Regards Saqib