public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] reg: Clarification on LoadFile2 Protocol Installation for Network Boot Devices
       [not found] <BN0PR10MB498176AAFCA5BE15AB416E81C293A@BN0PR10MB4981.namprd10.prod.outlook.com>
@ 2023-12-15 11:29 ` Sivaraman Nainar via groups.io
  2023-12-18 20:10   ` [edk2-devel] " Saloni Kasbekar
  0 siblings, 1 reply; 6+ messages in thread
From: Sivaraman Nainar via groups.io @ 2023-12-15 11:29 UTC (permalink / raw)
  To: devel@edk2.groups.io, Clark-williams, Zachary, Saloni Kasbekar
  Cc: Natalya Kalistratova, Dhanaraj V, Santhosh Kumar V,
	GengYou Zhou (周庚佑)

[-- Attachment #1: Type: text/plain, Size: 2149 bytes --]

Hello ZClarkWilliams:

Could you please help to clarify if NetworkStack MUST install the LoadFile2 Protocol or not. With reference to the below spec item, the LoadFile2 protocol must be implemented.

In one of the BIOS environment, the Setup Browser Locates the LoadFile2 instance of Network Boot Device and it not found as it not installed by the current NetworkPkg.

Can you please comment if there is any reason behind not installing during the HTTP Boot.
“UEFI SPEC
2.6.3 Driver-Specific Elements There are a number of UEFI elements that can be added or removed depending on the features that a specific driver requires. Drivers can be implemented by platform firmware developers to support buses and devices in a specific platform. Drivers can also be implemented by add-in card vendors for devices that might be integrated into the platform hardware or added to a platform through an expansion slot. The following list includes possible driver features, and the UEFI elements that are required for each feature type:

  1.  If a driver is written for a boot device that is not a block-oriented device, a file system-based device, or a console device, then the EFI_LOAD_FILE2_PROTOCOL must be implemented.
“

Thanks
Siva
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112601): https://edk2.groups.io/g/devel/message/112601
Mute This Topic: https://groups.io/mt/103188580/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 6254 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [edk2-devel] Clarification on LoadFile2 Protocol Installation for Network Boot Devices
  2023-12-15 11:29 ` [edk2-devel] reg: Clarification on LoadFile2 Protocol Installation for Network Boot Devices Sivaraman Nainar via groups.io
@ 2023-12-18 20:10   ` Saloni Kasbekar
  2023-12-19  6:54     ` Sivaraman Nainar via groups.io
  0 siblings, 1 reply; 6+ messages in thread
From: Saloni Kasbekar @ 2023-12-18 20:10 UTC (permalink / raw)
  To: devel@edk2.groups.io, sivaramann@ami.com, Clark-williams, Zachary
  Cc: Natalya Kalistratova, Dhanaraj V, Santhosh Kumar V,
	GengYou Zhou (周庚佑)

[-- Attachment #1: Type: text/plain, Size: 3954 bytes --]

Hi Siva,

“The EFI_LOAD_FILE2_PROTOCOL is a simple protocol used to obtain files from arbitrary devices that are not boot
options”
“The EFI_LOAD_FILE_PROTOCOL is used for devices that do not directly support file systems. Network devices
commonly boot in this model where the image is materialized without the need of a file system.”

Based on the above statements, I believe the Network stack is fine using the current EFI_LOAD_FILE_PROTOCOL and not the EFI_LOAD_FILE2_PROTOCOL as they are currently loaded as boot options. We currently do install the EFI_LOAD_FILE_PROTOCOL within the Network stack. Eg -
  //
  // Create a child handle for the HTTP boot and install DevPath and Load file protocol on it.
  //
  CopyMem (&Private->Ip6Nic->LoadFile, &gHttpBootDxeLoadFile, sizeof (Private->LoadFile));
  Status = gBS->InstallMultipleProtocolInterfaces (
                  &Private->Ip6Nic->Controller,
                  &gEfiLoadFileProtocolGuid,
                  &Private->Ip6Nic->LoadFile,
                  &gEfiDevicePathProtocolGuid,
                  Private->Ip6Nic->DevicePath,
                  NULL
                  );

Maybe we need to update #18 to include Network devices?

Thanks,
Saloni

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Sivaraman Nainar via groups.io
Sent: Friday, December 15, 2023 3:29 AM
To: devel@edk2.groups.io; Clark-williams, Zachary <zachary.clark-williams@intel.com>; Kasbekar, Saloni <saloni.kasbekar@intel.com>
Cc: Natalya Kalistratova <NatalyaK@ami.com>; Dhanaraj V <vdhanaraj@ami.com>; Santhosh Kumar V <santhoshkumarv@ami.com>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com>
Subject: [edk2-devel] reg: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hello ZClarkWilliams:

Could you please help to clarify if NetworkStack MUST install the LoadFile2 Protocol or not. With reference to the below spec item, the LoadFile2 protocol must be implemented.

In one of the BIOS environment, the Setup Browser Locates the LoadFile2 instance of Network Boot Device and it not found as it not installed by the current NetworkPkg.

Can you please comment if there is any reason behind not installing during the HTTP Boot.
“UEFI SPEC
2.6.3 Driver-Specific Elements There are a number of UEFI elements that can be added or removed depending on the features that a specific driver requires. Drivers can be implemented by platform firmware developers to support buses and devices in a specific platform. Drivers can also be implemented by add-in card vendors for devices that might be integrated into the platform hardware or added to a platform through an expansion slot. The following list includes possible driver features, and the UEFI elements that are required for each feature type:

  1.  If a driver is written for a boot device that is not a block-oriented device, a file system-based device, or a console device, then the EFI_LOAD_FILE2_PROTOCOL must be implemented.
“

Thanks
Siva
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112652): https://edk2.groups.io/g/devel/message/112652
Mute This Topic: https://groups.io/mt/103249982/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 14235 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [edk2-devel] Clarification on LoadFile2 Protocol Installation for Network Boot Devices
  2023-12-18 20:10   ` [edk2-devel] " Saloni Kasbekar
@ 2023-12-19  6:54     ` Sivaraman Nainar via groups.io
  2023-12-20  3:45       ` Saloni Kasbekar
  0 siblings, 1 reply; 6+ messages in thread
From: Sivaraman Nainar via groups.io @ 2023-12-19  6:54 UTC (permalink / raw)
  To: Kasbekar, Saloni, devel@edk2.groups.io, Clark-williams, Zachary
  Cc: Natalya Kalistratova, Dhanaraj V, Santhosh Kumar V,
	GengYou Zhou (周庚佑)

[-- Attachment #1: Type: text/plain, Size: 5615 bytes --]

Hello Saloni:

Thanks for Clarifying.

Yes. If Network Devices MUST install LoadFile2 then it would be good that section 18 includes network devices. Do we need to request UEFI forum for the same?

Thanks
Siva
From: Kasbekar, Saloni <saloni.kasbekar@intel.com>
Sent: Tuesday, December 19, 2023 1:41 AM
To: devel@edk2.groups.io; Sivaraman Nainar <sivaramann@ami.com>; Clark-williams, Zachary <zachary.clark-williams@intel.com>
Cc: Natalya Kalistratova <NatalyaK@ami.com>; Dhanaraj V <vdhanaraj@ami.com>; Santhosh Kumar V <santhoshkumarv@ami.com>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com>
Subject: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices


**CAUTION: The e-mail below is from an external source. Please exercise caution before opening attachments, clicking links, or following guidance.**
Hi Siva,

“The EFI_LOAD_FILE2_PROTOCOL is a simple protocol used to obtain files from arbitrary devices that are not boot
options”
“The EFI_LOAD_FILE_PROTOCOL is used for devices that do not directly support file systems. Network devices
commonly boot in this model where the image is materialized without the need of a file system.”

Based on the above statements, I believe the Network stack is fine using the current EFI_LOAD_FILE_PROTOCOL and not the EFI_LOAD_FILE2_PROTOCOL as they are currently loaded as boot options. We currently do install the EFI_LOAD_FILE_PROTOCOL within the Network stack. Eg -
  //
  // Create a child handle for the HTTP boot and install DevPath and Load file protocol on it.
  //
  CopyMem (&Private->Ip6Nic->LoadFile, &gHttpBootDxeLoadFile, sizeof (Private->LoadFile));
  Status = gBS->InstallMultipleProtocolInterfaces (
                  &Private->Ip6Nic->Controller,
                  &gEfiLoadFileProtocolGuid,
                  &Private->Ip6Nic->LoadFile,
                  &gEfiDevicePathProtocolGuid,
                  Private->Ip6Nic->DevicePath,
                  NULL
                  );

Maybe we need to update #18 to include Network devices?

Thanks,
Saloni

From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of Sivaraman Nainar via groups.io
Sent: Friday, December 15, 2023 3:29 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>; Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: [edk2-devel] reg: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hello ZClarkWilliams:

Could you please help to clarify if NetworkStack MUST install the LoadFile2 Protocol or not. With reference to the below spec item, the LoadFile2 protocol must be implemented.

In one of the BIOS environment, the Setup Browser Locates the LoadFile2 instance of Network Boot Device and it not found as it not installed by the current NetworkPkg.

Can you please comment if there is any reason behind not installing during the HTTP Boot.
“UEFI SPEC
2.6.3 Driver-Specific Elements There are a number of UEFI elements that can be added or removed depending on the features that a specific driver requires. Drivers can be implemented by platform firmware developers to support buses and devices in a specific platform. Drivers can also be implemented by add-in card vendors for devices that might be integrated into the platform hardware or added to a platform through an expansion slot. The following list includes possible driver features, and the UEFI elements that are required for each feature type:

  1.  If a driver is written for a boot device that is not a block-oriented device, a file system-based device, or a console device, then the EFI_LOAD_FILE2_PROTOCOL must be implemented.
“

Thanks
Siva
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112699): https://edk2.groups.io/g/devel/message/112699
Mute This Topic: https://groups.io/mt/103249982/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 16821 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [edk2-devel] Clarification on LoadFile2 Protocol Installation for Network Boot Devices
  2023-12-19  6:54     ` Sivaraman Nainar via groups.io
@ 2023-12-20  3:45       ` Saloni Kasbekar
  2023-12-20 22:33         ` Natalya Kalistratova via groups.io
  0 siblings, 1 reply; 6+ messages in thread
From: Saloni Kasbekar @ 2023-12-20  3:45 UTC (permalink / raw)
  To: Sivaraman Nainar, devel@edk2.groups.io, Clark-williams, Zachary
  Cc: Natalya Kalistratova, Dhanaraj V, Santhosh Kumar V,
	GengYou Zhou (周庚佑)

[-- Attachment #1: Type: text/plain, Size: 6501 bytes --]

Hi Siva,

We can file a Mantis for the UEFI forum with the proposal to update the wording for #18 to include Network devices.

Thanks,
Saloni

From: Sivaraman Nainar <sivaramann@ami.com>
Sent: Monday, December 18, 2023 10:54 PM
To: Kasbekar, Saloni <saloni.kasbekar@intel.com>; devel@edk2.groups.io; Clark-williams, Zachary <zachary.clark-williams@intel.com>
Cc: Natalya Kalistratova <NatalyaK@ami.com>; Dhanaraj V <vdhanaraj@ami.com>; Santhosh Kumar V <santhoshkumarv@ami.com>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com>
Subject: RE: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hello Saloni:

Thanks for Clarifying.

Yes. If Network Devices MUST install LoadFile2 then it would be good that section 18 includes network devices. Do we need to request UEFI forum for the same?

Thanks
Siva
From: Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>
Sent: Tuesday, December 19, 2023 1:41 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Sivaraman Nainar <sivaramann@ami.com<mailto:sivaramann@ami.com>>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices


**CAUTION: The e-mail below is from an external source. Please exercise caution before opening attachments, clicking links, or following guidance.**
Hi Siva,

“The EFI_LOAD_FILE2_PROTOCOL is a simple protocol used to obtain files from arbitrary devices that are not boot
options”
“The EFI_LOAD_FILE_PROTOCOL is used for devices that do not directly support file systems. Network devices
commonly boot in this model where the image is materialized without the need of a file system.”

Based on the above statements, I believe the Network stack is fine using the current EFI_LOAD_FILE_PROTOCOL and not the EFI_LOAD_FILE2_PROTOCOL as they are currently loaded as boot options. We currently do install the EFI_LOAD_FILE_PROTOCOL within the Network stack. Eg -
  //
  // Create a child handle for the HTTP boot and install DevPath and Load file protocol on it.
  //
  CopyMem (&Private->Ip6Nic->LoadFile, &gHttpBootDxeLoadFile, sizeof (Private->LoadFile));
  Status = gBS->InstallMultipleProtocolInterfaces (
                  &Private->Ip6Nic->Controller,
                  &gEfiLoadFileProtocolGuid,
                  &Private->Ip6Nic->LoadFile,
                  &gEfiDevicePathProtocolGuid,
                  Private->Ip6Nic->DevicePath,
                  NULL
                  );

Maybe we need to update #18 to include Network devices?

Thanks,
Saloni

From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of Sivaraman Nainar via groups.io
Sent: Friday, December 15, 2023 3:29 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>; Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: [edk2-devel] reg: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hello ZClarkWilliams:

Could you please help to clarify if NetworkStack MUST install the LoadFile2 Protocol or not. With reference to the below spec item, the LoadFile2 protocol must be implemented.

In one of the BIOS environment, the Setup Browser Locates the LoadFile2 instance of Network Boot Device and it not found as it not installed by the current NetworkPkg.

Can you please comment if there is any reason behind not installing during the HTTP Boot.
“UEFI SPEC
2.6.3 Driver-Specific Elements There are a number of UEFI elements that can be added or removed depending on the features that a specific driver requires. Drivers can be implemented by platform firmware developers to support buses and devices in a specific platform. Drivers can also be implemented by add-in card vendors for devices that might be integrated into the platform hardware or added to a platform through an expansion slot. The following list includes possible driver features, and the UEFI elements that are required for each feature type:

  1.  If a driver is written for a boot device that is not a block-oriented device, a file system-based device, or a console device, then the EFI_LOAD_FILE2_PROTOCOL must be implemented.
“

Thanks
Siva
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112741): https://edk2.groups.io/g/devel/message/112741
Mute This Topic: https://groups.io/mt/103249982/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 19614 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [edk2-devel] Clarification on LoadFile2 Protocol Installation for Network Boot Devices
  2023-12-20  3:45       ` Saloni Kasbekar
@ 2023-12-20 22:33         ` Natalya Kalistratova via groups.io
  2023-12-21  3:51           ` Sivaraman Nainar via groups.io
  0 siblings, 1 reply; 6+ messages in thread
From: Natalya Kalistratova via groups.io @ 2023-12-20 22:33 UTC (permalink / raw)
  To: Kasbekar, Saloni, Sivaraman Nainar, devel@edk2.groups.io,
	Clark-williams, Zachary
  Cc: Dhanaraj V, Santhosh Kumar V,
	GengYou Zhou (周庚佑), Triveni H,
	Vairalakshmi M

[-- Attachment #1: Type: text/plain, Size: 7819 bytes --]

Including Triveni and Vairalakshmi to this thread

From: Kasbekar, Saloni <saloni.kasbekar@intel.com>
Sent: Tuesday, December 19, 2023 10:46 PM
To: Sivaraman Nainar <sivaramann@ami.com>; devel@edk2.groups.io; Clark-williams, Zachary <zachary.clark-williams@intel.com>
Cc: Natalya Kalistratova <NatalyaK@ami.com>; Dhanaraj V <vdhanaraj@ami.com>; Santhosh Kumar V <santhoshkumarv@ami.com>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com>
Subject: RE: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hi Siva,

We can file a Mantis for the UEFI forum with the proposal to update the wording for #18 to include Network devices.

Thanks,
Saloni

From: Sivaraman Nainar <sivaramann@ami.com<mailto:sivaramann@ami.com>>
Sent: Monday, December 18, 2023 10:54 PM
To: Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: RE: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hello Saloni:

Thanks for Clarifying.

Yes. If Network Devices MUST install LoadFile2 then it would be good that section 18 includes network devices. Do we need to request UEFI forum for the same?

Thanks
Siva
From: Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>
Sent: Tuesday, December 19, 2023 1:41 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Sivaraman Nainar <sivaramann@ami.com<mailto:sivaramann@ami.com>>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices


**CAUTION: The e-mail below is from an external source. Please exercise caution before opening attachments, clicking links, or following guidance.**
Hi Siva,

“The EFI_LOAD_FILE2_PROTOCOL is a simple protocol used to obtain files from arbitrary devices that are not boot
options”
“The EFI_LOAD_FILE_PROTOCOL is used for devices that do not directly support file systems. Network devices
commonly boot in this model where the image is materialized without the need of a file system.”

Based on the above statements, I believe the Network stack is fine using the current EFI_LOAD_FILE_PROTOCOL and not the EFI_LOAD_FILE2_PROTOCOL as they are currently loaded as boot options. We currently do install the EFI_LOAD_FILE_PROTOCOL within the Network stack. Eg -
  //
  // Create a child handle for the HTTP boot and install DevPath and Load file protocol on it.
  //
  CopyMem (&Private->Ip6Nic->LoadFile, &gHttpBootDxeLoadFile, sizeof (Private->LoadFile));
  Status = gBS->InstallMultipleProtocolInterfaces (
                  &Private->Ip6Nic->Controller,
                  &gEfiLoadFileProtocolGuid,
                  &Private->Ip6Nic->LoadFile,
                  &gEfiDevicePathProtocolGuid,
                  Private->Ip6Nic->DevicePath,
                  NULL
                  );

Maybe we need to update #18 to include Network devices?

Thanks,
Saloni

From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of Sivaraman Nainar via groups.io
Sent: Friday, December 15, 2023 3:29 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>; Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: [edk2-devel] reg: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hello ZClarkWilliams:

Could you please help to clarify if NetworkStack MUST install the LoadFile2 Protocol or not. With reference to the below spec item, the LoadFile2 protocol must be implemented.

In one of the BIOS environment, the Setup Browser Locates the LoadFile2 instance of Network Boot Device and it not found as it not installed by the current NetworkPkg.

Can you please comment if there is any reason behind not installing during the HTTP Boot.
“UEFI SPEC
2.6.3 Driver-Specific Elements There are a number of UEFI elements that can be added or removed depending on the features that a specific driver requires. Drivers can be implemented by platform firmware developers to support buses and devices in a specific platform. Drivers can also be implemented by add-in card vendors for devices that might be integrated into the platform hardware or added to a platform through an expansion slot. The following list includes possible driver features, and the UEFI elements that are required for each feature type:

  1.  If a driver is written for a boot device that is not a block-oriented device, a file system-based device, or a console device, then the EFI_LOAD_FILE2_PROTOCOL must be implemented.
“

Thanks
Siva
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112916): https://edk2.groups.io/g/devel/message/112916
Mute This Topic: https://groups.io/mt/103249982/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 27278 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [edk2-devel] Clarification on LoadFile2 Protocol Installation for Network Boot Devices
  2023-12-20 22:33         ` Natalya Kalistratova via groups.io
@ 2023-12-21  3:51           ` Sivaraman Nainar via groups.io
  0 siblings, 0 replies; 6+ messages in thread
From: Sivaraman Nainar via groups.io @ 2023-12-21  3:51 UTC (permalink / raw)
  To: Natalya Kalistratova, Kasbekar, Saloni, devel@edk2.groups.io,
	Clark-williams, Zachary
  Cc: Dhanaraj V, Santhosh Kumar V,
	GengYou Zhou (周庚佑), Triveni H,
	Vairalakshmi M

[-- Attachment #1: Type: text/plain, Size: 8719 bytes --]

Hi Saloni:

I will try to file a Mantis with these details and update you.

Thanks
Siva
From: Natalya Kalistratova <NatalyaK@ami.com>
Sent: Thursday, December 21, 2023 4:04 AM
To: Kasbekar, Saloni <saloni.kasbekar@intel.com>; Sivaraman Nainar <sivaramann@ami.com>; devel@edk2.groups.io; Clark-williams, Zachary <zachary.clark-williams@intel.com>
Cc: Dhanaraj V <vdhanaraj@ami.com>; Santhosh Kumar V <santhoshkumarv@ami.com>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com>; Triveni H <triveni@ami.com>; Vairalakshmi M <vairalakshmim@ami.com>
Subject: RE: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Including Triveni and Vairalakshmi to this thread

From: Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>
Sent: Tuesday, December 19, 2023 10:46 PM
To: Sivaraman Nainar <sivaramann@ami.com<mailto:sivaramann@ami.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: RE: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hi Siva,

We can file a Mantis for the UEFI forum with the proposal to update the wording for #18 to include Network devices.

Thanks,
Saloni

From: Sivaraman Nainar <sivaramann@ami.com<mailto:sivaramann@ami.com>>
Sent: Monday, December 18, 2023 10:54 PM
To: Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: RE: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hello Saloni:

Thanks for Clarifying.

Yes. If Network Devices MUST install LoadFile2 then it would be good that section 18 includes network devices. Do we need to request UEFI forum for the same?

Thanks
Siva
From: Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>
Sent: Tuesday, December 19, 2023 1:41 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Sivaraman Nainar <sivaramann@ami.com<mailto:sivaramann@ami.com>>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: [EXTERNAL] RE: Clarification on LoadFile2 Protocol Installation for Network Boot Devices


**CAUTION: The e-mail below is from an external source. Please exercise caution before opening attachments, clicking links, or following guidance.**
Hi Siva,

“The EFI_LOAD_FILE2_PROTOCOL is a simple protocol used to obtain files from arbitrary devices that are not boot
options”
“The EFI_LOAD_FILE_PROTOCOL is used for devices that do not directly support file systems. Network devices
commonly boot in this model where the image is materialized without the need of a file system.”

Based on the above statements, I believe the Network stack is fine using the current EFI_LOAD_FILE_PROTOCOL and not the EFI_LOAD_FILE2_PROTOCOL as they are currently loaded as boot options. We currently do install the EFI_LOAD_FILE_PROTOCOL within the Network stack. Eg -
  //
  // Create a child handle for the HTTP boot and install DevPath and Load file protocol on it.
  //
  CopyMem (&Private->Ip6Nic->LoadFile, &gHttpBootDxeLoadFile, sizeof (Private->LoadFile));
  Status = gBS->InstallMultipleProtocolInterfaces (
                  &Private->Ip6Nic->Controller,
                  &gEfiLoadFileProtocolGuid,
                  &Private->Ip6Nic->LoadFile,
                  &gEfiDevicePathProtocolGuid,
                  Private->Ip6Nic->DevicePath,
                  NULL
                  );

Maybe we need to update #18 to include Network devices?

Thanks,
Saloni

From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of Sivaraman Nainar via groups.io
Sent: Friday, December 15, 2023 3:29 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Clark-williams, Zachary <zachary.clark-williams@intel.com<mailto:zachary.clark-williams@intel.com>>; Kasbekar, Saloni <saloni.kasbekar@intel.com<mailto:saloni.kasbekar@intel.com>>
Cc: Natalya Kalistratova <NatalyaK@ami.com<mailto:NatalyaK@ami.com>>; Dhanaraj V <vdhanaraj@ami.com<mailto:vdhanaraj@ami.com>>; Santhosh Kumar V <santhoshkumarv@ami.com<mailto:santhoshkumarv@ami.com>>; GengYou Zhou (周庚佑) <GengYouZhou@ami.com<mailto:GengYouZhou@ami.com>>
Subject: [edk2-devel] reg: Clarification on LoadFile2 Protocol Installation for Network Boot Devices

Hello ZClarkWilliams:

Could you please help to clarify if NetworkStack MUST install the LoadFile2 Protocol or not. With reference to the below spec item, the LoadFile2 protocol must be implemented.

In one of the BIOS environment, the Setup Browser Locates the LoadFile2 instance of Network Boot Device and it not found as it not installed by the current NetworkPkg.

Can you please comment if there is any reason behind not installing during the HTTP Boot.
“UEFI SPEC
2.6.3 Driver-Specific Elements There are a number of UEFI elements that can be added or removed depending on the features that a specific driver requires. Drivers can be implemented by platform firmware developers to support buses and devices in a specific platform. Drivers can also be implemented by add-in card vendors for devices that might be integrated into the platform hardware or added to a platform through an expansion slot. The following list includes possible driver features, and the UEFI elements that are required for each feature type:

  1.  If a driver is written for a boot device that is not a block-oriented device, a file system-based device, or a console device, then the EFI_LOAD_FILE2_PROTOCOL must be implemented.
“

Thanks
Siva
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112801): https://edk2.groups.io/g/devel/message/112801
Mute This Topic: https://groups.io/mt/103249982/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 28083 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-26 14:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <BN0PR10MB498176AAFCA5BE15AB416E81C293A@BN0PR10MB4981.namprd10.prod.outlook.com>
2023-12-15 11:29 ` [edk2-devel] reg: Clarification on LoadFile2 Protocol Installation for Network Boot Devices Sivaraman Nainar via groups.io
2023-12-18 20:10   ` [edk2-devel] " Saloni Kasbekar
2023-12-19  6:54     ` Sivaraman Nainar via groups.io
2023-12-20  3:45       ` Saloni Kasbekar
2023-12-20 22:33         ` Natalya Kalistratova via groups.io
2023-12-21  3:51           ` Sivaraman Nainar via groups.io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox