Skip to contentSkip to conversation

2 Ethernet ports on a MPC860T

DISCUSSION Gerhard TAEUBL 2 participants 2 messages Jun 11, 2002

lore
Share & tools
lore
#0 lore raw

Hi all!

We have to redesign our customer board next year, and there is a requirement to use two ethernet ports. At the moment we use of course the FEC with 10/100 MBit. So we want to add a SCC (SCC3 fits for us ...) for a second ethernet. Is that configuration supported by linux, or easy to adapt? (to switch from another SCC to SCC3 or similar).

What kind of external devices are necessary? And how do you store the MAC Address? (We do it at the moment via a one wire chip, they garant for the right MAC Address).

Thanks in advance

Gerhard

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 5 lines

We have to redesign our customer board next year, and there is a requirement to use two ethernet ports. At the moment we use of course the FEC with 10/100 MBit. So we want to add a SCC (SCC3 fits for us ...) for a second ethernet. Is that configuration supported by linux, or easy to adapt? (to switch from another SCC to SCC3 or similar).

I think this should be easy possible. The arch/ppc/8xx_io provides both drivers: enet.c: for SCC
fec.c: for FEC

Via the CONFIG_SCC[1-3]_ENET switches you can configure the kernel, which SCC is used (see enet.c).

You must also associate e.g. the 'eth0' network interface to the SCC and the 'eth1' network interface to the FEC as desired.

In order to do this I think you can pass your own net_device structure to init_etherdev() (not NULL) inside the driver init entry points (e.g.; scc_enet_init()).
Before calling init_etherdev() you can initialize the name member of the net_device structure as you want ("eth0", "eth1", ...). I hope this works.

Quoted 4 lines

What kind of external devices are necessary? And how do you store the MAC Address? (We do it at the moment via a one wire chip, they garant for the right MAC Address).

We are storing the MAC addresses inside the FLASH memory part of our system.

Steffen
--

--------------------------------------------------------------

Steffen Rumler
ICN ON PNE SB 4
Siemens AG

Hofmannstr. 51                 Email: [email protected]
D-81359 Munich                 Phone: +49 89 722-44061
Germany                        Fax  : +49 89 722-36703

--------------------------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/