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

Gerard Bucas gerard.b at tekmagic.net
Fri Jul 10 22:41:18 UTC 2015


The temporary solution I use on my MinnowBoard MAX on our custom linux build
is, is to issues the following commands in a root shell:

> /etc/init.d/networking stop
> ifconfig eth0 hw ether 00:13:20:FE:34:EE
> /etc/init.d/networking start
> ifconfig eth0         

The last command is to confirm the new address one just set, Seems to work
great!

Hope that helps!

Regards

Gerard

-----Original Message-----
From: elinux-MinnowBoard
[mailto:elinux-minnowboard-bounces at lists.elinux.org] On Behalf Of Blibbet
Sent: Friday, July 10, 2015 5:35 PM
To: elinux-minnowboard at lists.elinux.org
Subject: Re: [MinnowBoard] How can I set MAC address in EFI shell!?



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.
_______________________________________________
elinux-MinnowBoard mailing list
elinux-MinnowBoard at lists.elinux.org
http://lists.elinux.org/mailman/listinfo/elinux-minnowboard



More information about the elinux-MinnowBoard mailing list