[Linuxptp-users] Linuxptp steps for compilation and establishing ptp based communication
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Ronex D. <ron...@ya...> - 2014-07-29 06:57:10
|
Hello, I want to compile linuxptp for linux and ARM host, But while compiling over linux it throws following errors: grep: /usr/include/linux/net_tstamp.h: No such file or directory gcc -Wall -DVER=1.4-00063-gbdb6a35 -c -o ptp4l.o ptp4l.c ptp4l.c:26:30: error: linux/net_tstamp.h: No such file or directory ptp4l.c: In function ‘main’: ptp4l.c:343: error: ‘SOF_TIMESTAMPING_TX_SOFTWARE’ undeclared (first use in this function) ptp4l.c:343: error: (Each undeclared identifier is reported only once ptp4l.c:343: error: for each function it appears in.) ptp4l.c:344: error: ‘SOF_TIMESTAMPING_RX_SOFTWARE’ undeclared (first use in this function) ptp4l.c:345: error: ‘SOF_TIMESTAMPING_SOFTWARE’ undeclared (first use in this function) ptp4l.c:348: error: ‘SOF_TIMESTAMPING_TX_HARDWARE’ undeclared (first use in this function) ptp4l.c:349: error: ‘SOF_TIMESTAMPING_RX_HARDWARE’ undeclared (first use in this function) ptp4l.c:350: error: ‘SOF_TIMESTAMPING_SYS_HARDWARE’ undeclared (first use in this function) ptp4l.c:356: error: ‘SOF_TIMESTAMPING_RAW_HARDWARE’ undeclared (first use in this function) make: *** [ptp4l.o] Error 1 Can anyone please share the steps to compile linuxptp, and how it's supposed to use ? I need steps for cross-compilation for arm architecture also. Further please also suggest that if I need to establish ptp master/slave communication between two host in LAN, what are the steps that I need to follow for this. Regards,Ronex |