Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:linuxdsp:docs:linux_yocto_distrubution_and_applications:linuxptp [15 Jul 2020 07:42] – [Run Example] Sunny Fengresources:tools-software:linuxdsp:docs:linux_yocto_distribution_and_applications:linuxptp [22 Sep 2020 11:14] (current) – [Device tree configuration] Sunny Feng
Line 46: Line 46:
 \\ \\
 ==== Device tree configuration ==== ==== Device tree configuration ====
-The timestamps that are the basis of PTP can be acquired with greater accuracy when they are captured by the ethernet PHY hardware. The RMII PHY interface supports hardware timestamps but the RGMII PHY interface does not. In order to obtain a higher accuracy of time synchronization the RMII PHY is the better choice, even though this means being limited to 10/100 Mbps operation+The timestamps that are the basis of PTP can be acquired with greater accuracy when they are captured by the ethernet PHY hardware. The PHY interface can support hardware timestampsthe default phy-mode is RGMII. 
-The phy-mode can be changed to "rmii" in the device tree header in the linux kernel source arch/arm/boot/dts/sc589-ezkit.dts other board specific sc5xx.dts files. Run "//**bitbake linux-adi -c devshell**//" to enter into linux kernel source code.+ 
 +The phy-mode also can be changed to "rmii" in the device tree header in the linux kernel source arch/arm/boot/dts/sc589-ezkit.dts and other board specific sc5xx.dts files. 
 <WRAP info> <WRAP info>
 ... : ellipsis, means other properties in EMAC0 node stay the same\\ ... : ellipsis, means other properties in EMAC0 node stay the same\\
Line 120: Line 121:
 === 2) Slave === === 2) Slave ===
 <code> <code>
- hwstamp_ctl -i eth0 -r 6 -t 1+# hwstamp_ctl -i eth0 -r 6 -t 1
 tx_type 1 tx_type 1
 rx_filter 6 rx_filter 6
- ptp4l -i eth0 -s & +# ptp4l -i eth0 -s & 
- date+# date
 Mon Jan  1 00:02:24 UTC 2007 Mon Jan  1 00:02:24 UTC 2007
- phc2sys -s /dev/ptp0 -O 0 & +# phc2sys -s /dev/ptp0 -O 0 & 
- date+# date
 Mon Jan  1 00:02:24 UTC 2007 Mon Jan  1 00:02:24 UTC 2007
 ... ...
- date+# date
 Fri Jan  1 13:30:58 UTC 2010 Fri Jan  1 13:30:58 UTC 2010
 Date on the slave board is 2007.1.1-00:02:24 before synchronization, and changes to 2010.1.1-13:30:58 after a few seconds of synchronization with the master. Date on the slave board is 2007.1.1-00:02:24 before synchronization, and changes to 2010.1.1-13:30:58 after a few seconds of synchronization with the master.
Line 144: Line 145:
 \\ \\
 ---- ----
-**Back to** [[resources/tools-software/linuxdsp/docs/linux_yocto_distrubution_and_applications/start|Yocto Linux Distrubution and Applications]]+**Back to** [[resources:tools-software:linuxdsp:docs:linux_yocto_distribution_and_applications:start|Yocto Linux Distrubution and Applications]]
resources/tools-software/linuxdsp/docs/linux_yocto_distribution_and_applications/linuxptp.txt · Last modified: 22 Sep 2020 11:14 by Sunny Feng