Tool/software: Linux
Using custom board with:
Zynq-7000
Cadence macb driver
TI DP83867 chip/driver
Linux 4.9.0
The TX packets are getting out, but no RX packets received by the operating system. I am working with playing with the timing delays in the device tree.....ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>
Anyone have issues receiving packets? Below is output from my device tree and linux commandline displaying rx errors.
/*&adc{*/
/* status="disabled";*/
/*};*/
&gem0 {
phy-handle = <ðernet_phy>;
status = "okay";
phy-mode = "rgmii-id";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gem0_default>;
phy-reset-gpio = <&gpio0 11 0>;
phy-reset-active-low;
xlnx,eth-mode = <0x1>;
fixed-link {
max-speed = <1000>;
ull-duplex;
};
/delete-node/ ethernet-phy@7;
mdio {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
ethernet_phy: ethernet-phy@c {
compatible = "ethernet-phy-ieee802.3-c22";
device_type = "ethernet-phy";
reg = <0xc>;
ti,rx-internal-delay = <0x8>;
ti,tx-internal-delay = <0x8>;
ti,fifo-depth = <0x01>;
ti,min-output-impedance;
ti,dp83867-rxctrl-strap-quirk;
status = "okay";
};
};
};
eth0 Link encap:Ethernet HWaddr 00:0a:35:00:1e:29
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20a:35ff:fe00:1e29/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:2242 dropped:0 overruns:0 frame:2242
TX packets:2024 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:223326 (218.0 KiB)
Interrupt:29 Base address:0xb000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:1032 (1.0 KiB) TX bytes:1032 (1.0 KiB)
root@xilinx-zc706-2017_2:~# ethtool -S eth0
NIC statistics:
tx_octets: 6018415
tx_frames: 92441
tx_broadcast_frames: 136
tx_multicast_frames: 14
tx_pause_frames: 0
tx_64_byte_frames: 90410
tx_65_127_byte_frames: 1897
tx_128_255_byte_frames: 0
tx_256_511_byte_frames: 134
tx_512_1023_byte_frames: 0
tx_1024_1518_byte_frames: 0
tx_greater_than_1518_byte_frames: 0
tx_underrun: 0
tx_single_collision_frames: 0
tx_multiple_collision_frames: 0
tx_excessive_collisions: 0
tx_late_collisions: 0
tx_deferred_frames: 0
tx_carrier_sense_errors: 0
rx_octets: 50851228
rx_frames: 90624
rx_broadcast_frames: 215
rx_multicast_frames: 0
rx_pause_frames: 0
rx_64_byte_frames: 85
rx_65_127_byte_frames: 50
rx_128_255_byte_frames: 8
rx_256_511_byte_frames: 45
rx_512_1023_byte_frames: 90436
rx_1024_1518_byte_frames: 0
rx_greater_than_1518_byte_frames: 0
rx_undersized_frames: 0
rx_oversize_frames: 0
rx_jabbers: 0
rx_frame_check_sequence_errors: 2249
rx_length_field_frame_errors: 0
rx_symbol_errors: 2249
rx_alignment_errors: 0
rx_resource_errors: 0
rx_overruns: 0
rx_ip_header_checksum_errors: 0
rx_tcp_checksum_errors: 0
rx_udp_checksum_errors: 0