[MinnowBoard] How can I set MAC address in EFI shell!?

Blibbet blibbet at gmail.com
Fri Jul 10 21:34:51 UTC 2015



On 07/10/2015 02:11 PM, nb wrote:
> macchanger under Linux can change MAC address
> I think with a live Linux, you can do that.
>
> Regards
>
> nb

Replying to my own question, is it a function: 1) of the UEFI network
driver returning TRUE or FALSE in the Simple Network Protocols's
MacAddressChangable, and 2) there being an end-user command available or
one that can be built with TianoCore-exposed interfaces?

MdePkg/Include/Protocol/SimpleNetwork.h:  BOOLEAN        
MacAddressChangeable;
EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c: 
SnpMode->MacAddressChangeable = TRUE;
Nt32Pkg/SnpNt32Dxe/SnpNt32.c:    FALSE,                               
//  MacAddressChangeable
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/SimpleNetwork.c: 
pMode->MacAddressChangeable = TRUE;
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/SimpleNetwork.c:     
pMode->MacAddressChangeable = TRUE;
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/SimpleNetwork.c: 
pMode->MacAddressChangeable = TRUE;
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/SimpleNetwork.c:     
pMode->MacAddressChangeable = TRUE;
OvmfPkg/VirtioNetDxe/DriverBinding.c:  Dev->Snm.MacAddressChangeable  =
FALSE;

I'll write a BSD-licensed UEFI Shell command and offer it to TianoCore,
if the interfaces allow it. I've been confused if changing MAC addresses
is something you can do in an app or not. I see  HP has some LANaddress
command, but it appears to not be part of TianoCore.

Thanks again.


More information about the elinux-MinnowBoard mailing list