public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Sivaraman Nainar" <sivaramann@ami.com>
To: "erichmcmill@gmail.com" <erichmcmill@gmail.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Re: [edk2-devel] reg: MAC address could not change on pre-boot environment and failed to PXE boot.
Date: Fri, 2 Jun 2023 02:12:12 +0000	[thread overview]
Message-ID: <BN0PR10MB498134DE71847D05146A9FEEC24EA@BN0PR10MB4981.namprd10.prod.outlook.com> (raw)
In-Reply-To: <21387.1679632576228070434@groups.io>

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

Hello Erich / Maciej:

Thanks for your guidelines. With this approach able to program the MAC and PXE boot works.

Thank you
Siva
From: erichmcmill@gmail.com<mailto:erichmcmill@gmail.com>
Sent: Friday, March 24, 2023 10:06 AM
To: Sivaraman Nainar<mailto:sivaramann@ami.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] Re: [edk2-devel] reg: MAC address could not change on pre-boot environment and failed to PXE boot.


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

We did this recently in project mu, trying to find exactly the changes needed but I recall the following:

  1.  Mac Address needs to be programmed before network stack fully loads (pretty sure I only got it working in DXE), possible to add changes from this PR and have an event callback to set mac address

     *   Event Add a named event that is signalled when Snp->Initialize() is executed. · microsoft/mu_basecore@7dc143d (github.com)<https://github.com/microsoft/mu_basecore/commit/7dc143d594bfef6d2a2a24b10b96e1258a15a344>
     *   DXE Driver code to handle the Mac programming when the SNP is installed Add MacEmulationDxe Support by Erich-McMillan · Pull Request #109 · microsoft/mu_plus (github.com)<https://github.com/microsoft/mu_plus/pull/109/files#diff-f4bb037877470a0fc3e2f6587ad1295370ce78febdbc49a12fe65fe4b52fb80d>

        *   If you don't take this driver as is be very careful to copy the TPL levels from event handers not doing this will cause issues

  1.  This change to reload the Snp info in ARP might be needed too ArpDriver: refetch Snp Mode data after running MnpConfigure · microsoft/mu_basecore@2b8ad03 (github.com)<https://github.com/microsoft/mu_basecore/commit/2b8ad03c5de4113ffbe85f5301daaad6c9c980e2>
Let me know if you have any issues/questions. Its been a while since I looked at this code.

-Erich

-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.

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

  reply	other threads:[~2023-06-02  2:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-24  4:22 reg: MAC address could not change on pre-boot environment and failed to PXE boot Sivaraman Nainar
2023-03-24  4:36 ` [edk2-devel] " erichmcmill
2023-06-02  2:12   ` Sivaraman Nainar [this message]
2023-03-24 11:30 ` Rabeda, Maciej

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BN0PR10MB498134DE71847D05146A9FEEC24EA@BN0PR10MB4981.namprd10.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox