OpenWrt Forum Archive

Topic: Support for AP120C (DB120 based)

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

I have an ap102c that is based on DB120 board and I start to porting OpenWrt on it.
I start flashing it using the db120 image with success and all the process is documented on the wiki at the link http://wiki.openwrt.org/toh/alfa.network/ap120c

Now the major problem that I found is with the network wired support.

I add this post on forum and I will link it to the wiki page to track support progress on this platform and involve people interested to this topic in the developement.

---
CM

I have some news on this board.
On the wiki I paste the OpenWrt bootlog based when I flash the db120 image, here is the bootlog http://wiki.openwrt.org/toh/alfa.networ … rt_bootlog

As you can see in bootlog the phy interface is not recognized

[    0.820000] libphy: ag71xx_mdio: probed
[    0.820000] libphy: ag71xx_mdio: probed
[    1.380000] ag71xx ag71xx.0: no PHY found with phy_mask=00000001
[    1.930000] ag71xx-mdio.1: Found an AR934X built-in switch
[    2.970000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.980000] TCP: cubic registered

I cannot undestand why the iface probe failed. Any idea?

here some debug info

root@OpenWrt:/sys/devices/platform/ag71xx-mdio.0/ag71xx-mdio.0:05# swconfig list
Found: switch0 - eth0
root@OpenWrt:~# swconfig dev switch0 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:down
Port 4:
        pvid: 0
        link: port:4 link:down
Port 5:
        pvid: 0
        link: port:5 link:down
VLAN 0:
        vid: 0
        ports: 0 1 2 3 4 5
root@OpenWrt:/sys/devices/platform/ag71xx-mdio.0/ag71xx-mdio.0:05# cat phy_id
0x004dd072


The eth0 port appear to be connected to switch0 internally at the SoC but no traffic flow probably because the internale switch canot probe the external phy chip AR8035-A

The discussion might have continued from here.