Friends,
I made the required changes in EZSDK 5.03.00.09 kernel and built the ptpd2 to use the cpts h/w time-stamping.
here is the link I followed,
http://processors.wiki.ti.com/index.php/DM814x_AM387x_IEEE_1588_Application_Notes
http://processors.wiki.ti.com/index.php/DM814x_AM387x_Ethernet_Switch_User_Guide
both the links seems to be talking about the same thing.
I am having two DM8148 EVMs, one invokes ptpd2 as a master and second one as a slave,
Note: Both the EVM's are connected directly through CAT5 network cable(without any ethernet switch in between)
#########MASTER EVM messages#######################################################
MASTER MAC ID is: 90:D7:EB:C4:3F:DD
root@dm814x-evm:/usr/share/ti/data/ptpv2d# ./ptpd2 -ceD
timestamp, state, clock ID, one way delay, offset from master, slave to master, master to slave, drift
2011-11-11 13:52:17:595876, init(ptpd notice) Using Linux PTP Hardware Clock API
2011-11-11 13:52:17:601260, lstn
2011-11-11 13:52:29:601082, mst (ID:90d7ebfffec43fdd)
#########SLAVE EVM messages#########################################################
root@dm814x-evm:/usr/share/ti/data/ptp# ./ptpd2 -cegD
timestamp, state, clock ID, one way delay, offset from master, slave to master, master to slave, drift
2011-11-11 02:33:00:347051, init(ptpd notice) Using Linux PTP Hardware Clock API
2011-11-11 02:33:00:352382, lstn
2011-11-11 02:33:17:666212, slv, 90d7ebfffec43fdd/01, 0.000000000, 0.000000000, 0.000000000, 0.000000000, 0(ptpd notice) adjusted system clock by -68s -719382256ns
2011-11-11 02:33:19:666387, slv, 90d7ebfffec43fdd/01, 0.000000000, -68.719382256, 0.000000000, -68.719382256, 0
2011-11-11 02:33:21:666281, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000001844, 0.000000000, 0.000003688, -1
2011-11-11 02:33:23:666283, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000004252, 0.000000000, 0.000004816, -5
2011-11-11 02:33:25:666274, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000005130, 0.000000000, 0.000005444, -10
2011-11-11 02:33:27:666278, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000005674, 0.000000000, 0.000005904, -15
2011-11-11 02:33:29:666270, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006068, 0.000000000, 0.000006232, -21
2011-11-11 02:33:31:666276, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006358, 0.000000000, 0.000006484, -27
2011-11-11 02:33:33:666261, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006570, 0.000000000, 0.000006656, -33
2011-11-11 02:33:35:666275, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006712, 0.000000000, 0.000006768, -39
2011-11-11 02:33:37:666267, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006804, 0.000000000, 0.000006840, -45
2011-11-11 02:33:39:666272, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006870, 0.000000000, 0.000006900, -51
2011-11-11 02:33:41:666273, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006910, 0.000000000, 0.000006920, -57
2011-11-11 02:33:43:666267, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006922, 0.000000000, 0.000006924, -63
2011-11-11 02:33:45:666266, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006928, 0.000000000, 0.000006932, -69
2011-11-11 02:33:47:666258, slv, 90d7ebfffec43fdd/01, 0.000000000, -0.000006926, 0.000000000, 0.000006920, -75
2011-11-11 02:33:48:666130, slv, 90d7ebfffec43fdd/01, 0.000000000, 0.000002052, 0.000000000, 0.000011024, -73
with this print, it looks like slave is able to synchronize its clock after drifting several hundred nano seconds(you can see the drift is changing on slave from 0 to -73 nano sec? ),
In next step, I used Lab-X Titanium 411 Ethernet switch and connected both the EVM's on this switch,
this time, Ethernet switch was acting as a grand master clock, hence I invoked ptpd2 command as a slave on both the EVMs.
but the problem is, both the slaves are complaining of an unknown Ethernet Packet(will add the exact print message in my next post).
It looks like my Ethernet switch and EVM's are unable to understand each other's message(raw ethernet packet),
can some one tell me the difference b/w ptpd2 and ptpv2d
Any idea about using ptpv2d from http://code.google.com/p/ptpv2d/ for our DM8148 EVM??
ptpv2d from code.google.com seems to support 1588 h/w time-stamping only for MPC831x processor.
has anyone tried using DM8148 h/w time-stamp through ptpv2d?
It would be interesting to know if anyone already working on this stuff, please share your views,
thanks and best wishes,
Albert.