[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

Hope that helps!



-----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        
SnpMode->MacAddressChangeable = TRUE;
Nt32Pkg/SnpNt32Dxe/SnpNt32.c:    FALSE,                               
//  MacAddressChangeable
pMode->MacAddressChangeable = TRUE;
pMode->MacAddressChangeable = TRUE;
pMode->MacAddressChangeable = TRUE;
pMode->MacAddressChangeable = TRUE;
OvmfPkg/VirtioNetDxe/DriverBinding.c:  Dev->Snm.MacAddressChangeable  =

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

More information about the elinux-MinnowBoard mailing list