If in the log the message failed to create a clock appears, it likely means the required kernel configuration bits were not enabled.
I have been having a hard time getting the RPi 3 to run PTP and get the PPS output.
I used the Raspbian Stretch Lite (2018-10-09) and for the Kernel I used the rpi-4.14.y.
I did the following
Then I applied the patches with some minor changes to make it work for this verion
patch /patches/0001-pps-add-gpio-PPS-signal-generator.patch
patch /patches/0002-add-DT-overlay-for-pps-gen-gpio-generator.patch
followed by:
make bcm2709_defconfig
make olddefconfig
make -j4 zImage modules dtbs
Would you please elaborate on this:
If in the log the message failed to create a clock appears, it likely means the required kernel configuration bits were not enabled.
I have been having a hard time getting the RPi 3 to run PTP and get the PPS output. I used the Raspbian Stretch Lite (2018-10-09) and for the Kernel I used the rpi-4.14.y. I did the following
sudo apt update sudo apt install ethtool linuxptp sudo apt install git bc bison flex libssl-dev
git clone https://github.com/raspberrypi/linux git checkout rpi-4.14.y git fetch
sed -i -e 's/time_stamping.*$/time_stamping\t\tsoftware/' /etc/linuxptp/ptp4l.conf
then
sudo apt install git bc libncurses5-dev cd linux KERNEL=kernel7 make bcm2709_defconfig make -j4 zImage modules dtbs
After waiting I did the following
echo 'CONFIG_NETWORK_PHY_TIMESTAMPING=y' >> .config echo 'CONFIG_PTP_1588_CLOCK=y' >> .config echo 'CONFIG_PPS_GENERATOR_GPIO=y' >> .config
Then I applied the patches with some minor changes to make it work for this verion patch/patches/0001-pps-add-gpio-PPS-signal-generator.patch
patch /patches/0002-add-DT-overlay-for-pps-gen-gpio-generator.patch
followed by:
make bcm2709_defconfig make olddefconfig make -j4 zImage modules dtbs
and finally:
sudo make modules_install sudo cp arch/arm/boot/dts/.dtb /boot/ sudo cp arch/arm/boot/dts/overlays/.dtb* /boot/overlays/ sudo cp arch/arm/boot/dts/overlays/README /boot/overlays/ sudo cp arch/arm/boot/zImage /boot/$KERNEL.img
Then after reboot I have the following:
pi@raspberrypi:~ $ ethtool -T eth0 Time stamping parameters for eth0: Capabilities: software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE) software-receive (SOF_TIMESTAMPING_RX_SOFTWARE) software-system-clock (SOF_TIMESTAMPING_SOFTWARE) PTP Hardware Clock: none Hardware Transmit Timestamp Modes: none Hardware Receive Filter Modes: none
but I still have
failed to create a clock in the syslog and I cannot see any PPS output on pin 18.
Would you please recommend me any change or modifications.
Thank you in advance