Skip to contentSkip to conversation

how to make a PCI net card work ?

U-Boot-Users Wolfgang Denk 1 participant 1 message Sep 28, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

[Please keep the mailing list on Cc: so others can benefit from this discussion and it goes to the archives, too.]

Quoted 10 lines · In message <[email protected]> you wrote:

Hello, my aim is to make the PCI net card work both in U-BOOT and linux. The card has already been found in U-BOOT,

PCI: Bus Dev VenId DevId Class Int

        00  18  8086  1209  0200  00
        00  1a  1057  5803  0680  00
In:    serial
Out:   serial
Err:   serial
Net:   FEC ETHERNET, i82559#0

Good.

Quoted 4 lines

My first question is how to config the PCI net device(i82559) to use it for tftp?

The environments settting in U-boot are,
=> printenv

...

Quoted 1 line

ethact=FEC ETHERNET

Run

	=> setenv ethact i82559#0

before issueing the first network command.

Alternatively, set and save "ethprime" to hold the name of the primary ethernet interface.

Actually I am surprised that you have to ask these questions. You did read the README, didn't you? It says:

ethprime - When CONFIG_NET_MULTI is enabled controls which
interface is used first.

ethact - When CONFIG_NET_MULTI is enabled controls which
interface is currently active. For example you can do the following

=> setenv ethact FEC ETHERNET
=> ping 192.168.0.1 # traffic sent on FEC ETHERNET => setenv ethact SCC ETHERNET
=> ping 10.0.0.1 # traffic sent on SCC ETHERNET

Quoted 1 line

and i could only found the deviec eth0 (FEC) and lo by using the ifconfig -a command,

You see only interfaces listed that have been configured. What do you see in the kernel boot messages? Is there some startup message for eth1? What happens when you issue (for example) a "ifconfig eth1 192.168.1.1 up" command? [Make sure to use a valid IP address.]

Quoted 1 line

My third question is how can i add the PCI net device? and how to configue the net?

You just configure the driver into the Linux kernel; and you use "ifconfig" to configure the interface.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hacking's just another word for nothing left to kludge.