Hello,
I am using LinuxPTP on two LS1043 boards. I can see good results when running as Hardware timestamping mode. And I thought I could also use software timestamping.
But when I try to use SW timestamping mode with the "-S" option, it fails:
[root@OpenIL:~]# ptp4l -i eth0 -m -S
ptp4l[15.267]: interface 'eth0' does not support requested timestamping mode
failed to create a clock
And the ethtool shows:
[root@OpenIL:~]# ethtool -T eth0
Time stamping parameters for eth0:
Capabilities:
hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none (HWTSTAMP_FILTER_NONE)
all (HWTSTAMP_FILTER_ALL)
Obviously, there are missing capabilities about SW timestamping(SOF_TIMESTAMPING_..._SOFTWARE).
Does the LinuxPTP on LS1043 board support the software timestamping?
Or is there any change or support of Linux Kernel configuration need for SW timestamping?
Or it's a driver problem?
Thank you for any help!
Hello Jason yang,
In the default Kernel configuration file, CONFIG_PTP_1588_CLOCK_DPAA is not enabled, the software timestamping is used by default.
root@ls1043ardb:~# ethtool -T fm1-mac1
Time stamping parameters for fm1-mac1:
Capabilities:
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------