[OpenWrt-Devel] [PATCH 1/2] ar71xx: rework patch for qca953x/956x

Christian Mehlis christian at m3hlis.de
Mon Jul 6 11:56:10 EDT 2015


Am 06.07.2015 um 15:59 schrieb Matthias Schiffer:
> could you send me the output of `swconfig dev eth1 show` (or eth0?) on
> OpenWrt? The current initialization code looks a bit weird as it's the
> same one would use for a device with 4 LAN ports, even though the WPJ531
> has only one.

root at OpenWrt:/# swconfig dev eth0 show
Failed to connect to the switch. Use the "list" command to see which 
switches are available.
root at OpenWrt:/# swconfig dev eth1 show
Global attributes:
         enable_vlan: 0
Port 0:
         pvid: 0
         link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
         pvid: 0
         link: port:1 link:down
Port 2:
         pvid: 0
         link: port:2 link:down
Port 3:
         pvid: 0
         link: port:3 link:up speed:100baseT full-duplex auto
Port 4:
         pvid: 0
         link: port:4 link:down
VLAN 0:
         vid: 0
         ports: 0 1 2 3 4

root at OpenWrt:/# ethtool eth0
Settings for eth0:
         Supported ports: [ TP MII ]
         Supported link modes:   10baseT/Half 10baseT/Full
                                 100baseT/Half 100baseT/Full
                                 1000baseT/Full
         Supported pause frame use: No
         Supports auto-negotiation: Yes
         Advertised link modes:  10baseT/Half 10baseT/Full
                                 100baseT/Half 100baseT/Full
                                 1000baseT/Full
         Advertised pause frame use: No
         Advertised auto-negotiation: Yes
         Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                              100baseT/Half 100baseT/Full
         Link partner advertised pause frame use: Symmetric
         Link partner advertised auto-negotiation: Yes
         Speed: 100Mb/s
         Duplex: Full
         Port: MII
         PHYAD: 4
         Transceiver: external
         Auto-negotiation: on
         Current message level: 0x000000ff (255)
                                drv probe link timer ifdown ifup rx_err 
tx_err
         Link detected: no
root at OpenWrt:/# ethtool eth1
Settings for eth1:
Cannot get device settings: No such device
         Current message level: 0x000000ff (255)
                                drv probe link timer ifdown ifup rx_err 
tx_err
         Link detected: yes

###########################################################################

Both ports are working, but I just took the vendor source code...

In case you have any suggestion to make the initialization more 
"correct" drop me a mail, I will test your it!

Best
Christian
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list