From: "Rabeda, Maciej" <maciej.rabeda@intel.com>
To: Sivaraman Nainar <sivaramann@ami.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>,
Maciej Rabeda <maciej.rabeda@linux.intel.com>,
Santhosh Kumar V <santhoshkumarv@ami.com>,
Raj V Akilan <rajva@ami.com>
Subject: Re: reg: MAC address could not change on pre-boot environment and failed to PXE boot.
Date: Fri, 24 Mar 2023 11:30:09 +0000 [thread overview]
Message-ID: <PH0PR11MB4773C3FEC4DED8FECDDA3DE9F9849@PH0PR11MB4773.namprd11.prod.outlook.com> (raw)
In-Reply-To: <BN0PR10MB498158787CE78C22EA95CD86C2849@BN0PR10MB4981.namprd10.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 3553 bytes --]
Hi Nainar,
1. Snp->StationAddress() calls UNDI->StationAddress(). Is there a guarantee that the UNDI driver you are using will persist the configuration across driver reloads / platform reboots? If there is no such guarantee, you should not reconnect UNDI driver - else the setting is lost.
2. Ipconfig interfaces with Ip4Config2 protocol to obtain MAC address to display.
Check "HwAddress" field in "EFI_IP4_CONFIG2_INTERFACE_INFO" structure.
It is initialized in the Ip4Dxe driver, in Ip4Config2InitIfInfo(). If you follow Ip4Config2InitIfInfo() upwards the stack, you will see that it gets called in Ip4Dxe DriverBinding->Start() function.
What I would suggest is to only reconnect SNP driver.
Thanks,
Maciej
From: Sivaraman Nainar <sivaramann@ami.com>
Sent: Friday, March 24, 2023 5:22 AM
To: devel@edk2.groups.io; Maciej Rabeda <maciej.rabeda@linux.intel.com>; Rabeda, Maciej <maciej.rabeda@intel.com>; Santhosh Kumar V <santhoshkumarv@ami.com>; Raj V Akilan <rajva@ami.com>
Subject: reg: MAC address could not change on pre-boot environment and failed to PXE boot.
Hello :
We are writing a application to program the MAC from UEFI shell and with the updated MAC address trying to do the PXE Boot which failed.
The application uses the Simple Network Protocols StationAddress() to update the MAC. After update the Current Address in the Mode of SimpleNetwork Interface updated to new MAC address. If we performed IfConfigl -l command the updated MAC not showing. Also in this environment PXE boot also got failed.
To bind the updated MAC, tried giving "reconnect -r" from UEFI shell after running test application and performed PXE boot. With On board Network controller (Intel I219), the MAC address updated in Snp->Mode->CurrentAddress is reverted back to older MAC address. If reconnect not performed, the MAC Address changing but PXE Failed to boot.
Can someone comment if the method to update the MAC is correct or we missing something.
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.
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.
[-- Attachment #2: Type: text/html, Size: 9462 bytes --]
prev parent reply other threads:[~2023-03-24 11:30 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
2023-03-24 11:30 ` Rabeda, Maciej [this message]
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=PH0PR11MB4773C3FEC4DED8FECDDA3DE9F9849@PH0PR11MB4773.namprd11.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