[U-Boot] How to enable 2 FCC Ports while booting using CONFIG_NET_MULTI
Gurumurthy Gowdar
gurumurthy.gm at rediffmail.com
Tue Oct 27 10:21:58 CET 2009
Dear Sir,
i want only one ethernet port active at a time. so to acheive this how to use CONFIG_NET_MULTI. i have enabled one ethernet port at present i.e. FCC2. how to enable two ports so that when i ping or give network command its should ping depending upon selected port.
With Regards,
Gurumurthy
On Tue, 27 Oct 2009 14:09:51 +0530 wrote
>Dear "Gurumurthy Gowdar",
In message you wrote:
>
>
> please let me know how to enable two Ethernet Ports in
> U-boot for MPC8280 at booting time. After booting i should be able to
> ping the two ports i.e. FCC1 and FCC2 only by connecting the ethernet
> cable to the repective port (FCC1 & FCC2.
You don't. You don;t do this at all.
U-Boot does not enable any peripherals "at booting time". This is a
design principle, see
http://www.denx.de/wiki/view/U-Boot/DesignPrinciples#2_Keep_it_Fast
Ethernet ininitlization is only done when U-Boot attempts to perform a
network command, and then only that single interface gets initialized
which U-Boot is going to use.
> currently i have enabled one port FCC2 as ethact port, can i change
> this depending by which port i want to ping.
Yes, you can toggle between several ports. But keep in mind that only
one of them will be active at any time, if any at all.
> i came to know about CONFIG_NET_MULTI whether this will be the
> solution for using two ports at a time.
You cannot use two ports at the same time, only one or the other. But
it is possible to switch at runtime (either automatically when a
download fails or manually by setting the "ethact" environment
variable accordingly).
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
If it went on at this rate, in several billion years he'd be rich
beyond his wildest dreams! - Terry Pratchett, _Soul Music_
More information about the U-Boot
mailing list