<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ntpd/gpsd GPS PPS in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Ntpd-gpsd-GPS-PPS/m-p/773609#M120116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know if you are still having a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, can you please share with us the GPS that you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2018 16:36:25 GMT</pubDate>
    <dc:creator>diegoadrian</dc:creator>
    <dc:date>2018-07-02T16:36:25Z</dc:date>
    <item>
      <title>Ntpd/gpsd GPS PPS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ntpd-gpsd-GPS-PPS/m-p/773608#M120115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;BR /&gt;I am using imx6q-sabresd board with linux4.9-imx.1.0 kernel from official github repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problem with PPS signal from GPS receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I connected RX-&amp;gt;TX, TX-&amp;gt;RX, PPS-&amp;gt;gpio and compile kernel with PPS config (PPS,&amp;nbsp;PPS_CLIENT_GPIO).&amp;nbsp;&lt;BR /&gt;dmesg log :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 60px;"&gt;[root@alarm ~]# dmesg | grep pps&lt;BR /&gt;[ 0.483934] pps_core: LinuxPPS API ver. 1 registered&lt;BR /&gt;&lt;SPAN&gt;[ 0.483942] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:giometti@linux.it"&gt;giometti@linux.it&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;[ 1.589363] pps pps0: new PPS source ptp0&lt;BR /&gt;[ 1.852936] pps pps1: new PPS source pps.-1&lt;BR /&gt;[ 1.856888] pps pps1: Registered IRQ 170 as PPS source&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In kernel space I see:&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;[root@alarm ~]# cat /sys/class/pps/pps1/name &lt;BR /&gt;pps.-1&lt;BR /&gt;[root@alarm ~]# cat /sys/class/pps/pps1/assert &lt;BR /&gt;1526895228.003022676#90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PPS is work after GPS is 3D fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can listen NMEA messages from GPS module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;[root@alarm ~]# cat /dev/ttymxc4&lt;BR /&gt;$GPGGA,112601.00,,,,,0,00,,,,,,,*4D&lt;BR /&gt;$GNZDA,112601.00,21,05,2018,00,00*70&lt;BR /&gt;$GNRMC,112601.00,V,,,,,,,210518,,,N*69&lt;BR /&gt;$GPGGA,112602.00,,,,,0,00,,,,,,,*4E&lt;BR /&gt;$GNZDA,112602.00,21,05,2018,00,00*73&lt;BR /&gt;$GNRMC,112602.00,V,,,,,,,210518,,,N*6A&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;But when I shall config&amp;nbsp;gpsd server, pps is not working:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gpsd:WARN: KPPS:/dev/pps1 kernel PPS unavailable, PPS accuracy will suffer&lt;BR /&gt;gpsd:PROG: PPS:/dev/pps1 thread launched&lt;BR /&gt;gpsd:INFO: KPPS:/dev/pps1 gps_fd:-2 not a tty&lt;BR /&gt;gpsd:WARN: PPS:/dev/pps1 die: no TIOMCIWAIT, nor RFC2783 CANWAIT&lt;BR /&gt;gpsd:PROG: PPS:/dev/pps1 gpsd_ppsmonitor exited.&lt;BR /&gt;gpsd:INFO: PPS:/dev/pps1 ntpshm_link_activate: 0&lt;BR /&gt;gpsd:INFO: device /dev/pps1 activated&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;Or in Ntpd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# PPS source /dev/pps1 using the clear edge&lt;BR /&gt;server 127.127.22.1 minpoll 4 maxpoll 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;alarming: normal&lt;BR /&gt;21 May 09:33:21 ntpd[323]: select(): nfound=-1, error: Interrupted system call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In kernel I found NTP_PPS config, but it's off.&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Symbol: NTP_PPS [=n] │ &lt;BR /&gt; │ Type : boolean │ &lt;BR /&gt; │ Prompt: PPS kernel consumer support │ &lt;BR /&gt; │ Location: │ &lt;BR /&gt; │ -&amp;gt; Device Drivers │ &lt;BR /&gt; │ -&amp;gt; PPS support │ &lt;BR /&gt; │ (1) -&amp;gt; PPS support (PPS [=y]) │ &lt;BR /&gt; │ Defined at drivers/pps/Kconfig:32 │ &lt;BR /&gt; │ Depends on: PPS [=y] &amp;amp;&amp;amp; !NO_HZ_COMMON [=y] &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO_HZ_COMMON is on by default.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is it trouble in kernel? Or I use wrong config?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 12:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ntpd-gpsd-GPS-PPS/m-p/773608#M120115</guid>
      <dc:creator>spoonik</dc:creator>
      <dc:date>2018-05-21T12:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ntpd/gpsd GPS PPS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Ntpd-gpsd-GPS-PPS/m-p/773609#M120116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know if you are still having a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, can you please share with us the GPS that you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 16:36:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Ntpd-gpsd-GPS-PPS/m-p/773609#M120116</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2018-07-02T16:36:25Z</dc:date>
    </item>
  </channel>
</rss>

