[Linuxptp-users] Need help : new to PTP testing
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Rayagond K. <ray...@gm...> - 2013-01-25 10:58:49
|
Hi All, I am new to PTP implementation and testing. So far I have done following with the help of Linux doc and browsing ( http://linuxptp.sourceforge.net/), 1. I referred Linux doc and reference driver and implemented PTP V1 and V2 in MAC driver - MAC driver is able to handle PTP packets, it can pass the transmitted/received packets timestamp value to stack. 2. I am able to write PTP Hardware Clock (PHC) driver and integrate with my MAC driver - Through PHC driver I have registered all the clock API's like gettime/settime/adjtime etc to ptp clock driver or ptp stack. My MAC has internal clock source, so I am registering the PHC driver as part of MAC driver itself. 3. I build Linux kernel with version 3.1.1 and enabled all the PTP related kernel configurations like CONFIG_PPS, CONFIG_NETWORK_PHY_TIMESTAMPING and PTP_1588_CLOCK. 4. After loading MAC driver I can see /dev/ptp0 entry for my PHC driver. 5. For testing PTP, I downloaded the ptp application from - git clone git://git.code.sf.net/p/linuxptp/code, and compiled the ptp it and installed in my system. Now I can run the ptp application. 6. I ran following commands ... $ptp4l -i eth0 -p /dev/ptp0 ie I choose my system ad PTP master and it is sending the SYNC messages and all. I am not getting how to use -f option and what is the configuration file etc. I don't have clear idea on how to test the PTP, please give me some suggestions to go ahead. Thank you all in advance for any help. --------------- Rayagond |