All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: Giorgio <giorgio.nicole@arcor.de>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: Re: configure the mac address of an eth device
Date: Sun, 24 May 2020 20:27:54 +0200	[thread overview]
Message-ID: <20200524182754.GA9740@lenoch> (raw)
In-Reply-To: <69ca4999-4cf0-f20a-5d7a-93e470338bf4@arcor.de>

On Sun, May 24, 2020 at 01:57:08PM +0200, Giorgio wrote:
> Hi,
> 
> I'm working with an arm som with an imx7d soc on it.
> The som also has an eeprom with some module specific manufacturer parameters
> like two MAC address, for eth0 and eth1, a module description string or a module
> serial number.
> I've now added some code to my board.c to extract the strings from the eeprom and now
> I need to actually configure the MAC addresses from them, to avoid barebox choose
> random ones when it needs the eth's.
> 
> What is the proper way to do this ?

Device tree... See nvmem-cells property of ethernet-controller node.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-05-24 18:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-24 11:57 configure the mac address of an eth device Giorgio
2020-05-24 18:27 ` Ladislav Michl [this message]
2020-05-25  6:01 ` Sascha Hauer
2020-05-26 15:54   ` Giorgio Dal Molin
2020-06-02  6:20     ` Sascha Hauer

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=20200524182754.GA9740@lenoch \
    --to=ladis@linux-mips.org \
    --cc=barebox@lists.infradead.org \
    --cc=giorgio.nicole@arcor.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.