How to enable hardware time-stamping function in beaglebone ?

2,036 views
Skip to first unread message

sun19...@gmail.com

unread,
May 29, 2014, 4:56:10 AM5/29/14
to beagl...@googlegroups.com

I know that AM335x supports IEEE 1588 hardware time-stamping function,
but I can only see beaglebone support software timestamping by entering # ethtool -T eth0.

I want to implement PTP with Linuxptp : http://linuxptp.sourceforge.net/
This website says I must enable CPTS driver for AM335x, and somebody told me that I need to make kernel options enable, which are CONFIG_PTP_1588_CLOCK  and CONFIG_TI_CPTS .


But I don't know how to get started with it... I am using Angstrom, kernel version 3.8.
Could somebody teach me how to enable hardware timestamping function in an easy way? Thanks!

David M.

unread,
Jun 1, 2014, 2:04:29 PM6/1/14
to beagl...@googlegroups.com, sun19...@gmail.com


On Thursday, May 29, 2014 4:56:10 AM UTC-4, sun19...@gmail.com wrote:
I want to implement PTP with Linuxptp : http://linuxptp.sourceforge.net/
This website says I must enable CPTS driver for AM335x, and somebody told me that I need to make kernel options enable, which are CONFIG_PTP_1588_CLOCK  and CONFIG_TI_CPTS .
 
CONFIG_PTP_1588 is found under Device Drivers/PTP Clock Support.
CONFIG_TI_CPTS is found under Device Drivers/Network Device Support/Ethernet driver support/Texas Instruments (TI) devices.

These configuration options also need to be enabled:  CONFIG_TI_CPSW (TI CPSW Switch Support), and NETWORK_PHY_TIMESTAMPING.

You also need PPS support.  I already have NTPD on my Beaglebone so this is a good starting configuration for PTP.  I have yet to try LinuxPTP itself, but I will bring up a new kernel with these options and will see if I can run this.  I am totally new to PTP myself, but I have run an NTP server for several years, and using the Beaglebone for this purpose since February..

sun19...@gmail.com

unread,
Jun 2, 2014, 3:06:04 PM6/2/14
to beagl...@googlegroups.com, sun19...@gmail.com
Hi, David,
I am using PTP by NTP assisting now(because I can't enable IEEE1588 function on my BB).
I have tried to find which kernel support CPTS and PTP CLOCK, but it seems there are some patches only (which I posted above)
That's what I prefer to enable IEEE1588 with patch, but I don't know how to use this patch here : https://dev.openwrt.org/changeset/38692
Could you give me an easy tutorial to use it? Thanks!

David M.於 2014年6月2日星期一UTC+8上午2時04分29秒寫道:
Reply all
Reply to author
Forward
0 new messages