[SOLVED] Problem with configuring ethernet portmap

Started by wouter, April 05, 2016, 05:00:31 PM

Previous topic - Next topic

wouter

We developed our own baseboard, based on the RT5350F-OLinuXino_EVB.
Instead of the 2 ethernet port we place 4 ethernet ports. 3 lan and 1 wan port.

We connected the wan port to port 3.
And the lan ports to port 0, 1 and 2.

We edited the OLINUXINO-RT5350F-EVB.dts file:
from:
ralink,portmap = <0x2f>;
to:
ralink,portmap = <0x3e>;

But with this configuration the wan port doesn't work.
Only when setting the wan port to port 0 the wan port works correct.

At first the lan ports (1 and 2) looks like they are working correct, for example when you connect a laptop it receives an ip address from the dhcp-server and i can login with telnet.

But when i connect a network switch i'm getting very strange behaviour. The Link leds flicker continuously without any data.
Again when i setup port 0 as lan port it works normal.

At default the RT5350F-OLinuXino_EVB uses port 0 and port 4. When i plugin the rt5350f from the custom baseboard back into the EVB the network ports are working correct.

So it looks like i am missing a step for configuring the network ports properly.
Can someone help me with this?

-UPDATE-

When building uboot there is an option partition LAN/WAN.
It looks like it is only possible to configure the WAN and LAN ports two ways
wllll or llllw. So only port 0 and port 4.

So this would clarify the problem i am having for configuring WAN on port 3.

I have some extra information on the problems with the LAN ports. I have connected one of the LAN ports to a gigabit ethernet switch. And it looks like it searches for the correct speed, sometimes it falls back to 10Mbit, most of the times it will loose connection.