public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michael Trimarchi <trimarchi@gandalf.sssup.it>
To: u-boot@lists.denx.de
Subject: [U-Boot] MAC address being reset to 00:00:00:00:00:00 ?
Date: Tue, 17 Feb 2009 13:24:27 +0100	[thread overview]
Message-ID: <499AAC7B.5030308@gandalf.sssup.it> (raw)
In-Reply-To: <878C8866E38F79479435191DB986157F4059B8@ex001.siverge-in.lan>

Hi,

Look at the linux git code the driver use this function to fill the mac 
address of your net,
and so I think that somenthing fail here. Maybe is not valid? Try to 
verify if it fails.

const void *of_get_mac_address(struct device_node *np)
{
        struct property *pp;

        pp = of_find_property(np, "mac-address", NULL);
        if (pp && (pp->length == 6) && is_valid_ether_addr(pp->value))
                return pp->value;

        pp = of_find_property(np, "local-mac-address", NULL);
        if (pp && (pp->length == 6) && is_valid_ether_addr(pp->value))
                return pp->value;

        pp = of_find_property(np, "address", NULL);
        if (pp && (pp->length == 6) && is_valid_ether_addr(pp->value))
                return pp->value;

        return NULL;
}

Michael

  reply	other threads:[~2009-02-17 12:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-17 11:50 [U-Boot] MAC address being reset to 00:00:00:00:00:00 ? Amit Margalit
2009-02-17 12:24 ` Michael Trimarchi [this message]
2009-02-17 14:37   ` Amit Margalit
2009-02-17 16:40     ` Michael Trimarchi
2009-02-17 22:37       ` Amit Margalit
2009-02-17 22:43         ` Andy Fleming
2009-02-18  4:24           ` Amit Margalit

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=499AAC7B.5030308@gandalf.sssup.it \
    --to=trimarchi@gandalf.sssup.it \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox