[ELDK] u-boot tftp on second network interface?

Wolfgang Denk wd at denx.de
Wed Jun 3 12:26:39 CEST 2015


Dear Richard,

In message <556E34B3.30908 at graphitesystems.com> you wrote:
> Can I configure u-boot to tftp from the second network interface?

The use of the network interfaces is controlled by the environment
variables "ethprime" (primary interface, i. e. what to use by default)
and "ethact" (interface to be used for the next transfer).

So you can do something like this:

...
Net:   ppc_4xx_eth0 [PRIME], ppc_4xx_eth1
...
=> printenv ethact ethprime
ethact=ppc_4xx_eth0
ethprime=ppc_4xx_eth0
=> tftp 100000 $bootfile
Waiting for PHY auto negotiation to complete... done
ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
...
=> setenv ethact ppc_4xx_eth1
=> tftp 100000 $bootfile     
Waiting for PHY auto negotiation to complete... done
ENET Speed is 1000 Mbps - FULL duplex connection (EMAC1)
Using ppc_4xx_eth1 device
...


BTW:  U-Boot related questions are usually better posted on the U-Boot
mailing list, see http://lists.denx.de/mailman/listinfo/u-boot

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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 God had wanted us to use the metric system, Jesus would have  had
10 apostles."


More information about the eldk mailing list