Does anyone had been tried to enable the HW timestamp on Linux? I try to fix the driver 1.1.19v on Ubuntu 10.4 according to datasheet but no luck. Below is my senerio:
TEST CASE & QUESTION:
Anyone, please hint me if you have answer :), i would like to share for opensource community as soon as i merge it with ptpv2d.
Hello, I've fiddled with hw time stamping on Kawela and Barton Hills cards, and I'm intererested in your ptpv2 daemon implementation. My project was an untergraduate laboratory with ptpd. Initially I tried to refit the v2 version with hw timestamping, but when i started the original code was far from perfect so I decided to finish the v1 daemon instead. I will post the new code till the end of summer (on sf.net). Later I want to benchmark the different versions under various conditions. Any reply would be appreciated :)
i could enable hw timestamp function on my 82574 GbE NIC, just do the folloing step that u have known:
Set RXCFGL to 0x0800(IPV4) or 0x88F7 (ieee1588 ethertype), V2 messageID set to 0x0(SYNC packet) ----------------> not really needed, hw has reset valueSet RXUDP to 0x013F (port 319) ----------> not really needed, hw has reset valueSet RXCTL to 0x14 ----------> enable hwtstamp function, and select '010' mode(V2 event message)Config TIMINCA Config SYSTIMH & SYSTIML Enable TSYNCRXCTL and select modeSend SYNC packet from ieee1588 devices
when u complish the initialization work, u colud read bit 0 in RXCTL register, it indicate a hw timestamp has been taken, then u could read RXSTMPL & RXSTMPH registers, good luck.