Hi,
Before installing SimpleFileSystem protocol FatPkg Open device. Code fails while opening device.
FatOpenDevice on 836E749A58 Couldnt Open Device on 836E749A58
From file "FatPkg/EnhancedFatDxe/Init.c" , function "FatAllocateVolume"
Status = FatOpenDevice (Volume);
It fails while opening HDD. What can be the probable issue?
Is SATA DXE controller not initialized properly? Or device is faulty (HDD), so it is not getting opened?
Thanks and Regards, Shaveta
-----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Shaveta Leekha Sent: Wednesday, May 18, 2016 2:03 PM To: Tian, Feng feng.tian@intel.com; edk2-devel@lists.01.org; Linaro UEFI Mailman List linaro-uefi@lists.linaro.org; Jan Dąbroś jsd@semihalf.com Subject: Re: [edk2] Filesystem installation issue on SATA HDD
Hi Feng,
I meant the latter. I have formatted HDD for FAT32, as EDKII only recognize that.
But UEFI is not detecting any Filesystem on HDD. (as pasted in the logs)
Regards, Shaveta
-----Original Message----- From: Tian, Feng [mailto:feng.tian@intel.com] Sent: Wednesday, May 18, 2016 1:20 PM To: Shaveta Leekha shaveta.leekha@nxp.com; edk2-devel@lists.01.org; Linaro UEFI Mailman List linaro-uefi@lists.linaro.org; Jan Dąbroś jsd@semihalf.com Cc: Tian, Feng feng.tian@intel.com Subject: RE: Filesystem installation issue on SATA HDD
Do you mean to format the HDD to FAT32 file system? Or you found the BIOS doesn't identify the file system in the HDD correctly?
If you meant the former, you need to use DiskUtilities to format your HDD. You can get it from http://www.intel.com/technology/efi/agree_diskutil.htm
If you meant the latter, it may be because you are using NTFS file format at you HDD and EDKII can't identify it and show a FSx out.
Thanks Feng
-----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Shaveta Leekha Sent: Wednesday, May 18, 2016 3:27 PM To: edk2-devel@lists.01.org; Linaro UEFI Mailman List linaro-uefi@lists.linaro.org; Jan Dąbroś jsd@semihalf.com Subject: [edk2] Filesystem installation issue on SATA HDD
Hi All,
I am facing issue in installing FAT filesystem on my SATA HDD.
My HDD is getting detected in UEFI as block device BLK1 and BLK2(Logs pasted below):
UEFI Interactive Shell v2.1 EDK II UEFI v2.50 (LS2080a RDB board EFI May 18 2016 11:38:35, 0x00000000) Mapping table FS0: Alias(s):F0: MemoryMapped(0xB,0x837EF30000,0x837EFFFFFF) FS1: Alias(s):F1: MemoryMapped(0xB,0x83DF659000,0x83DFB11227) FS2: Alias(s):HD11b:;BLK6: VenHw(B6F44CC0-9E45-11DF-BE21-0002A5D5C51B)/HD(1,MBR,0x00000000,0x2000,0xEE5800) BLK3: Alias(s): VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A) BLK4: Alias(s): VenHw(4D00EF14-C4E0-426B-81B7-30A00A14AAD6) BLK5: Alias(s): VenHw(B6F44CC0-9E45-11DF-BE21-0002A5D5C51B) BLK0: Alias(s): PciRoot(0x0)/Pci(0x0,0x0)/Sata(0x0,0x0,0x0) BLK1: Alias(s): PciRoot(0x0)/Pci(0x0,0x0)/Sata(0x0,0x0,0x0)/HD(1,MBR,0x88683A7D,0x800,0x8F0C981) BLK2: Alias(s): PciRoot(0x0)/Pci(0x0,0x0)/Sata(0x0,0x0,0x0)/HD(2,MBR,0x88683A7D,0x8F0D800,0x8F0CB01)
I have done following inclusion for FAT and partitioning:
FatPkg/FatPei/FatPei.inf
FatPkg/EnhancedFatDxe/Fat.inf
MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.in
But FAT filesystem is not getting installed on HDD partitions. One issue I could see is:
that AtaBusDxe code install BlockIo, BlockIo2 and DiskInfo protocols as pasted:
(from file MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c)
Status = gBS->InstallMultipleProtocolInterfaces (
&AtaDevice->Handle,
&gEfiDevicePathProtocolGuid,
AtaDevice->DevicePath,
&gEfiBlockIoProtocolGuid,
&AtaDevice->BlockIo,
&gEfiBlockIo2ProtocolGuid,
&AtaDevice->BlockIo2,
&gEfiDiskInfoProtocolGuid,
&AtaDevice->DiskInfo,
NULL
);
Whereas in FatPkg which I am using for FAT filesystem installation use DiskIo and DiskIo2 protocols:
Volume->DiskIo = DiskIo;
Volume->DiskIo2 = DiskIo2;
And use these to Open Fat formatted device.
Any clue, how to use FatPkg to install filesystem on SATA HDD?
Thanks and Regards,
Shaveta
_______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel