Hi,
When did you download your pre-build image?
Latest Build is from: 2015_03_19
Linux SHA:120acb20f29451f747d692300e4ba79ea49239a4
Linux branch:2014_R2
Linux repository:https://github.com/analogdevicesinc/linux.git
HDL SHA:f3600b26a0c9f25ebaa8eaeb5288f81e66f13035
HDL branch:hdl_2014_r2
HDL repository:https://github.com/analogdevicesinc/hdl.git
See here: AD-FMCOMMS2-EBZ Quick Start Guide [Analog Devices Wiki]
The SGMII setup is a bit strange.
There is an external PHY connected via SGMII to the axi_ethernet core.
The core also features an internal PHY Gig PCS/PMA which translates SGMII into GMII.
This internal PHY comes out of reset with the PHY isolation bit set. (this none standard)
(see: Gigabit Ethernet PCS/PMA Management Registers).
The fix is that we need to register 2 phy devices. The external Marvell using the Marvell phy driver, and the generic driver for the internal phy. For the internal phy we need to register a register fixup as well to clear the isolation bit.
This works pretty well for me: Auto-negotiation works see below:
Starting logging: OK
Starting network...
Starting network...
udhcpc (v1.23.1) started
net eth0: Promiscuous mode disabled.
net eth0: Promiscuous mode disabled.
Sending discover...
xilinx_axienet 40e00000.network eth0: Link is Down
Sending discover...
xilinx_axienet 40e00000.network eth0: Link is Up - 1Gbps/Full - flow control off
Sending discover...
Sending discover...
Sending select for 10.44.2.113...
Lease of 10.44.2.113 obtained, lease time 86400
deleting routers
adding dns 10.32.51.110
adding dns 10.64.53.110
Segmentation fault
Starting sshd: OK
Starting IIO Server Daemon OK
Welcome to Buildroot
buildroot login: root
Password:
# ping 10.44.2.45
PING 10.44.2.45 (10.44.2.45): 56 data bytes
64 bytes from 10.44.2.45: seq=0 ttl=64 time=3.375 ms
64 bytes from 10.44.2.45: seq=1 ttl=64 time=1.601 ms
64 bytes from 10.44.2.45: seq=2 ttl=64 time=1.514 ms
^C
--- 10.44.2.45 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.514/2.163/3.375 ms
# xilinx_axienet 40e00000.network eth0: Link is Down
xilinx_axienet 40e00000.network eth0: Link is Up - 100Mbps/Full - flow control off
# ping 10.44.2.45
PING 10.44.2.45 (10.44.2.45): 56 data bytes
64 bytes from 10.44.2.45: seq=0 ttl=64 time=2.409 ms
64 bytes from 10.44.2.45: seq=1 ttl=64 time=1.865 ms
64 bytes from 10.44.2.45: seq=2 ttl=64 time=1.521 ms
^C
--- 10.44.2.45 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.521/1.931/2.409 ms
#
There has been a different issue in the previous builds.
The interrupt sensitivity for some of the system interrupts, were defaulted to edge triggered while they were level sensitive. This has caused DMA lockups with the AXI-DMAC and poetentially other system freezes.
Please try again the latest builds.
-Michael