On Tue, Jul 19, 2016 at 10:42:20AM +0200, Baya Oussena wrote:
> I tried to compile the testptp.c but failed. Is there any one from you who
> has a code I could adapt to my need or is it as sample as just opening and
> reading /dev/ptp0 driver.
The testptp.c program is the example for the PHC API. It should
compile without any trouble.
Here is how I would do it, taking the beagle bone as an example:
export ARCH=arm
export
CROSS_COMPILE=/opt/x-tools/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-
export KBUILD_OUTPUT=/home/richard/kernel/beagle
# compile the kernel
make
# install the headers under ${KBUILD_OUTPUT}
make headers_install
# compile the test program
make -C Documentation/ptp -f testptp.mk
Easy, right?
Thanks,
Richard
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users