From: Sascha Hauer <s.hauer@pengutronix.de>
To: Giorgio Dal Molin <giorgio.nicole@arcor.de>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: Re: configure the mac address of an eth device
Date: Tue, 2 Jun 2020 08:20:24 +0200 [thread overview]
Message-ID: <20200602062024.GG11869@pengutronix.de> (raw)
In-Reply-To: <2035082672.75503.1590508494270@mail.vodafone.de>
On Tue, May 26, 2020 at 05:54:53PM +0200, Giorgio Dal Molin wrote:
> Hi Sascha,
>
> thank you for your suggestion about the MAC, the code works now as expected.
>
> Just another quick question: is there a function like of_eth_register_ethaddr()
> also for a 'serial-number' value ?
>
> I also have a 'serial number' value from the eeprom and I would like to pass to the kernel.
> Just calling something like:
>
> of_set_property(of_get_root_node(), "serial-number", s, strlen(s) + 1, 1);
>
> does not work because it changes only the device tree for barebox but not that
> for the kernel. So I registered an of fixup:
>
> of_register_fixup(samx7_board_fixup, s);
>
> for it and it works then but it is a bit more complex.
Yes, you have to do it like that, there is no shortcut for it.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2020-06-02 6:20 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
2020-05-25 6:01 ` Sascha Hauer
2020-05-26 15:54 ` Giorgio Dal Molin
2020-06-02 6:20 ` Sascha Hauer [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=20200602062024.GG11869@pengutronix.de \
--to=s.hauer@pengutronix.de \
--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.