AnsweredAssumed Answered

在BF609平台上,关于blackfin-buildroot-2013R1-RC2的PTP配置问题

Question asked by bander on Apr 21, 2014
Latest reply on Apr 21, 2014 by sonic

在blackfin-buildroot-2013R1-RC2 的linux-menuconfig里面,关于PTP的相关配置为什么找不到[*] STMMAC ieee1588 hw timestamp support选项,如下所示配置(黄色部分在2013R1版本中缺失),编译出uImage并下载到开发板上后,系统启动后,运行hwstamp_ctl 时会提示eth0: No support for HW time stamping,请问,在2013R1版本里面,PTP选项中 ieee1588 hw timestamp 在哪里配置?

 

To enable hardware timestamp support in bf60x kernel config:

Device Drivers  -->

   [*] Network device support  --->

       [*] Ethernet (10 or 100Mbit) ---> 

           [*] STMicroelectronics devices

           [*] STMicroelectronics 10/100/1000 Ethernet driver

               [*] STMMAC platform bus support

               [*] STMMAC ieee1588 hw timestamp support

 

2013R1版本内核上,运行hwstamp_ctl有问题:
root:/> date

 

Mon Jan  1 00:03:54 UTC 2007

root:/> date 010101012014

Wed Jan  1 01:01:00 UTC 2014

root:/> date

Wed Jan  1 01:01:04 UTC 2014

root:/> testptp -g

clock time: 0.000000000 or Thu Jan  1 00:00:00 1970

root:/> hwstamp_ctl -i eth0 -r 6 -t 1

stmmaceth stmmaceth.0 eth0: No support for HW time stamping

SIOCSHWTSTAMP failed: Operation not supported

tx_type 1

rx_filter 6

root:/> testptp -s

set time okay

root:/> testptp -g

clock time: 1388538146.060528242 or Wed Jan  1 01:02:26 2014

root:/> testptp -g

clock time: 1388538146.060528242 or Wed Jan  1 01:02:26 2014

root:/> testptp -g

clock time: 1388538146.060528242 or Wed Jan  1 01:02:26 2014

root:/> testptp -g

clock time: 1388538146.060528242 or Wed Jan  1 01:02:26 2014

root:/> ptp4l -i eth0

interface 'eth0' does not support requested timestamping mode.

root:/>

2012R2-RC5版本内核上,运行PTP相关程序均正常:

root:/> hwstamp_ctl -i eth0 -r 6 -t 1

tx_type 1

rx_filter 6

root:/> ptp4l -i eth0 -P -2 -s -v

ptp4l[173.847]: selected /dev/ptp0 as PTP clock

ptp4l[173.848]: m

ptp4l[173.850]: port 1: INITIALIZING to LISTENING on INITIALIZE

ptp4l[173.851]: port 0: INITIALIZING to LISTENING on INITIALIZE

ptp4l[174.765]: port 1: new foreign master 001e4c.fffe.010002-2

ptp4l[178.764]: selected best master clock 001e4c.fffe.010002

ptp4l[178.765]: foreign master not using PTP timescale

ptp4l[178.766]: running in a temporal vortex

ptp4l[178.766]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE

ptp4l[180.761]: master offset     -26427 s0 adj      +0 path delay        780

ptp4l[181.760]: master offset     -33032 s0 adj      +0 path delay        781

ptp4l[182.765]: master offset     -39695 s0 adj      +0 path delay        784

ptp4l[183.763]: master offset     -46337 s1 adj      +0 path delay        782

Outcomes