From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] Fix DM9000 MAC address handling
Date: Thu, 22 Oct 2009 10:10:34 -0700 [thread overview]
Message-ID: <4AE0920A.5030908@gmail.com> (raw)
In-Reply-To: <0554BEF07D437848AF01B9C9B5F0BC5D936D8CA5@dlee01.ent.ti.com>
Hi Sandeep,
Paulraj, Sandeep wrote:
>
>> Proper behavior is to pull MAC address from NVRAM in the initialization()
>> an
>> stuff it in dev->address, then program the device from dev->address in
>> the init() function.
>>
>> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
>> ---
>>
> Ben I tested and here is the result.
>
> 1) dhcp still does not work
> 2) I have to set a static ipaddr for the bootcmd to work
>
> Your patch solved the issue where issuing the bootcmd "tftp; bootm"
> would complain about ethaddr not being set.
>
> But i do notice that ethaddr does not get saved in the environment.
>
>
Saving the address to the environment is the user's job. Nothing should
write it automatically. A few drivers do, but they should be changed.
Please look in net/eth.c::eth_initialize() to see how this works. The
order of precedence is this:
1. If environment variable is not set, it's up to the driver to find its
own MAC address.
2. If the environment variable is set, and is non-zero, it is used. If
if conflicts with the value in NVRAM, a warning is issued, but the
environment value is still used.
I don't know why DHCP doesn't work, but if I were you I'd check that the
address printed from line 344 in dm9000x.c shows a valid unicast MAC
address.
regards,
Ben
prev parent reply other threads:[~2009-10-22 17:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-22 4:56 [U-Boot] [PATCH v2] Fix DM9000 MAC address handling Ben Warren
2009-10-22 15:04 ` Paulraj, Sandeep
2009-10-22 17:10 ` Ben Warren [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=4AE0920A.5030908@gmail.com \
--to=biggerbadderben@gmail.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