From: Benedict Hewson <benedict@hewson-venieri.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] setting Ethernet address
Date: Fri, 14 Mar 2014 18:29:51 +0000 [thread overview]
Message-ID: <1918123.I2qffjhUIk@desktop1> (raw)
I am trying to get network support working on the Embest imx6 Marsboard.
I have been reading through the various imx6 boards and it appears that some
at least store a MAC address in the fuse memory.
This does not appear to be set on the MarSboard - the fuse memory contains 0.
The original 2009 version used the ethaddr environment variable.
If I try to include this in the config header file either as part of the
CONFIG_EXTRA_ENV_SETTINGS -
#define CONFIG_ETHADDR 00:01:02:03:04:05
#define CONFIG_EXTRA_ENV_SETTINGS \
"ethaddr="__stringify(CONFIG_ETHADDR)"\0" \
or more simply as in the original version
"ethaddr=00:01:02:03:04:05\0" \
everything compiles, but when booting I get "Warning: failed to set MAC
address" and when listing the environment variables ethhaddr is missing.
If I manually set ethaddr and ipaddr the networking seems to work as I can
ping the board successfully.
I assume I am missing something somewhere and I expect if I go through the
source I will eventually find it, but it is probably going to be quicker to
ask.
many thanks
Ben
next reply other threads:[~2014-03-14 18:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 18:29 Benedict Hewson [this message]
2014-03-14 18:52 ` [U-Boot] setting Ethernet address Fabio Estevam
2014-03-15 7:08 ` Benedict Hewson
2014-03-15 19:59 ` Fabio Estevam
2014-03-16 7:00 ` Benedict Hewson
2014-03-16 8:06 ` Wolfgang Denk
2014-03-16 8:35 ` Benedict Hewson
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=1918123.I2qffjhUIk@desktop1 \
--to=benedict@hewson-venieri.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox