Changeset 45692


Ignore:
Timestamp:
2015-05-16T19:14:25+02:00 (3 years ago)
Author:
rmilecki
Message:

bcm53xx: try to fix network on Asus RT-AC87U

This device seems to have switch port 7 connected to the CPU:
vlan1ports=1 2 3 5 7*
vlan2ports=0 7u
it should be handled by eth1 and NVRAM seems to confirm that (no
et0macaddr entry, existing et1macaddr & et1phyaddr entries).

One of the remaining ports (4/8?) may be connected to the Quantenna SoC.
Original firmware boot log contains following messages:
(0x00,0x5d)Port 5 States Override: 0xfb
(0x00,0x5f)Port 7 States Override: 0xfb
(0x00,0x0e)Port 8 States Override: 0x0a
(why does it force port 5 state?!)

Signed-off-by: Rafał Miłecki <zajec5@…>

Location:
trunk/target/linux/bcm53xx
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/bcm53xx/base-files/etc/board.d/02_network

    r45681 r45692  
    1010board=$(cat /proc/device-tree/compatible | tr '\0' '\t' | cut -f 1) 
    1111case "$board" in 
     12asus,rt-ac87u) 
     13        ifname=eth1 
     14        ;; 
    1215netgear,r8000) 
    1316        ifname=eth2 
     
    3336        ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5t" 
    3437        ucidef_add_switch_vlan "switch0" "2" "0 5t" 
     38elif echo "$vlan1ports" | egrep -q "^1 2 3 5 7" && \ 
     39     echo "$vlan2ports" | egrep -q "^0 7"; then 
     40        ucidef_add_switch_vlan "switch0" "1" "1 2 3 5 7t" 
     41        ucidef_add_switch_vlan "switch0" "2" "0 7t" 
    3542elif echo "$vlan1ports" | egrep -q "^0 1 2 3 5 7 8" && \ 
    3643     echo "$vlan2ports" | egrep -q "^4 8"; then 
  • trunk/target/linux/bcm53xx/patches-3.18/710-b53-add-hacky-CPU-port-fixes-for-devices-not-using-p.patch

    r45691 r45692  
    1 From ec2ae8fc837772afd7a89f98c8a1ec71e2ab322b Mon Sep 17 00:00:00 2001 
     1From 4abdde3ad6bc0b3b157c4bf6ec0bf139d11d07e8 Mon Sep 17 00:00:00 2001 
    22From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> 
    33Date: Wed, 13 May 2015 14:13:28 +0200 
    4 Subject: [PATCH] b53: add hacky CPU port fix for Netgear R8000 
     4Subject: [PATCH] b53: add hacky CPU port fixes for devices not using port 5 
    55MIME-Version: 1.0 
    66Content-Type: text/plain; charset=UTF-8 
     
    99Signed-off-by: Rafał Miłecki <zajec5@gmail.com> 
    1010--- 
    11  drivers/net/phy/b53/b53_common.c | 4 ++++ 
    12  1 file changed, 4 insertions(+) 
     11 drivers/net/phy/b53/b53_common.c | 6 ++++++ 
     12 1 file changed, 6 insertions(+) 
    1313 
    1414diff --git a/drivers/net/phy/b53/b53_common.c b/drivers/net/phy/b53/b53_common.c 
    15 index 2b05d5d..ba16107 100644 
     15index 2b05d5d..fd3b39c 100644 
    1616--- a/drivers/net/phy/b53/b53_common.c 
    1717+++ b/drivers/net/phy/b53/b53_common.c 
     
    2424 #include "b53_regs.h" 
    2525 #include "b53_priv.h" 
    26 @@ -1313,6 +1314,9 @@ static int b53_switch_init(struct b53_device *dev) 
     26@@ -1313,6 +1314,11 @@ static int b53_switch_init(struct b53_device *dev) 
    2727                        sw_dev->cpu_port = 5; 
    2828        } 
    2929  
    30 +       if (of_machine_is_compatible("netgear,r8000")) 
     30+       if (of_machine_is_compatible("asus,rt-ac87u")) 
     31+               sw_dev->cpu_port = 7; 
     32+       else if (of_machine_is_compatible("netgear,r8000")) 
    3133+               sw_dev->cpu_port = 8; 
    3234+ 
Note: See TracChangeset for help on using the changeset viewer.