Thread (30 messages) flat view 30 messages, 8 authors, 2012-02-06

Re: Mac address in the DTS file

From: Lorenz Kolb <hidden>
Date: 2011-12-30 14:07:05

Hi Smitha,

actually it should work as normal

On 12/30/2011 1:51 PM, smitha.vanga@wipro.com wrote:
Its constant. Am not able to change this mac -address in linux once the target is up with LINUX.
How do I change the MAC address.
actually it should work as normal:
ifconfig ethX down
ifconfig ethX hw ether 00:11:22:33:44:55
ifconfig ethX up
  If different targets boards are connected on the network then every board will have the same MAC address as  the .dtb file is the same. How to go about this problem?
Depends on your setup: normally the real MAC is stored on some onboard 
configuration space (eeprom or flash).
Afterwards there are multiple ways you could work aroun the problem: 
most elegant: make your bootloader replace the fake MAC with the real 
one within the dtb.
Most simple one: have a startup script that reads the real MAC and does 
the ifconfig magic.

Regards,

Lorenz
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help