130 | | == GW16083 Ethernet Expansion Mezzanine == |
131 | | The GW16083 Ethernet Expansion Mezzanine has DSA support in the latest Gateworks Yocto and OpenWrt BSPs. |
132 | | |
133 | | Note that while the MV88E6176 switch can tag/untag frames automatically according to VLAN configuration which does not require the CPU port to be 'up', if you need to do any other protocol level networking packets must enter the CPU and thus the cpu port needs to be 'up'. Typically the GW16083 PCI NIC routing to the CPU interface is the 2nd network interface (eth1). |
134 | | |
135 | | For example, a GW54xx + GW16083: |
136 | | {{{#!bash |
137 | | root@ventana:~# ls /sys/class/net/ |
138 | | can0 eth0 eth1 eth2 lo sit0 wlan0 |
139 | | root@ventana:~# grep -H DRIVER=igb /sys/class/net/*/device/uevent |
140 | | /sys/class/net/eth1/device/uevent:DRIVER=igb |
141 | | root@ventana:~# ifconfig eth1 up |
142 | | [ 233.512754] igb: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX |
143 | | [ 233.582674] igb 0000:06:00.0 eth1: igb PHY driver [MV88E6176] (mii_bus:phy_addr=0000:06:00.0-157:10) |
144 | | [ 233.592314] 8021q: adding VLAN 0 to HW filter on device eth1 |
145 | | root@ventana:~# [ 234.494007] Distributed Switch Architecture driver version 0.1 |
146 | | [ 234.500007] eth1[0]: detected a Marvell 88E6176 switch |
147 | | [ 234.583752] libphy: dsa slave smi: probed |
148 | | [ 235.208987] MV88E6176 0000:06:00.0-157:10: registered GW16083 DSA switch |
149 | | |
150 | | root@ventana:~# ls /sys/class/net/ |
151 | | can0 eth0 eth1 eth2 lan1 lan2 lan3 lan4 lan5 lan6 lo sit0 wlan0 |
152 | | }}} |
153 | | * Notice how we use {{{grep -H DRIVER=igb /sys/class/net/*/device/uevent}}} to show which NIC belongs to the Intel I210 on the GW16083. Note that on a GW552x you will see three NIC's all using igb. |
154 | | * Notice how until the Intel I210 on the GW16083 is brought up the lan1 - lan6 NIC's are not present |
155 | | * The lan numbering matches the silkscreen. Please refer to the following table: |
156 | | ||= Connector =||= Silkscreen =||= DSA Name =|| |
157 | | || J7 || Ethernet1 || lan1 || |
158 | | || J8 || Ethernet2 || lan2 || |
159 | | || J9 || Ethernet3 || lan3 || |
160 | | || J10 || Ethernet4 || lan4 || |
161 | | || J3/J4 || Ethernet5 || lan5 || |
162 | | || J2/J4 || Ethernet6 || lan6 || |
163 | | |
164 | | OpenWrt BSP Notes: |
165 | | * Note that on OpenWrt by default the 2nd NIC on a GW552x/GW53xx/GW54xx is configured as the {{{wan}}} interface and brought up with dhcp running on it. If you want to use dhcp you will want to run it on a port interface instead (ie lan1 through lan6) |
166 | | * On boards with a single on-board NIC (ie GW51xx/GW52xx) you will need to bring eth1 up manually before you can see lan1 - lan6 (or configure it to come up via OpenWrt's network configuration) |