[U-Boot] Force setting of ethact
Wolfgang Denk
wd at denx.de
Thu Nov 18 14:57:50 CET 2010
Dear DUNDA Matthias,
In message <27800_1290086146_4CE52702_27800_13178_1_3CF34B583782C147807E09365F884DA42F058FDF03 at THSNCOA06MXS02P.ONE-06.GRP> you wrote:
>
> I've been struggeling with the ethact setting in U-Boot: I want U-Boot to load from eTSEC0 on our board, but it always comes up with ethact = UEC0 or FSL UEC0 in older versions.
>
> As ethact is not persistent, my only workaround so far was to change net/eth.c so that at all occasions, where ethact is set, it is set to eTSEC0 - during development, this was OK for me, but now I am cleaning up!
Why don't you use "ethprime" ?
> What's the intended/desired function of ethact, and how should it be initialized? Even using CONFIG_ETHPRIME has no effect.
These variabes are documented in the README.
> From my understanding of something named "ethact", I would expect, that it finds the (first) active ethernet device - active in a sense of connected or usable or whatever.
"active" as "currently active", i. e. what will be used when you issue
a network command.
> Although eTSEC0 is the only connected port on our device, it comes up with UEC0 - so, even if this interface in "on" in some way, this does not help here.
>
> How can I force ethact to be eTSEC0 (or whichever I want), without tampering U-Boot base files?
"ethact" is the wrong variable for what you are trying to do. Use
"ethprime" instead.
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
panic: can't find /
More information about the U-Boot
mailing list