Re: [Linuxptp-users] Linuxptp steps for compilation and establishing ptp based communication
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2014-07-29 07:18:54
|
On Tue, Jul 29, 2014 at 02:43:54PM +0800, Ronex Dicapriyo wrote: > 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 You need the kernel headers installed, and the kernel must be v3.0 or newer. See the sections, "System Requirements" and "Installation" in the README file. > I need steps for cross-compilation for arm architecture also. To cross compile, set the environment variables CROSS_COMPILE and KBUILD_OUTPUT. You set these in exactly the same way as when you cross compiled your kernel. > 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. On the master host: ptp4l -m -q -i eth0 On the slave host: ptp4l -m -q -i eth0 -s Thanks, Richard |