Hi Wolfgang,
Thank you for your quick response.
I was not able to check with your SD card image as the access to that link is
blocked in our company's network.
The DP83640 EVMs we are using are different from one you had used as per the
document. So I doubt whether the SD card image can be used as it is.
I followed the steps mentioned in the shared document. However I am seeing
similar issues as before
I am using Petalinux 2016.2 version with Kernel version 4.4. This has option
for emacps driver. I have enabled emacps and disabled the macb driver.
I have a few questions:
1. The configuration for one-step sync timestamp insertion in DP83640 (Page
5, register 0x0016, bit 15) is getting cleared on running ptp4l. Is there some
option I need to provide in the ptp4l command to run one-step mode?
2. Can you please clarify how is ptp4l fetching the hardware timestamps from
the PHY? Is it polling for some event hardware interrupts to read the timestamp
registers of PHY? Want to understand if I missed routing some signals in Vivado.
3. If I want to enable software based timestamping options as well, which
kernel options need to be enabled?
Following are the timestamping capabilities indicated with current setup. They
seem to be same as the ones in your post
Time stamping parameters for eth0:
Capabilities:
hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
one-step-sync (HWTSTAMP_TX_ONESTEP_SYNC)
Hardware Receive Filter Modes:
none (HWTSTAMP_FILTER_NONE)
ptpv1-l4-event (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
ptpv2-l4-event (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
ptpv2-l2-event (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
ptpv2-event (HWTSTAMP_FILTER_PTP_V2_EVENT)
Regards,
Anmol
From: Wolfgang Hennig <[email protected]>
Sent: Tuesday, March 30, 2021 10:32 PM
To: Dhanuka, Anmol <[email protected]>; [email protected]
Subject: [EXTERNAL] Re: [Linuxptp-users] ptp4l gives tx timestamp polling
timeout issue
Hi Amol,
It has been a long time since I used this. I think I saw that error also at
some point. I looked through my notes but could not find any detail on it.
I attach a summary that may give a bit more detail that the old thread.
I later upgraded the Zynq to Ubuntu 18 and found that Xilinx removed the emacps
driver at some point; the last kernel to include it was release 17.4 and things
worked ok with that.
While unused, the functionality is still included in the system we released
publicly. An SD card image is here:
https://www.mediafire.com/file/u24pn07ggbjvw69/PN_U18_8GB_STD_022226.img/file
You might be able to boot your Zedboard with this; I used the MicroZed.
I can also provide the updated kernel functions upon request.
Best regards,
Wolfgang
On 3/29/2021 6:09 AM, Dhanuka, Anmol via Linuxptp-users wrote:
Hi,
I am using TI DP83640 PHY with Xilinx Zedboard (with Ubuntu 16.04 running on it)
I have followed the steps mentioned in the following mail thread to configure
the Xilinx_emacps drivers to detect HW timestamps from PHY:
https://linuxptp-users.narkive.com/i5cijFRH/linuxptp-on-zynq-with-dp83640
However on running the following command "ptp4l -P -i eth0 -f ./gPTP.cfg -m", I
get the following error:
ptp4l[265621.845]: selected /dev/ptp0 as PTP clock
ptp4l[265621.900]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[265621.900]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[265623.000]: timed out while polling for tx timestamp
ptp4l[265623.001]: increasing tx_timestamp_timeout may correct this issue, but
it is likely caused by a driver bug
ptp4l[265623.001]: port 1: send peer delay request failed
ptp4l[265623.001]: port 1: LISTENING to FAULTY on FAULT_DETECTED
(FT_UNSPECIFIED)
ptp4l[265639.120]: port 1: FAULTY to LISTENING on FAULT_CLEARED
I tried increasing the "tx_timestamp_timeout" to 10ms, 100ms. But it is not
resolving the error
Am I missing any step?
Regards,
Anmol
_______________________________________________
Linuxptp-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/linuxptp-users
--
Wolfgang Hennig, Ph.D.
XIA LLC
31057 Genstar Rd.
Hayward CA 94544
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users