For some reason the WAN port on my BPI-R64 doesn’t work, though the LAN ports do.When I plug in a LAN cable the LEDs do not light up and I do not see any messages from the kernel.
I’ve tried several different images (Ubuntu, OpenWRT) and none of them work.
Do I have bad hardware, or am I missing something?
This is what the linux kernel sees (WAN & LAN1 are plugged in):
root@(none):/# ip link
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc fq_codel state UP qlen 1000
link/ether e2:c8:b1:a2:66:dd brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN qlen 1000
link/ether aa:67:4f:fd:4a:6a brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e2:c8:b1:a2:66:dd brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN qlen 1000
link/ether e2:c8:b1:a2:66:dd brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e2:c8:b1:a2:66:dd brd ff:ff:ff:ff:ff:ff
7: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e2:c8:b1:a2:66:dd brd ff:ff:ff:ff:ff:ff
8: lan4@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e2:c8:b1:a2:66:dd brd ff:ff:ff:ff:ff:ff
I’ve tried that, both running in OpenWRT recovery environment, and in the normal environment.
I do see that WAN is being set up in dmesg:
[ 10.484102] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[ 10.493790] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 10.502320] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 10.509422] mt7530 mdio-bus:00 lan1: configuring for phy/gmii link mode
[ 10.519160] 8021q: adding VLAN 0 to HW filter on device lan1
[ 10.527460] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 10.534007] br-lan: port 1(lan1) entered blocking state
[ 10.539295] br-lan: port 1(lan1) entered disabled state
[ 10.545283] device lan1 entered promiscuous mode
[ 10.549900] device eth0 entered promiscuous mode
[ 10.563259] mt7530 mdio-bus:00 lan2: configuring for phy/gmii link mode
[ 10.570486] 8021q: adding VLAN 0 to HW filter on device lan2
[ 10.578730] br-lan: port 2(lan2) entered blocking state
[ 10.583965] br-lan: port 2(lan2) entered disabled state
[ 10.590574] device lan2 entered promiscuous mode
[ 10.600700] mt7530 mdio-bus:00 lan3: configuring for phy/gmii link mode
[ 10.607962] 8021q: adding VLAN 0 to HW filter on device lan3
[ 10.612753] mt7530 mdio-bus:00 lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[ 10.616181] br-lan: port 3(lan3) entered blocking state
[ 10.626396] br-lan: port 3(lan3) entered disabled state
[ 10.632380] device lan3 entered promiscuous mode
[ 10.639991] br-lan: port 3(lan3) entered blocking state
[ 10.645223] br-lan: port 3(lan3) entered forwarding state
[ 10.650983] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 10.660980] mt7530 mdio-bus:00 lan4: configuring for phy/gmii link mode
[ 10.668188] 8021q: adding VLAN 0 to HW filter on device lan4
[ 10.676187] br-lan: port 4(lan4) entered blocking state
[ 10.681411] br-lan: port 4(lan4) entered disabled state
[ 10.687591] device lan4 entered promiscuous mode
[ 10.699888] mt7530 mdio-bus:00 wan: configuring for phy/gmii link mode
[ 10.706954] 8021q: adding VLAN 0 to HW filter on device wan
I then see messages for the LAN ports:
[ 128.169883] mt7530 mdio-bus:00 lan4: Link is Up - 1Gbps/Full - flow control rx/tx
[ 128.177409] br-lan: port 4(lan4) entered blocking state
[ 128.182628] br-lan: port 4(lan4) entered forwarding state
root@OpenWrt:/# ip link set wan up
root@OpenWrt:/# ifconfig wan up
root@OpenWrt:/# ifconfig
...snip...
wan Link encap:Ethernet HWaddr B2:55:08:32:E8:38
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
No LEDs on WAN port, which leads me to believe it’s a kernel or hardware issue.