Accessing ptp timestamp using fec_1588.c driver

取消
显示结果 
搜索替代 
您的意思是: 

Accessing ptp timestamp using fec_1588.c driver

520 次查看
harshitupreti
Contributor I

I am currently working on PTP , and my requirement is that I should access the receive/transmitted timestamp using the ioctl provided in the driver.

Through the socket ioctl (SIOCDEVPRIVATE) , i am able to get the rtc time. But there are three issues I need to solve

i) Whenever I try to use  PTP_GET_TX_TIMESTAMP with ioctl , it always returns 0 in the timestamp field. However, it doesnot return any error value

ii) Whenever I try to use  PTP_GET_RX_TIMESTAMP with ioctl , it returns an error message Resource temporarily unavailable.

iii) Also , is there a way through which an interrupt/notification can be passed to userspace application  whenever I receive a PTP packet.

I have tried this with kernel version 3.0.35 on iMX6q sabrelite board.

标签 (2)
0 项奖励
0 回复数