* [U-Boot] Bogus "Warning: failed to set MAC address" on Gumstix Overo
@ 2011-09-08 13:43 Philip Balister
2011-09-08 14:40 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Philip Balister @ 2011-09-08 13:43 UTC (permalink / raw)
To: u-boot
When booting master on a Gumstix Overo based system, I get the following
messages during ethernet initialization:
Net: smc911x-0
Warning: failed to set MAC address
(Note that patch [1] is needed to move the Warning to a new line,
otherwise it is after the previous line with no space)
In this system, the ethernet chip is loading the MAC address from an
attached eeprom, so the warning is inaccurate. I've looked at the code
some, and it is not clear to me the best way to suppress this message
for the case where the hardware configures its MAC address on reset.
Philip
[1] http://permalink.gmane.org/gmane.comp.boot-loaders.u-boot/107639
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Bogus "Warning: failed to set MAC address" on Gumstix Overo
2011-09-08 13:43 [U-Boot] Bogus "Warning: failed to set MAC address" on Gumstix Overo Philip Balister
@ 2011-09-08 14:40 ` Wolfgang Denk
2011-09-08 15:08 ` Philip Balister
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2011-09-08 14:40 UTC (permalink / raw)
To: u-boot
Dear Philip Balister,
In message <4E68C67F.2080002@opensdr.com> you wrote:
> When booting master on a Gumstix Overo based system, I get the following
> messages during ethernet initialization:
>
> Net: smc911x-0
> Warning: failed to set MAC address
>
> (Note that patch [1] is needed to move the Warning to a new line,
> otherwise it is after the previous line with no space)
>
> In this system, the ethernet chip is loading the MAC address from an
> attached eeprom, so the warning is inaccurate. I've looked at the code
The warning gets printed when eth_write_hwaddr() fails.
What makes you claim that this is not correct? There _is_ a problem
when eth_write_hwaddr() returns an error code.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Unser Kopf ist rund, damit das Denken die Richtung wechseln kann.
-- Francis Picabia
^ permalink raw reply [flat|nested] 4+ messages in thread* [U-Boot] Bogus "Warning: failed to set MAC address" on Gumstix Overo
2011-09-08 14:40 ` Wolfgang Denk
@ 2011-09-08 15:08 ` Philip Balister
2011-09-08 15:17 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Philip Balister @ 2011-09-08 15:08 UTC (permalink / raw)
To: u-boot
On 09/08/2011 10:40 AM, Wolfgang Denk wrote:
> Dear Philip Balister,
>
> In message<4E68C67F.2080002@opensdr.com> you wrote:
>> When booting master on a Gumstix Overo based system, I get the following
>> messages during ethernet initialization:
>>
>> Net: smc911x-0
>> Warning: failed to set MAC address
>>
>> (Note that patch [1] is needed to move the Warning to a new line,
>> otherwise it is after the previous line with no space)
>>
>> In this system, the ethernet chip is loading the MAC address from an
>> attached eeprom, so the warning is inaccurate. I've looked at the code
>
> The warning gets printed when eth_write_hwaddr() fails.
>
> What makes you claim that this is not correct? There _is_ a problem
> when eth_write_hwaddr() returns an error code.
My point is the code shouldn't be trying to write the MAC address, when
the MAC address is set in hardware. Earlier, (say 2011.6 but I am not
being scientific here) u-boots did the write thing (IE not print the
warning). This behavior has changed in the past few months.
Philip
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Bogus "Warning: failed to set MAC address" on Gumstix Overo
2011-09-08 15:08 ` Philip Balister
@ 2011-09-08 15:17 ` Wolfgang Denk
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2011-09-08 15:17 UTC (permalink / raw)
To: u-boot
Dear Philip Balister,
In message <4E68DA54.4000005@balister.org> you wrote:
>
> My point is the code shouldn't be trying to write the MAC address, when
> the MAC address is set in hardware. Earlier, (say 2011.6 but I am not
> being scientific here) u-boots did the write thing (IE not print the
> warning). This behavior has changed in the past few months.
Yes, we started unifying the code. Please see doc/README.drivers.eth
What is the problem with running eth_write_hwaddr() on this system?
_This_ should be fixed.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Pain is a thing of the mind. The mind can be controlled.
-- Spock, "Operation -- Annihilate!" stardate 3287.2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-09-08 15:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-08 13:43 [U-Boot] Bogus "Warning: failed to set MAC address" on Gumstix Overo Philip Balister
2011-09-08 14:40 ` Wolfgang Denk
2011-09-08 15:08 ` Philip Balister
2011-09-08 15:17 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox