* [U-Boot] How to get mac address into device tree for powerpc?
@ 2008-09-03 19:56 John Linn
2008-09-03 20:20 ` JerryVanBaren
0 siblings, 1 reply; 2+ messages in thread
From: John Linn @ 2008-09-03 19:56 UTC (permalink / raw)
To: u-boot
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?
Thanks,
John
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] How to get mac address into device tree for powerpc?
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
0 siblings, 0 replies; 2+ messages in thread
From: JerryVanBaren @ 2008-09-03 20:20 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-03 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox