time-nuts@lists.febo.com

Discussion of precise time and frequency measurement

View all threads

Re: [time-nuts] Beaglebone NTP server

GR
Gabs Ricalde
Wed, Jun 19, 2013 6:52 PM

ntpd (poll=1) loopstats and ppstest using an eCAP clocksource and PPS

root@beaglebone:~# ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1371666297.000000005, sequence: 15602 - clear
0.000000000, sequence: 0
source 0 - assert 1371666298.000000003, sequence: 15603 - clear
0.000000000, sequence: 0
source 0 - assert 1371666299.000000008, sequence: 15604 - clear
0.000000000, sequence: 0
source 0 - assert 1371666300.000000018, sequence: 15605 - clear
0.000000000, sequence: 0
source 0 - assert 1371666300.999999995, sequence: 15606 - clear
0.000000000, sequence: 0

To anyone interested, prepare a cross compiler (I'm using Linaro
2013.02) and try building a 3.8 kernel
(https://github.com/beagleboard/kernel/tree/3.8). I will post the
sources and patches.

ntpd (poll=1) loopstats and ppstest using an eCAP clocksource and PPS root@beaglebone:~# ppstest /dev/pps0 trying PPS source "/dev/pps0" found PPS source "/dev/pps0" ok, found 1 source(s), now start fetching data... source 0 - assert 1371666297.000000005, sequence: 15602 - clear 0.000000000, sequence: 0 source 0 - assert 1371666298.000000003, sequence: 15603 - clear 0.000000000, sequence: 0 source 0 - assert 1371666299.000000008, sequence: 15604 - clear 0.000000000, sequence: 0 source 0 - assert 1371666300.000000018, sequence: 15605 - clear 0.000000000, sequence: 0 source 0 - assert 1371666300.999999995, sequence: 15606 - clear 0.000000000, sequence: 0 To anyone interested, prepare a cross compiler (I'm using Linaro 2013.02) and try building a 3.8 kernel (https://github.com/beagleboard/kernel/tree/3.8). I will post the sources and patches.
CH
Chris Howard
Wed, Jun 19, 2013 7:39 PM

On 6/19/2013 1:52 PM, Gabs Ricalde wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

Will you have any details available about what parts are needed to set it up?

Thanks!

Chris Howard

On 6/19/2013 1:52 PM, Gabs Ricalde wrote: Are you using the original BeagleBone or the new BeagleBone Black? Will you have any details available about what parts are needed to set it up? Thanks! Chris Howard
GR
Gabs Ricalde
Thu, Jun 20, 2013 7:37 PM

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard chris@elfpen.com wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

I'm using the original BeagleBone. it should work on the BeagleBone Black.

Will you have any details available about what parts are needed to set it up?

If your GPS receiver is using 3.3V logic, wiring it up is
straightforward, similar to the Raspberry Pi NTP server. I will probably
setup a page describing this.

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard <chris@elfpen.com> wrote: > > Are you using the original BeagleBone or the new BeagleBone Black? > I'm using the original BeagleBone. it should work on the BeagleBone Black. > Will you have any details available about what parts are needed to set it up? > If your GPS receiver is using 3.3V logic, wiring it up is straightforward, similar to the Raspberry Pi NTP server. I will probably setup a page describing this.
EW
Eric Williams
Thu, Jun 27, 2013 4:52 PM

I have a practical application for this, I'm anxious to see your web page
on how to do it.  Thanks.

eric

On Thu, Jun 20, 2013 at 12:37 PM, Gabs Ricalde gsricalde@gmail.com wrote:

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard chris@elfpen.com wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

I'm using the original BeagleBone. it should work on the BeagleBone Black.

Will you have any details available about what parts are needed to set

it up?

If your GPS receiver is using 3.3V logic, wiring it up is
straightforward, similar to the Raspberry Pi NTP server. I will probably
setup a page describing this.


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

I have a practical application for this, I'm anxious to see your web page on how to do it. Thanks. -- eric On Thu, Jun 20, 2013 at 12:37 PM, Gabs Ricalde <gsricalde@gmail.com> wrote: > On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard <chris@elfpen.com> wrote: > > > > Are you using the original BeagleBone or the new BeagleBone Black? > > > I'm using the original BeagleBone. it should work on the BeagleBone Black. > > > Will you have any details available about what parts are needed to set > it up? > > > If your GPS receiver is using 3.3V logic, wiring it up is > straightforward, similar to the Raspberry Pi NTP server. I will probably > setup a page describing this. > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to > https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there. >
HH
Henry Hallam
Wed, Mar 26, 2014 9:51 PM

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

Cheers,
Henry

On Thu, Jun 20, 2013 at 7:37 PM, Gabs Ricalde gsricalde@gmail.com wrote:

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard chris@elfpen.com wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

I'm using the original BeagleBone. it should work on the BeagleBone Black.

Will you have any details available about what parts are needed to set it up?

If your GPS receiver is using 3.3V logic, wiring it up is
straightforward, similar to the Raspberry Pi NTP server. I will probably
setup a page describing this.


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Hi Gabs, I have a Z3805A and a Beaglebone, and would like to set up an NTP server for the lab. Any kernel drivers and/or setup hints would be appreciated :) Cheers, Henry On Thu, Jun 20, 2013 at 7:37 PM, Gabs Ricalde <gsricalde@gmail.com> wrote: > On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard <chris@elfpen.com> wrote: >> >> Are you using the original BeagleBone or the new BeagleBone Black? >> > I'm using the original BeagleBone. it should work on the BeagleBone Black. > >> Will you have any details available about what parts are needed to set it up? >> > If your GPS receiver is using 3.3V logic, wiring it up is > straightforward, similar to the Raspberry Pi NTP server. I will probably > setup a page describing this. > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there.
BC
Bob Camp
Wed, Mar 26, 2014 10:05 PM

Hi

The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to simply run the PPS in. PPS into serial is one way, pps into a GPIO is another way.

Bob

On Mar 26, 2014, at 5:51 PM, Henry Hallam henry@pericynthion.org wrote:

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

Cheers,
Henry

On Thu, Jun 20, 2013 at 7:37 PM, Gabs Ricalde gsricalde@gmail.com wrote:

On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard chris@elfpen.com wrote:

Are you using the original BeagleBone or the new BeagleBone Black?

I'm using the original BeagleBone. it should work on the BeagleBone Black.

Will you have any details available about what parts are needed to set it up?

If your GPS receiver is using 3.3V logic, wiring it up is
straightforward, similar to the Raspberry Pi NTP server. I will probably
setup a page describing this.


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Hi The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to simply run the PPS in. PPS into serial is one way, pps into a GPIO is another way. Bob On Mar 26, 2014, at 5:51 PM, Henry Hallam <henry@pericynthion.org> wrote: > Hi Gabs, > > I have a Z3805A and a Beaglebone, and would like to set up an NTP > server for the lab. Any kernel drivers and/or setup hints would be > appreciated :) > > Cheers, > Henry > > On Thu, Jun 20, 2013 at 7:37 PM, Gabs Ricalde <gsricalde@gmail.com> wrote: >> On Thu, Jun 20, 2013 at 3:39 AM, Chris Howard <chris@elfpen.com> wrote: >>> >>> Are you using the original BeagleBone or the new BeagleBone Black? >>> >> I'm using the original BeagleBone. it should work on the BeagleBone Black. >> >>> Will you have any details available about what parts are needed to set it up? >>> >> If your GPS receiver is using 3.3V logic, wiring it up is >> straightforward, similar to the Raspberry Pi NTP server. I will probably >> setup a page describing this. >> _______________________________________________ >> time-nuts mailing list -- time-nuts@febo.com >> To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts >> and follow the instructions there. > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there.
BL
Brian Lloyd
Wed, Mar 26, 2014 10:24 PM

On Wed, Mar 26, 2014 at 4:51 PM, Henry Hallam henry@pericynthion.orgwrote:

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

Actually, I was thinking of doing exactly the same thing.  I am interested
in any answers for this too.

--
Brian Lloyd, WB6RQN/J79BPL
706 Flightline Drive
Spring Branch, TX 78070
brian@lloyd.com
+1.916.877.5067

On Wed, Mar 26, 2014 at 4:51 PM, Henry Hallam <henry@pericynthion.org>wrote: > Hi Gabs, > > I have a Z3805A and a Beaglebone, and would like to set up an NTP > server for the lab. Any kernel drivers and/or setup hints would be > appreciated :) > Actually, I was thinking of doing exactly the same thing. I am interested in any answers for this too. -- Brian Lloyd, WB6RQN/J79BPL 706 Flightline Drive Spring Branch, TX 78070 brian@lloyd.com +1.916.877.5067
BL
Brian Lloyd
Wed, Mar 26, 2014 11:18 PM

On Wed, Mar 26, 2014 at 5:05 PM, Bob Camp lists@rtty.us wrote:

Hi

The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to
simply run the PPS in. PPS into serial is one way, pps into a GPIO is
another way.

Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO
line with appropriate clamping to 3.3V.

But if anyone has done this before and run into anything of note, that
would be nice to know ahead of time.

--
Brian Lloyd, WB6RQN/J79BPL
706 Flightline Drive
Spring Branch, TX 78070
brian@lloyd.com
+1.916.877.5067

On Wed, Mar 26, 2014 at 5:05 PM, Bob Camp <lists@rtty.us> wrote: > Hi > > The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to > simply run the PPS in. PPS into serial is one way, pps into a GPIO is > another way. > Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO line with appropriate clamping to 3.3V. But if anyone has done this before and run into anything of note, that would be nice to know ahead of time. -- Brian Lloyd, WB6RQN/J79BPL 706 Flightline Drive Spring Branch, TX 78070 brian@lloyd.com +1.916.877.5067
BC
Bob Camp
Thu, Mar 27, 2014 12:17 AM

Hi

With a GPIO pulse width should not be an issue. With RS-232 you might have needed a pulse stretcher.

Bob

On Mar 26, 2014, at 7:18 PM, Brian Lloyd brian@lloyd.com wrote:

On Wed, Mar 26, 2014 at 5:05 PM, Bob Camp lists@rtty.us wrote:

Hi

The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to
simply run the PPS in. PPS into serial is one way, pps into a GPIO is
another way.

Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO
line with appropriate clamping to 3.3V.

But if anyone has done this before and run into anything of note, that
would be nice to know ahead of time.

--
Brian Lloyd, WB6RQN/J79BPL
706 Flightline Drive
Spring Branch, TX 78070
brian@lloyd.com
+1.916.877.5067


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Hi With a GPIO pulse width should not be an issue. With RS-232 you might have needed a pulse stretcher. Bob On Mar 26, 2014, at 7:18 PM, Brian Lloyd <brian@lloyd.com> wrote: > On Wed, Mar 26, 2014 at 5:05 PM, Bob Camp <lists@rtty.us> wrote: > >> Hi >> >> The quick / dirty / easy way for any of the NTP stuff with a GPSDO is to >> simply run the PPS in. PPS into serial is one way, pps into a GPIO is >> another way. >> > > Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO > line with appropriate clamping to 3.3V. > > But if anyone has done this before and run into anything of note, that > would be nice to know ahead of time. > > -- > Brian Lloyd, WB6RQN/J79BPL > 706 Flightline Drive > Spring Branch, TX 78070 > brian@lloyd.com > +1.916.877.5067 > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there.
CA
Chris Albertson
Thu, Mar 27, 2014 12:40 AM

On Wed, Mar 26, 2014 at 2:51 PM, Henry Hallam henry@pericynthion.orgwrote:

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

It's best to go in steps.  Resist the temptation to simply connect

everything, turn it on and see it is works.

The first step is to get NTP installed and running using Internet pool
servers for reference clocks.  Make sure this is working reliably.  NTP
may already be mostly configured.  I don't know.

Next make sure the kernel level PPS diver is working.  To test PPS there is
a user-land test program you can run that simply prints the time of each
pulse to the console.  Besure to watch both the voltage levels (the Beagle
is 3.3 volts) and the polarity of the pulse.  If you get the polarity wrong
it will appear t work but the timing will lag by the pulse width (because
the falling edge is now the raising edge.)
Be sure and match up the levels for both serial and PPS.

After both of the above, adding a GPS based reference clock to NTP is easy.
All you do is edit the config file.  Obviously I've left out much detail
but the biggest thing is to follow the step by step process

Chris Albertson
Redondo Beach, California

On Wed, Mar 26, 2014 at 2:51 PM, Henry Hallam <henry@pericynthion.org>wrote: > Hi Gabs, > > I have a Z3805A and a Beaglebone, and would like to set up an NTP > server for the lab. Any kernel drivers and/or setup hints would be > appreciated :) > > It's best to go in steps. Resist the temptation to simply connect everything, turn it on and see it is works. The first step is to get NTP installed and running using Internet pool servers for reference clocks. Make sure this is working reliably. NTP may already be mostly configured. I don't know. Next make sure the kernel level PPS diver is working. To test PPS there is a user-land test program you can run that simply prints the time of each pulse to the console. Besure to watch both the voltage levels (the Beagle is 3.3 volts) and the polarity of the pulse. If you get the polarity wrong it will appear t work but the timing will lag by the pulse width (because the falling edge is now the raising edge.) Be sure and match up the levels for both serial and PPS. After both of the above, adding a GPS based reference clock to NTP is easy. All you do is edit the config file. Obviously I've left out much detail but the biggest thing is to follow the step by step process -- Chris Albertson Redondo Beach, California
N
nuts
Thu, Mar 27, 2014 1:16 AM

On Wed, 26 Mar 2014 17:40:07 -0700
Chris Albertson albertson.chris@gmail.com wrote:

On Wed, Mar 26, 2014 at 2:51 PM, Henry Hallam
henry@pericynthion.orgwrote:

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

It's best to go in steps.  Resist the temptation to simply connect

everything, turn it on and see it is works.

The first step is to get NTP installed and running using Internet pool
servers for reference clocks.  Make sure this is working reliably.
NTP may already be mostly configured.  I don't know.

Next make sure the kernel level PPS diver is working.  To test PPS
there is a user-land test program you can run that simply prints the
time of each pulse to the console.  Besure to watch both the voltage
levels (the Beagle is 3.3 volts) and the polarity of the pulse.  If
you get the polarity wrong it will appear t work but the timing will
lag by the pulse width (because the falling edge is now the raising
edge.) Be sure and match up the levels for both serial and PPS.

After both of the above, adding a GPS based reference clock to NTP is
easy. All you do is edit the config file.  Obviously I've left out
much detail but the biggest thing is to follow the step by step
process

Job number one on the Beaglebone Black (and I assume the regular
version) is to install NTP. Otherwise it doesn't even know the date. It
has no battery for RTC.

Beyond that, I haven't found a very clear way to get the gpio-pps going.

On Wed, 26 Mar 2014 17:40:07 -0700 Chris Albertson <albertson.chris@gmail.com> wrote: > On Wed, Mar 26, 2014 at 2:51 PM, Henry Hallam > <henry@pericynthion.org>wrote: > > > Hi Gabs, > > > > I have a Z3805A and a Beaglebone, and would like to set up an NTP > > server for the lab. Any kernel drivers and/or setup hints would be > > appreciated :) > > > > It's best to go in steps. Resist the temptation to simply connect > everything, turn it on and see it is works. > > The first step is to get NTP installed and running using Internet pool > servers for reference clocks. Make sure this is working reliably. > NTP may already be mostly configured. I don't know. > > Next make sure the kernel level PPS diver is working. To test PPS > there is a user-land test program you can run that simply prints the > time of each pulse to the console. Besure to watch both the voltage > levels (the Beagle is 3.3 volts) and the polarity of the pulse. If > you get the polarity wrong it will appear t work but the timing will > lag by the pulse width (because the falling edge is now the raising > edge.) Be sure and match up the levels for both serial and PPS. > > After both of the above, adding a GPS based reference clock to NTP is > easy. All you do is edit the config file. Obviously I've left out > much detail but the biggest thing is to follow the step by step > process Job number one on the Beaglebone Black (and I assume the regular version) is to install NTP. Otherwise it doesn't even know the date. It has no battery for RTC. Beyond that, I haven't found a very clear way to get the gpio-pps going.
P
Paul
Thu, Mar 27, 2014 1:37 AM

On Wed, Mar 26, 2014 at 5:51 PM, Henry Hallam henry@pericynthion.orgwrote:

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.

Here's an example for the Black.  I believe the same ideas apply to the
Beaglebone (White).

http://the8thlayerof.net/2013/12/08/adafruit-ultimate-gps-cape-creating-custom-beaglebone-black-device-tree-overlay-file/

I prefer the Beaglebone to the Pi because of the silly USB glitch but out
of three BBBs only one will run for more than a month without wedging.
This may be because I run Debian but as with the Pi USB bug it's not much
comfort when the box fails.  The Pi I use as an NTP server ran for 4 months
and developed a filesystem error.  It's been up two months post-repair.  If
I depended on a server built around a dev board I'd be careful to make the
SDcard/eMMC read-only and build more than one.

On Wed, Mar 26, 2014 at 5:51 PM, Henry Hallam <henry@pericynthion.org>wrote: > I have a Z3805A and a Beaglebone, and would like to set up an NTP > server for the lab. > Here's an example for the Black. I believe the same ideas apply to the Beaglebone (White). http://the8thlayerof.net/2013/12/08/adafruit-ultimate-gps-cape-creating-custom-beaglebone-black-device-tree-overlay-file/ I prefer the Beaglebone to the Pi because of the silly USB glitch but out of three BBBs only one will run for more than a month without wedging. This may be because I run Debian but as with the Pi USB bug it's not much comfort when the box fails. The Pi I use as an NTP server ran for 4 months and developed a filesystem error. It's been up two months post-repair. If I depended on a server built around a dev board I'd be careful to make the SDcard/eMMC read-only and build more than one.
BL
Brian Lloyd
Thu, Mar 27, 2014 1:54 AM

On Wed, Mar 26, 2014 at 7:17 PM, Bob Camp
<lists@rtty.usjavascript:_e(%7B%7D,'cvml','lists@rtty.us');

wrote:

Hi

With a GPIO pulse width should not be an issue. With RS-232 you might have
needed a pulse stretcher.

That is what I was thinking as well. Any suggestions on software issues in
getting this running?

--
Brian Lloyd, WB6RQN/J79BPL
706 Flightline Drive
Spring Branch, TX 78070
brian@lloyd.com javascript:_e(%7B%7D,'cvml','brian@lloyd.com');
+1.916.877.5067

--
Brian Lloyd, WB6RQN/J79BPL
706 Flightline Drive
Spring Branch, TX 78070
brian@lloyd.com
+1.916.877.5067

On Wed, Mar 26, 2014 at 7:17 PM, Bob Camp <lists@rtty.us<javascript:_e(%7B%7D,'cvml','lists@rtty.us');> > wrote: > Hi > > With a GPIO pulse width should not be an issue. With RS-232 you might have > needed a pulse stretcher. > That is what I was thinking as well. Any suggestions on software issues in getting this running? -- Brian Lloyd, WB6RQN/J79BPL 706 Flightline Drive Spring Branch, TX 78070 brian@lloyd.com <javascript:_e(%7B%7D,'cvml','brian@lloyd.com');> +1.916.877.5067 -- Brian Lloyd, WB6RQN/J79BPL 706 Flightline Drive Spring Branch, TX 78070 brian@lloyd.com +1.916.877.5067
N
nuts
Thu, Mar 27, 2014 4:01 AM

Much appreciated. I have that GPS. It didn't occur to me to build my
own cape. Had I known, I would have ordered that board had I seen this
webspage. I can probably cut some out of perf board.

On Wed, 26 Mar 2014 21:37:43 -0400
Paul tic-toc@bodosom.net wrote:

On Wed, Mar 26, 2014 at 5:51 PM, Henry Hallam
henry@pericynthion.orgwrote:

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.

Here's an example for the Black.  I believe the same ideas apply to
the Beaglebone (White).

http://the8thlayerof.net/2013/12/08/adafruit-ultimate-gps-cape-creating-custom-beaglebone-black-device-tree-overlay-file/

I prefer the Beaglebone to the Pi because of the silly USB glitch but
out of three BBBs only one will run for more than a month without
wedging. This may be because I run Debian but as with the Pi USB bug
it's not much comfort when the box fails.  The Pi I use as an NTP
server ran for 4 months and developed a filesystem error.  It's been
up two months post-repair.  If I depended on a server built around a
dev board I'd be careful to make the SDcard/eMMC read-only and build
more than one. _______________________________________________
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts and follow
the instructions there.

Much appreciated. I have that GPS. It didn't occur to me to build my own cape. Had I known, I would have ordered that board had I seen this webspage. I can probably cut some out of perf board. On Wed, 26 Mar 2014 21:37:43 -0400 Paul <tic-toc@bodosom.net> wrote: > On Wed, Mar 26, 2014 at 5:51 PM, Henry Hallam > <henry@pericynthion.org>wrote: > > > I have a Z3805A and a Beaglebone, and would like to set up an NTP > > server for the lab. > > > > Here's an example for the Black. I believe the same ideas apply to > the Beaglebone (White). > > http://the8thlayerof.net/2013/12/08/adafruit-ultimate-gps-cape-creating-custom-beaglebone-black-device-tree-overlay-file/ > > I prefer the Beaglebone to the Pi because of the silly USB glitch but > out of three BBBs only one will run for more than a month without > wedging. This may be because I run Debian but as with the Pi USB bug > it's not much comfort when the box fails. The Pi I use as an NTP > server ran for 4 months and developed a filesystem error. It's been > up two months post-repair. If I depended on a server built around a > dev board I'd be careful to make the SDcard/eMMC read-only and build > more than one. _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to > https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts and follow > the instructions there.
DJ
David J Taylor
Thu, Mar 27, 2014 7:34 AM

Hi Gabs,

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

Cheers,
Henry

---====

Henry.

Maybe my notes using Linux on the Raspberry Pi might help?

http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html

Cheers,
David

SatSignal Software - Quality software written to your requirements
Web: http://www.satsignal.eu
Email: david-taylor@blueyonder.co.uk

Hi Gabs, I have a Z3805A and a Beaglebone, and would like to set up an NTP server for the lab. Any kernel drivers and/or setup hints would be appreciated :) Cheers, Henry ===================================== Henry. Maybe my notes using Linux on the Raspberry Pi might help? http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html Cheers, David -- SatSignal Software - Quality software written to your requirements Web: http://www.satsignal.eu Email: david-taylor@blueyonder.co.uk
IY
Iain Young
Thu, Mar 27, 2014 9:41 AM

On 26/03/14 23:18, Brian Lloyd wrote:

Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO
line with appropriate clamping to 3.3V.

But if anyone has done this before and run into anything of note, that
would be nice to know ahead of time.

Can I suggest you consider FreeBSD ? You can use the TIMER4-7 input pins
as PPS input for a better PPS. See the following URL for details:

http://lists.freebsd.org/pipermail/freebsd-arm/2013-February/004769.html

If I recall correctly, the patch is in the FreeBSD 10 snapshots for the
Beaglebone, so you don't need to apply it, but you will need to enable
PPS and ensure one of the four TIMER pins is set to input in the DTS
and recompile.

Iain

On 26/03/14 23:18, Brian Lloyd wrote: > Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO > line with appropriate clamping to 3.3V. > > But if anyone has done this before and run into anything of note, that > would be nice to know ahead of time. > Can I suggest you consider FreeBSD ? You can use the TIMER4-7 input pins as PPS input for a better PPS. See the following URL for details: http://lists.freebsd.org/pipermail/freebsd-arm/2013-February/004769.html If I recall correctly, the patch is in the FreeBSD 10 snapshots for the Beaglebone, so you don't need to apply it, but you will need to enable PPS and ensure one of the four TIMER pins is set to input in the DTS and recompile. Iain
HH
Henry Hallam
Thu, Mar 27, 2014 5:32 PM

Thanks for all the hints everyone.  Lots to try!

Henry

On Thu, Mar 27, 2014 at 2:41 AM, Iain Young iain@g7iii.net wrote:

On 26/03/14 23:18, Brian Lloyd wrote:

Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO
line with appropriate clamping to 3.3V.

But if anyone has done this before and run into anything of note, that
would be nice to know ahead of time.

Can I suggest you consider FreeBSD ? You can use the TIMER4-7 input pins
as PPS input for a better PPS. See the following URL for details:

http://lists.freebsd.org/pipermail/freebsd-arm/2013-February/004769.html

If I recall correctly, the patch is in the FreeBSD 10 snapshots for the
Beaglebone, so you don't need to apply it, but you will need to enable
PPS and ensure one of the four TIMER pins is set to input in the DTS
and recompile.

Iain


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Thanks for all the hints everyone. Lots to try! Henry On Thu, Mar 27, 2014 at 2:41 AM, Iain Young <iain@g7iii.net> wrote: > On 26/03/14 23:18, Brian Lloyd wrote: > >> Well, yeah. I figured that I would run the 1pps from my T-bolt to a GPIO >> line with appropriate clamping to 3.3V. >> >> But if anyone has done this before and run into anything of note, that >> would be nice to know ahead of time. >> > > Can I suggest you consider FreeBSD ? You can use the TIMER4-7 input pins > as PPS input for a better PPS. See the following URL for details: > > http://lists.freebsd.org/pipermail/freebsd-arm/2013-February/004769.html > > If I recall correctly, the patch is in the FreeBSD 10 snapshots for the > Beaglebone, so you don't need to apply it, but you will need to enable > PPS and ensure one of the four TIMER pins is set to input in the DTS > and recompile. > > > Iain > > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to > https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there.
P
Paul
Fri, Mar 28, 2014 8:19 PM

On Wed, Mar 26, 2014 at 5:51 PM, Henry Hallam henry@pericynthion.org
wrote:

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

I've managed (almost by accident) to run my dev boards and related GPS off
the same power until this one.  In the BBB instance having two power
supplies added a fatal level of noise to GPIO input.

On Thu, Mar 27, 2014 at 12:01 AM, nuts nuts@lazygranch.com wrote:

Much appreciated. I have that GPS.

Turns out this thread points out an issue which will need to checked:
https://groups.google.com/forum/#!msg/beagleboard/emMCqt_mllI/bf7jL_ahPjYJ

I'm currently not able to simultaneously read the serial output and the
PPS.  Some minor issue I'm sure.

On Wed, Mar 26, 2014 at 5:51 PM, Henry Hallam <henry@pericynthion.org> wrote: > I have a Z3805A and a Beaglebone, and would like to set up an NTP > server for the lab. Any kernel drivers and/or setup hints would be > appreciated :) I've managed (almost by accident) to run my dev boards and related GPS off the same power until this one. In the BBB instance having two power supplies added a fatal level of noise to GPIO input. On Thu, Mar 27, 2014 at 12:01 AM, nuts <nuts@lazygranch.com> wrote: > Much appreciated. I have that GPS. Turns out this thread points out an issue which will need to checked: https://groups.google.com/forum/#!msg/beagleboard/emMCqt_mllI/bf7jL_ahPjYJ I'm currently not able to simultaneously read the serial output and the PPS. Some minor issue I'm sure.
F
folkert
Sun, Dec 7, 2014 8:09 PM

I have a Z3805A and a Beaglebone, and would like to set up an NTP
server for the lab.  Any kernel drivers and/or setup hints would be
appreciated :)

Actually, I was thinking of doing exactly the same thing.  I am interested
in any answers for this too.

If compiling a kernel is required and too daunting, then there's
rpi_gpio_ntp: http://www.vanheusden.com/time/rpi_gpio_ntp/
Initially only for raspberry pi but I noticed I made it generic enough
to work on all linux systems with pps via gpio.
On my rpi the jitter is between 2 and 10us iirc but it is a while since
I tested it. A quick peak shows me currently 3us jitter. Not bad for a
userspace solution imho.

Folkert van Heusden

--
MultiTail è uno flexible tool per seguire di logfiles e effettuazione
di commissioni. Feltrare, provedere da colore, merge, 'diff-view',
etc. http://www.vanheusden.com/multitail/

Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

> > I have a Z3805A and a Beaglebone, and would like to set up an NTP > > server for the lab. Any kernel drivers and/or setup hints would be > > appreciated :) > > > > Actually, I was thinking of doing exactly the same thing. I am interested > in any answers for this too. If compiling a kernel is required and too daunting, then there's rpi_gpio_ntp: http://www.vanheusden.com/time/rpi_gpio_ntp/ Initially only for raspberry pi but I noticed I made it generic enough to work on all linux systems with pps via gpio. On my rpi the jitter is between 2 and 10us iirc but it is a while since I tested it. A quick peak shows me currently 3us jitter. Not bad for a userspace solution imho. Folkert van Heusden -- MultiTail è uno flexible tool per seguire di logfiles e effettuazione di commissioni. Feltrare, provedere da colore, merge, 'diff-view', etc. http://www.vanheusden.com/multitail/ ---------------------------------------------------------------------- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
F
folkert
Sun, Dec 7, 2014 8:10 PM

I prefer the Beaglebone to the Pi because of the silly USB glitch but out
of three BBBs only one will run for more than a month without wedging.
This may be because I run Debian but as with the Pi USB bug it's not much
comfort when the box fails.  The Pi I use as an NTP server ran for 4 months
and developed a filesystem error.  It's been up two months post-repair.  If
I depended on a server built around a dev board I'd be careful to make the
SDcard/eMMC read-only and build more than one.

Regarding the fs error: consider replacing ext3 for f2fs. F2fs does
software wear leveling.

Folkert van Heusden

--
Nagios user? Check out CoffeeSaint - the versatile Nagios status
viewer! http://www.vanheusden.com/java/CoffeeSaint/

Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

> I prefer the Beaglebone to the Pi because of the silly USB glitch but out > of three BBBs only one will run for more than a month without wedging. > This may be because I run Debian but as with the Pi USB bug it's not much > comfort when the box fails. The Pi I use as an NTP server ran for 4 months > and developed a filesystem error. It's been up two months post-repair. If > I depended on a server built around a dev board I'd be careful to make the > SDcard/eMMC read-only and build more than one. Regarding the fs error: consider replacing ext3 for f2fs. F2fs does software wear leveling. Folkert van Heusden -- Nagios user? Check out CoffeeSaint - the versatile Nagios status viewer! http://www.vanheusden.com/java/CoffeeSaint/ ---------------------------------------------------------------------- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com