All of lore.kernel.org
 help / color / mirror / Atom feed
From: moon.linux@yahoo.com (Anand Moon)
To: linux-arm-kernel@lists.infradead.org
Subject: Random MAC address on my BeagleBone White
Date: Sat, 16 Aug 2014 00:02:19 +0530	[thread overview]
Message-ID: <53EE5233.6000605@yahoo.com> (raw)
In-Reply-To: <20140815134221.08c546a0@gandalf.local.home>

Hi Steven,

Please follow the bellow link to set mac address.

http://www.armadeus.com/wiki/index.php?title=Ethernet_MAC_address

-Anand Moon
On 8/15/2014 11:12 PM, Steven Rostedt wrote:
> Hi,
>
> I'm using my BeagleBone White to debug some ftrace code and with the
> help from people like Robert Nelson I was finally able to boot it and
> test my kernel.
>
> But I'm still having some other issues. The most annoying one is that
> the new kernel assigns some random MAC address to my NIC and I can't
> give my board the proper IP address via DHCP.
>
> Seems there was talk about adding this via the device tree, but it was
> rejected because U-Boot can do it. The problem I have is that U-Boot
> doesn't!
>
> I downloaded the latest U-Boot from git://git.denx.de/u-boot.git (Is
> that the right place?) and had to tweak it so that I can boot a kernel
> via tftp and still use the filesystem on the SD card.
>
> When I place the 3.2 kernel that came with the board on my tftp server,
> all works fine. I get the same MAC addr each boot and things just work.
> But if I place the 3.16 kernel that I build on the tftp server, I get
> some random MAC address, and then a dynamic IP to go with it :-(
>
> This is in my dmesg:
>
> [    2.304970] cpsw 4a100000.ethernet: Random MACID = 8a:fc:f5:aa:b6:e1
>
> I can also see in the file arch/arm/boot/dts/am33xx.dtsi:
>
>
>                          cpsw_emac0: slave at 4a100200 {
>                                  /* Filled in by U-Boot */
>                                  mac-address = [ 00 00 00 00 00 00 ];
>                          };
>
> Well, it's not filled in by U-Boot.
>
> My question to all of you is, how do I fix this? I need a static mac
> addr.
>
> One way is that I might have to update that file myself with a temp
> patch, but I think that's a hack and not something worth doing.
>
> What's the proper way to have the board always come up with the same
> MAC addr?
>
> Thanks, this is rather annoying.
>
> -- Steve
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2014-08-15 18:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-15 17:42 Random MAC address on my BeagleBone White Steven Rostedt
2014-08-15 17:42 ` Steven Rostedt
2014-08-15 18:15 ` Richard Cochran
2014-08-15 18:15   ` Richard Cochran
2014-08-15 18:32 ` Anand Moon [this message]
2014-08-15 18:41   ` Steven Rostedt
2014-08-15 18:41     ` Steven Rostedt
2014-08-15 18:49 ` Markus Pargmann
2014-08-15 18:49   ` Markus Pargmann
2014-08-15 19:03   ` Steven Rostedt
2014-08-15 19:03     ` Steven Rostedt

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-all 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=53EE5233.6000605@yahoo.com \
    --to=moon.linux@yahoo.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.