The following from the above answer seems to be outdated in Kernel 3.17 & ptp4l version 1.7
ptp4l -A -4 -H -m -i eth0 &
echo 1 > /sys/class/ptp/ptp0/pps_enable
Or I may have other issues!
************ My problem is that /dev/pps0 is never created
make menuconfig I add in
-*- PPS support │ │
[*] PPS debugging messages │ │
*** PPS clients support *** │ │
<M> Kernel timer client (Testing client, use for debug) │ │
<M> PPS line discipline │ │
<M> PPS client using GPIO │ │
*** PPS generators support *** │ │
PTP is autoconfigured
Only when I insmod pps-ktimer.ko does it create a device.
kernel config options for PTP show the following
#
# PTP clock support
#
CONFIG_PTP_1588_CLOCK=y
CONFIG_DP83640_PHY=y
CONFIG_PINCTRL=y
#
# PPS support
#
CONFIG_PPS=y
CONFIG_PPS_DEBUG=y
DTB includes the following
fec {
pinctrl_enet_event0_out: enet_event0_out {
fsl,pins = <
MX6QDL_PAD_GPIO_19__ENET_1588_EVENT0_OUT 0x100d1
>;
};
};
When the kernel boots the following is listed
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
So question is "what registers with the pps device to create the /dev/pps0