Good morning everyone,

I have trouble getting ptp4l to work on Freescale i.mx6 with 'fec'
supported MAC as a slave.
In one failed case my PHY is BCM54610  -> with the following logs:

SLAVE-end
root@gatebox3:~# ptp4l -H -m -s -i eth0
ptp4l[5870.765]: selected /dev/ptp0 as PTP clock
ptp4l[5870.768]: driver changed our HWTSTAMP options
ptp4l[5870.769]: tx_type 1 not 1
ptp4l[5870.769]: rx_filter 1 not 12
ptp4l[5870.770]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[5870.771]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[5872.686]: port 1: new foreign master 00e04b.fffe.51f245-1
ptp4l[5876.686]: selected best master clock 00e04b.fffe.51f245
ptp4l[5876.686]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[5878.686]: master offset 3188991333 s0 freq +0 path delay 0
ptp4l[5879.686]: master offset 3188991333 s0 freq +0 path delay 0
ptp4l[5880.686]: master offset 3188991333 s0 freq +0 path delay 0
ptp4l[5881.686]: master offset 3188991333 s0 freq +0 path delay 0
ptp4l[5882.687]: master offset 3188991333 s0 freq +0 path delay 0
ptp4l[5883.687]: master offset 3188991333 s0 freq +0 path delay 0
ptp4l[5884.687]: master offset 3188991333 s0 freq +0 path delay 0

In another successful case the pHY is Micrel KSZ9021 RL/RN ->
SLAVE-end
root@sabrelite:~# ptp4l -H -m -i eth0 -s
ptp4l[664.648]: selected /dev/ptp0 as PTP clock
ptp4l[664.651]: driver changed our HWTSTAMP options
ptp4l[664.651]: tx_type 1 not 1
ptp4l[664.651]: rx_filter 1 not 12
ptp4l[664.652]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[664.652]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[665.722]: port 1: new foreign master 00e04b.fffe.51f245-1
ptp4l[669.722]: selected best master clock 00e04b.fffe.51f245
ptp4l[669.723]: foreign master not using PTP timescale
ptp4l[669.724]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[670.723]: master offset -80203908175625 s0 freq +32767998 path delay
11507904
ptp4l[671.723]: master offset -80203940546562 s1 freq +450418 path delay
12655417
ptp4l[673.723]: master offset 5921778 s2 freq +6372196 path delay 5867958
ptp4l[673.724]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[674.723]: master offset 2965854 s2 freq +5192805 path delay 2606170
ptp4l[675.723]: master offset -1009254 s2 freq +2107453 path delay 1606252
ptp4l[676.723]: master offset -2829995 s2 freq -16064 path delay 1369544
ptp4l[677.724]: master offset -2549452 s2 freq -584520 path delay 1132836
ptp4l[678.724]: master offset -1687593 s2 freq -487496 path delay 882099
ptp4l[679.724]: master offset -720246 s2 freq -26427 path delay 429687
ptp4l[680.724]: master offset -262821 s2 freq +214924 path delay 27603
ptp4l[681.724]: master offset -449180 s2 freq -50281 path delay 27603
ptp4l[682.724]: master offset -360700 s2 freq -96555 path delay 17556
ptp4l[683.724]: master offset -224643 s2 freq -68708 path delay 7019

The Linux kernel in use is 3.14.28 with the following parameters:
CONFIG_NETWORK_PHY_TIMESTAMPING=y
CONFIG_PPS=y
CONFIG_PTP_1588_CLOCK=y

Any hints / suggestions I will really appreciate.

best regards
Kasp
------------------------------------------------------------------------------
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to