All of lore.kernel.org
 help / color / mirror / Atom feed
From: JerryVanBaren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] How to get mac address into device tree for powerpc?
Date: Wed, 03 Sep 2008 16:20:44 -0400	[thread overview]
Message-ID: <48BEF19C.3000802@ge.com> (raw)
In-Reply-To: <20080903195641.590FA19E004E@mail34-va3.bigfish.com>

John Linn wrote:
> I have u-boot retrieving the mac address from the i2c eeprom and using
> it fine.
> 
> But it's not clear to me how I should go about getting it into the
> device tree so that the kernel can use it.
> 
> Is there anyway to do this without doing it manually from the command
> line?

Call fdt_fixup_ethernet() from your board initialization (see 
common/fdt_support.c).  You may want to look at some other utilities in 
there and at some example calls from board configurations, e.g.
   board/freescale/mpc8360emds/mpc8360emds.c
to pick one pseudo randomly (I don't know if that is the best example, 
YMMV, etc.).

> Thanks,
> 
> John

Best regards,
gvb

      reply	other threads:[~2008-09-03 20:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-03 19:56 [U-Boot] How to get mac address into device tree for powerpc? John Linn
2008-09-03 20:20 ` JerryVanBaren [this message]

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=48BEF19C.3000802@ge.com \
    --to=gerald.vanbaren@ge.com \
    --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 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.