Hi experts:
I am trying to use ptp4l on LS1043. I use the command in the OpenIL User Guide, but what i got is:
[root@OpenIL:~]# ptp4l -i eth0 -m -p /dev/ptp0 -f /etc/ptp4l_default.cfg
ptp4l[90.468]: interface 'eth0' does not support requested timestamping mode
failed to create a clock
And even with "-S", just for software timestamp, the output stays the same. And the ethtool shows:
[root@OpenIL:~]# ethtool -T eth0
Time stamping parameters for eth0:
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
The user guide shows Linux PTP stack supports 1043, so why can't i use LinuxPTP?
Could you please help me?
Regards,
Jason
Thanks!
yipingwang larspettereliassen
Finally, LinuxPTP can work as Hardware timestamping mode now. And I thought I could also use software timestamping.
But when I try to use SW timestamping mode with "-S" option, it still fails.
[root@OpenIL:~]# ptp4l -i eth0 -m -S
ptp4l[15.267]: interface 'eth0' does not support requested timestamping mode
failed to create a clock
[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, my understanding is wrong. And I notice the ethtool didn't show the software capabilities now, different from my first post.
Does LS1043 board supports the software timestamping?
Is there some changes or support of Linux Kernel configuration need for option -S?
I am tryimg to use ptp4l with LS1043, facing same issues withought any change as stated in initial query.
May i know what fix you applied for hardware timestamping support in LS1043 with ptp4l.
Somewhere it is stated that LS1043 doesnt support linuxptp. Only supports ptpd. Is that True?
Expecting some clarity on this, as I am stuck at this point.
Could you please help me with this?
Thanks in advance.
I think the driver you are using does not implement the ethtool op .get_ts_info. While the driver supports the functionality, it does not report that it does by implementing .get_ts_info. linuxptp queries the driver via this interface.
Only the old drivers like gianfar implement .get_ts_info in lsdk linux. The dpaa driver in vanilla linux added .get_ts_info a few months ago. You could probably just get that particular fix from there.
Hello Jason yang,
In Linux Kernel configuration file, please configure the following Kernel options related with DPAA as PTP clock support.
CONIFG_PTP_1588_CLOCK=y
CONFIG_PTP_1588_CLOCK_DPAA=y
Thanks,
Yiping
Hello Yiping,
Thanks for your reply.
I didn't find the options you said.
The OpenIL configurations I used is "nxp_ls1043ardb-64b_defconfig", which is provided as a basic configuration for 1043 by you.
So, from what I understand, it is already supported PTP, right?
But why can't I use it?
Thanks,