Re: [ntp:questions] Using Trimble TSIP under Linux
On 10/28/2012 22:36, David Taylor wrote: On 29/10/2012 03:32, A C wrote: [] Check the main ntpd log for error messages. I would if I knew where to find it! If it's based off Debian then it's usually /var/log/ or /var/log/ntpd/ otherwise find / -name ntpd.log should answer your question :) ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 29/10/2012 06:36, A C wrote: On 10/28/2012 22:36, David Taylor wrote: On 29/10/2012 03:32, A C wrote: [] Check the main ntpd log for error messages. I would if I knew where to find it! If it's based off Debian then it's usually /var/log/ or /var/log/ntpd/ otherwise find / -name ntpd.log should answer your question :) Thanks, A C. Yes, it's Debian-based, but there's no ntpd.log anywhere on the system. I checked the locations you mentioned and tried the find command. I've now managed to get a recent NTP to compile (takes about 25 minutes), and I would install it except that the page I have says it will install to: /usr/local/bin/ntpd as as there's nothing there at the moment I don't see how that would replace the existing version http://www.raspberrypi.org/phpBB3/viewtopic.php?f=41t=1970start=25 says: ___ mkdir build# make a convenient working directory cd build wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.6p5.tar.gz tar xvfz ntp-4.2.6p5.tar.gz cd ntp-4.2.6p5/ ./configure --enable-ATOM # takes about 45 minutes make # takes over 1 hour sudo apt-get remove ntp# get rid of previously existing install of ntpd sudo make install # puts ntpd in /usr/local/bin/ntpdmkdir build # make a convenient working directory cd build wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.6p5.tar.gz tar xvfz ntp-4.2.6p5.tar.gz cd ntp-4.2.6p5/ ./configure --enable-ATOM # takes about 45 minutes make # takes over 1 hour sudo apt-get remove ntp# get rid of previously existing install of ntpd sudo make install # puts ntpd in /usr/local/bin/ntpd ___ I used ntp-4.2.7p314.tar.gz as I had that compiled and running on Windows. Maybe the instructions are out of date? -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
David Taylor david-tay...@blueyonder.co.uk.invalid wrote: Thanks, A C. Yes, it's Debian-based, but there's no ntpd.log anywhere on the system. I checked the locations you mentioned and tried the find command. On my Debian system ntpd logs to /var/log/daemon.log together with other daemons: Oct 29 08:11:36 cube ntpd[2964]: ntpd 4.2.6p5@1.2349-o Sat May 12 09:54:55 UTC 2012 (1) Oct 29 08:11:36 cube ntpd[2981]: proto: precision = 0.192 usec /ralph ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
David Taylor david-tay...@blueyonder.co.uk.invalid wrote: - use sudo ppstest /dev/pps0 and see assert pulses coming in (the clear field is always 0 though, perhaps the 150 microsecond pulse is too narrow?) That is a problem! Now I remember... I tried different GPS receivers when writing the code for the PPS support in gpsd, and there was a receiver for which it would not work because the pulse is too narrow for the technique used in gpsd. It was the Trimble, I remember now. You need to add a circuit to stretch the narrow pulse into a 100ms pulse. The exact duration is not important. Just arrange for a monostable multivibrator that gets triggered by the rising edge of the pulse and extends the pulse by R/C time. Make sure the pulse is shorter than 500ms or the autodetection logic will focus on the wrong edge of the pulse. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 29/10/2012 07:53, Ralph Aichinger wrote: [] On my Debian system ntpd logs to /var/log/daemon.log together with other daemons: Oct 29 08:11:36 cube ntpd[2964]: ntpd 4.2.6p5@1.2349-o Sat May 12 09:54:55 UTC 2012 (1) Oct 29 08:11:36 cube ntpd[2981]: proto: precision = 0.192 usec /ralph .. and here, Ralph, thanks very much. I'm seeing helpful messages: clock type 22 invalid 127.127.22.0 interface 127.0.0.1 - none so would I be correct in interpreting that as meaning my NTP doesn't have ATOM support. ? My recompiled NTP should have all ref-clocks, so where should I install the recompiled NTP? -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 29/10/2012 08:38, Rob wrote: David Taylor david-tay...@blueyonder.co.uk.invalid wrote: - use sudo ppstest /dev/pps0 and see assert pulses coming in (the clear field is always 0 though, perhaps the 150 microsecond pulse is too narrow?) That is a problem! Now I remember... I tried different GPS receivers when writing the code for the PPS support in gpsd, and there was a receiver for which it would not work because the pulse is too narrow for the technique used in gpsd. It was the Trimble, I remember now. You need to add a circuit to stretch the narrow pulse into a 100ms pulse. The exact duration is not important. Just arrange for a monostable multivibrator that gets triggered by the rising edge of the pulse and extends the pulse by R/C time. Make sure the pulse is shorter than 500ms or the autodetection logic will focus on the wrong edge of the pulse. Thanks, Rob. For the moment I have decided to use the pps-gpio code which has been written for the Raspberry Pi, rather than the gpsd route. This is producing valid data when running the ppstest (although the entries of 0 in the clear values worry me slightly), and from the NTP log I believe that the version I have may not have ATOM support. I've recompiled NTP, and am thinking about installing it I really would prefer not to have to add extra hardware at this point. -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
Dave, ntpd will be in /usr/bin or /usr/sbin. On my pi the /usr/sbin is the one in use. Just copy across your newly built binary and restart with a sudo /etc/init.d/ntp restart you can always kill the ntpd process (with a sudo ps -e | grep ntpd followed by sudo kill -9 processname), then run the one you bult interactively to make sure all is well. The debug offerings are really handy in the interactive mode. pk -Original Message- From: questions-bounces+p.kennedy=fugro.com...@lists.ntp.org [mailto:questions-bounces+p.kennedy=fugro.com...@lists.ntp.org] On Behalf Of David Taylor Sent: Monday, 29 October 2012 5:11 PM To: questions@lists.ntp.org Subject: Re: [ntp:questions] Using Trimble TSIP under Linux On 29/10/2012 08:38, Rob wrote: David Taylor david-tay...@blueyonder.co.uk.invalid wrote: - use sudo ppstest /dev/pps0 and see assert pulses coming in (the clear field is always 0 though, perhaps the 150 microsecond pulse is too narrow?) That is a problem! Now I remember... I tried different GPS receivers when writing the code for the PPS support in gpsd, and there was a receiver for which it would not work because the pulse is too narrow for the technique used in gpsd. It was the Trimble, I remember now. You need to add a circuit to stretch the narrow pulse into a 100ms pulse. The exact duration is not important. Just arrange for a monostable multivibrator that gets triggered by the rising edge of the pulse and extends the pulse by R/C time. Make sure the pulse is shorter than 500ms or the autodetection logic will focus on the wrong edge of the pulse. Thanks, Rob. For the moment I have decided to use the pps-gpio code which has been written for the Raspberry Pi, rather than the gpsd route. This is producing valid data when running the ppstest (although the entries of 0 in the clear values worry me slightly), and from the NTP log I believe that the version I have may not have ATOM support. I've recompiled NTP, and am thinking about installing it I really would prefer not to have to add extra hardware at this point. -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 29/10/2012 09:44, Kennedy, Paul wrote: Dave, ntpd will be in /usr/bin or /usr/sbin. On my pi the /usr/sbin is the one in use. Just copy across your newly built binary and restart with a sudo /etc/init.d/ntp restart you can always kill the ntpd process (with a sudo ps -e | grep ntpd followed by sudo kill -9 processname), then run the one you bult interactively to make sure all is well. The debug offerings are really handy in the interactive mode. pk Making progress, Paul, thanks! I managed to get gpsd to autostart with the dpkg-reconfigure, but on ntp it said: ntp is broken or not fully install. I still says that after I copied the ntp executables from my local directory to /usr/bin. On trying to restart ntp it failed: pi@raspberrypi ~ $ sudo /etc/init.d/ntp restart [ ok ] Stopping NTP server: ntpd. [] Starting NTP server: ntpd/usr/sbin/ntpd: The ``user'' option has been disabled -- built without --enable-clockctl or --enable-linuxcaps ntpd - NTP daemon program - Ver. 4.2.7p314 USAGE: ntpd [ -flag [val] | --name[{=| }val] ]... \ [ server1 ... serverN ] failed! but trying to run ntpd from the command-line it works correctly: pi@raspberrypi ~ $ sudo /usr/local/bin/ntpd pi@raspberrypi ~ $ and continues to run after I log out, with excellent PPS support. I took all the defaults when building NTP and set no special options myself. What have I done wrong now!? -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
Hi I did not encounter this, but I would try the following... ps -e | grep ntpd To see if ntp is accidentally running already sudo chmod 777 /usr/sbin/ntpd To make sure the root user (that's the one who runs 'services' has permission to run ntpd. My guess is the latter. If you get more grief from the atom driver, maybe try the NMEA RMC. Works a treat for me. Good luck Pk - Original Message - From: questions-bounces+p.kennedy=fugro.com...@lists.ntp.org questions-bounces+p.kennedy=fugro.com...@lists.ntp.org To: questions@lists.ntp.org questions@lists.ntp.org Sent: Mon Oct 29 18:45:21 2012 Subject: Re: [ntp:questions] Using Trimble TSIP under Linux On 29/10/2012 09:44, Kennedy, Paul wrote: Dave, ntpd will be in /usr/bin or /usr/sbin. On my pi the /usr/sbin is the one in use. Just copy across your newly built binary and restart with a sudo /etc/init.d/ntp restart you can always kill the ntpd process (with a sudo ps -e | grep ntpd followed by sudo kill -9 processname), then run the one you bult interactively to make sure all is well. The debug offerings are really handy in the interactive mode. pk Making progress, Paul, thanks! I managed to get gpsd to autostart with the dpkg-reconfigure, but on ntp it said: ntp is broken or not fully install. I still says that after I copied the ntp executables from my local directory to /usr/bin. On trying to restart ntp it failed: pi@raspberrypi ~ $ sudo /etc/init.d/ntp restart [ ok ] Stopping NTP server: ntpd. [] Starting NTP server: ntpd/usr/sbin/ntpd: The ``user'' option has been disabled -- built without --enable-clockctl or --enable-linuxcaps ntpd - NTP daemon program - Ver. 4.2.7p314 USAGE: ntpd [ -flag [val] | --name[{=| }val] ]... \ [ server1 ... serverN ] failed! but trying to run ntpd from the command-line it works correctly: pi@raspberrypi ~ $ sudo /usr/local/bin/ntpd pi@raspberrypi ~ $ and continues to run after I log out, with excellent PPS support. I took all the defaults when building NTP and set no special options myself. What have I done wrong now!? -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 29/10/2012 10:45, David Taylor wrote: [] pi@raspberrypi ~ $ sudo /etc/init.d/ntp restart [ ok ] Stopping NTP server: ntpd. [] Starting NTP server: ntpd/usr/sbin/ntpd: The ``user'' option has been disabled -- built without --enable-clockctl or --enable-linuxcaps ntpd - NTP daemon program - Ver. 4.2.7p314 USAGE: ntpd [ -flag [val] | --name[{=| }val] ]... \ [ server1 ... serverN ] failed! There's a suggestion on the Web that I should have built with extra configuration switches, so I tried that, but it failed: $ ./configure --enable-clockctl --enable-linuxcaps $ make .. .. ../../ntpd/ntp_parser.c:2110:6: warning: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow] ../../ntpd/ntp_parser.c:2110:6: warning: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow] ../../ntpd/ntp_parser.c:2110:6: warning: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow] CC ntp_scanner.o CC ntpd.o ntpd.c:111:29: fatal error: sys/capability.h: No such file or directory compilation terminated. make[3]: *** [ntpd.o] Error 1 make[3]: Leaving directory `/home/pi/ntp/ntp-dev-4.2.7p314/ntpd' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/pi/ntp/ntp-dev-4.2.7p314/ntpd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pi/ntp/ntp-dev-4.2.7p314' make: *** [all] Error 2 $ Looking round the disk I do see a file: /usr/include/linux/capability.h I hope the ./configure was OK, but why this version doesn't build is beyond me at the moment! -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
pk writes: ntpd will be in /usr/bin or /usr/sbin. On my pi the /usr/sbin is the one in use. Just copy across your newly built binary and restart with a sudo /etc/init.d/ntp restart No, don't do that. /usr/local/, which is intended for locally-compiled software, is at the front of your PATH and so your local ntpd will be found before the one the package-management system installed in /usr/sbin/. You'll want to edit or replace the initscript in /etc/init.d/ntp. Just fix the DAEMON line at the top of the script. -- John Hasler jhas...@newsguy.com Dancing Horse Hill Elmwood, WI USA ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 29/10/2012 12:30, John Hasler wrote: No, don't do that./usr/local/, which is intended for locally-compiled software, is at the front of your PATH and so your local ntpd will be found before the one the package-management system installed in /usr/sbin/. You'll want to edit or replace the initscript in /etc/init.d/ntp. Just fix the DAEMON line at the top of the script. -- John Hasler jhas...@newsguy.com Dancing Horse Hill Elmwood, WI USA That sounds a cleaner way of doing things, John, thanks. I've just brought down 4.2.6p5 to see whether I can compile that with the: $ ./configure --enable-clockctl --enable-linuxcaps options. -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
Kennedy, Paul wrote: sudo chmod 777 /usr/sbin/ntpd Setting a service (daemon) binary world writeable opens a gaping security hole. Actually, more generally, chmod 777 indicates a triumph of convenience over security. To make sure the root user (that's the one who runs 'services' has permission to run ntpd. root has the special ability that it can run programs as long as anyone has execute permission on them. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 29/10/2012 12:00, Kennedy, Paul wrote: Hi I did not encounter this, but I would try the following... ps -e | grep ntpd To see if ntp is accidentally running already sudo chmod 777 /usr/sbin/ntpd To make sure the root user (that's the one who runs 'services' has permission to run ntpd. My guess is the latter. If you get more grief from the atom driver, maybe try the NMEA RMC. Works a treat for me. Good luck Pk Thanks, Paul. I tried the chmod but it made no difference. The data from the GPS is TSIP format coming in over USB and being decoded by gpsd, so perhaps the NMEA driver might be a little confused! I suppose gpsd doesn't send out RMC sentences to some pseudo serial port? So it's sort-of working with 4.2.7p314 except: 1 - I need to start from a console Window as automatic start-up fails 2 - if I try and compile with the flags for automatic start-up the make fails due a missing file: sys/capability.h. Happens with both 4.2.6p5 and 4.2.7p314. 3 - Even though gpsd runs on boot, NTP connects to it only intermittently, and even running cgps -s it seems to take one or two cycles before the contents of the GPS are displayed. When it works, the performance is excellent - look at 09:30-11:00 here: http://www.satsignal.eu/mrtg/performance_raspi-1.php The PPS(0) server shows with a o against it, indication a working PPS lock. I'll leave it running for a while (from 14:30 UTC) so that I can see the excellent performance. It's very close now, so thanks to everyone for their help so far. I've learned a lot in the last few days and documented it for others. -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
David Taylor writes: if I try and compile with the flags for automatic start-up the make fails due a missing file: sys/capability.h. Happens with both 4.2.6p5 and 4.2.7p314. Install the linux-headers package appropriate to your kernel. -- John Hasler jhas...@newsguy.com Dancing Horse Hill Elmwood, WI USA ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 29/10/2012 15:09, John Hasler wrote: David Taylor writes: if I try and compile with the flags for automatic start-up the make fails due a missing file: sys/capability.h. Happens with both 4.2.6p5 and 4.2.7p314. Install the linux-headers package appropriate to your kernel. Thanks, John. Fixed with: $ sudo apt-get install libcap-dev I do find it confusing that some headers are there, but not others. Perhaps part of making the Raspberry Pi a minimal system? At least NTP is now coming up after a reboot, and with PPS! I took your advice about altering the init.d script, but it's obviously a little more complicated than that as when you try and stop NTP it can't find the process. For the moment I'm not worrying about that. It still leaves the issue of why it doesn't connect to gpsd or, if it is connecting, why it sees no valid timestamps. While I run cgps NTP sees data from gpsd, but not otherwise. Thanks to everyone for their help. -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 10/29/2012 08:50, David Taylor wrote: On 29/10/2012 15:09, John Hasler wrote: David Taylor writes: if I try and compile with the flags for automatic start-up the make fails due a missing file: sys/capability.h. Happens with both 4.2.6p5 and 4.2.7p314. Install the linux-headers package appropriate to your kernel. Thanks, John. Fixed with: $ sudo apt-get install libcap-dev I do find it confusing that some headers are there, but not others. Perhaps part of making the Raspberry Pi a minimal system? At least NTP is now coming up after a reboot, and with PPS! I took your advice about altering the init.d script, but it's obviously a little more complicated than that as when you try and stop NTP it can't find the process. For the moment I'm not worrying about that. It still leaves the issue of why it doesn't connect to gpsd or, if it is connecting, why it sees no valid timestamps. While I run cgps NTP sees data from gpsd, but not otherwise. Your auto-start of gpsd isn't working because you probably lost the -n option in the init.d script. The -n option forces gpsd to open the serial connection to the receiver and begin processing data. If you do not have -n then gpsd will not open the serial port until something connects (in your case cgps). The misunderstanding is that ntpd is somehow connecting to gpsd. It is not, it is using shared memory (SHM) between its process and gpsd's process to collect data. This isn't a connection, it's the kernel memory management system allowing two programs to access a common spot in RAM. It's that shared memory segment that gpsd writes into and ntpd reads from. Beyond data showing up one doesn't know the other exists. So, since this isn't a connection as far as gpsd is concerned, it won't activate the serial port until a real (i.e. TCP/IP) connection is made hence the need for the -n option. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 2012-10-29, A C agcarver+...@acarver.net wrote: On 10/28/2012 22:36, David Taylor wrote: On 29/10/2012 03:32, A C wrote: [] Check the main ntpd log for error messages. I would if I knew where to find it! If it's based off Debian then it's usually /var/log/ or /var/log/ntpd/ otherwise find / -name ntpd.log should answer your question :) No they are called peerstats. orloopstats. or loopstats. where is the date in mmdd format. /var/log/ntp are usually where they are placed. Themessages from ntpd itself often go into /var/log/messages. e grep ntpd /var/log/messages ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 10/29/2012 16:07, unruh wrote: On 2012-10-29, A C agcarver+...@acarver.net wrote: On 10/28/2012 22:36, David Taylor wrote: On 29/10/2012 03:32, A C wrote: [] Check the main ntpd log for error messages. I would if I knew where to find it! If it's based off Debian then it's usually /var/log/ or /var/log/ntpd/ otherwise find / -name ntpd.log should answer your question :) No they are called peerstats. orloopstats. or loopstats. where is the date in mmdd format. /var/log/ntp are usually where they are placed. Themessages from ntpd itself often go into /var/log/messages. e grep ntpd /var/log/messages The main log isn't called *stats.* in any configuration that I've seen. :) All of my systems' messages for ntpd just happen to end up in /var/log/ntp/ntpd.log and everything else is under /var/log/ntp/ in one form or another. That's why I had suggested that search. I forget that it can go to messages if not configured that way but it's been so long since I configured my systems to record to independent files. I just carry the config over every time I upgrade the base system. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 2012-10-29, David Taylor david-tay...@blueyonder.co.uk.invalid wrote: On 29/10/2012 06:36, A C wrote: On 10/28/2012 22:36, David Taylor wrote: On 29/10/2012 03:32, A C wrote: [] Check the main ntpd log for error messages. I would if I knew where to find it! If it's based off Debian then it's usually /var/log/ or /var/log/ntpd/ otherwise find / -name ntpd.log should answer your question :) Thanks, A C. Yes, it's Debian-based, but there's no ntpd.log anywhere on the system. I checked the locations you mentioned and tried the find command. I've now managed to get a recent NTP to compile (takes about 25 minutes), and I would install it except that the page I have says it will install to: /usr/local/bin/ntpd as as there's nothing there at the moment I don't see how that would replace the existing version It will not since the current version is probably in /usr/bin/ntpd or /usr/sbin/ntpd. You could just copy it over. Move the current one away to some recoverable name (ntpd.old) and then copy the new one in. http://www.raspberrypi.org/phpBB3/viewtopic.php?f=41t=1970start=25 says: ___ mkdir build# make a convenient working directory cd build wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.6p5.tar.gz tar xvfz ntp-4.2.6p5.tar.gz cd ntp-4.2.6p5/ ./configure --enable-ATOM # takes about 45 minutes Slow machine! make # takes over 1 hour What are you running on. and old original IBMPC with the 8088 processor? sudo apt-get remove ntp# get rid of previously existing install of ntpd sudo make install # puts ntpd in /usr/local/bin/ntpdmkdir build # make a convenient working directory cd build wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.6p5.tar.gz tar xvfz ntp-4.2.6p5.tar.gz cd ntp-4.2.6p5/ ./configure --enable-ATOM # takes about 45 minutes make # takes over 1 hour sudo apt-get remove ntp# get rid of previously existing install of ntpd sudo make install # puts ntpd in /usr/local/bin/ntpd ___ I used ntp-4.2.7p314.tar.gz as I had that compiled and running on Windows. Maybe the instructions are out of date? ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 2012-10-29, David Taylor david-tay...@blueyonder.co.uk.invalid wrote: On 29/10/2012 09:44, Kennedy, Paul wrote: Dave, ntpd will be in /usr/bin or /usr/sbin. On my pi the /usr/sbin is the one in use. Just copy across your newly built binary and restart with a sudo /etc/init.d/ntp restart you can always kill the ntpd process (with a sudo ps -e | grep ntpd followed by sudo kill -9 processname), then run the one you bult interactively to make sure all is well. The debug offerings are really handy in the interactive mode. pk Making progress, Paul, thanks! I managed to get gpsd to autostart with the dpkg-reconfigure, but on ntp it said: ntp is broken or not fully install. I still says that after I copied the ntp executables from my local directory to /usr/bin. On trying to restart ntp it failed: pi@raspberrypi ~ $ sudo /etc/init.d/ntp restart [ ok ] Stopping NTP server: ntpd. [] Starting NTP server: ntpd/usr/sbin/ntpd: The ``user'' option has been disabled -- built without --enable-clockctl or --enable-linuxcaps ntpd - NTP daemon program - Ver. 4.2.7p314 USAGE: ntpd [ -flag [val] | --name[{=| }val] ]... \ [ server1 ... serverN ] failed! The script in init.d inserts a user (-u) option into the running of ntpd, and your compilation does not support that option because you did not also build with the --enable-linuxcaps option. Edit /etc/init.d/ntp to remove that option. The -u allows you to change the running userid andgroupid of the ntpd process after it has set itself up. This only works if the operating system allows a user to set or change the clock. but trying to run ntpd from the command-line it works correctly: pi@raspberrypi ~ $ sudo /usr/local/bin/ntpd pi@raspberrypi ~ $ and continues to run after I log out, with excellent PPS support. I took all the defaults when building NTP and set no special options myself. What have I done wrong now!? ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
A C agcarver+...@acarver.net wrote: On 10/28/2012 22:36, David Taylor wrote: On 29/10/2012 03:32, A C wrote: [] Check the main ntpd log for error messages. I would if I knew where to find it! If it's based off Debian then it's usually /var/log/ or /var/log/ntpd/ otherwise find / -name ntpd.log should answer your question :) Or an lsof command pointed at the ntpd's pid. (Assuming ntpd keeps the log file open constantly anyway). rick jones -- portable adj, code that compiles under more than one compiler these opinions are mine, all mine; HP might not want them anyway... :) feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] NTP tunning for OWD measurements
unruh un...@invalid.ca wrote: ??? An adequate gps can be had for $50, so if I place one at each place, the total cost is of order a few hundred dollars. Ie, less than your salary for a week, and certainly less than your salary while doing this research. I cannot speak to the physical plant conditions for Pedro's/pret3nder's project, but if these systems are in machine rooms, I suspect the greater cost in terms of both money and effort would be getting an antenna line run to somewhere where it can actually see satellites. rick jones -- denial, anger, bargaining, depression, acceptance, rebirth... where do you want to be today? these opinions are mine, all mine; HP might not want them anyway... :) feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 2012-10-29, David Taylor david-tay...@blueyonder.co.uk.invalid wrote: On 29/10/2012 10:45, David Taylor wrote: [] pi@raspberrypi ~ $ sudo /etc/init.d/ntp restart [ ok ] Stopping NTP server: ntpd. [] Starting NTP server: ntpd/usr/sbin/ntpd: The ``user'' option has been disabled -- built without --enable-clockctl or --enable-linuxcaps ntpd - NTP daemon program - Ver. 4.2.7p314 USAGE: ntpd [ -flag [val] | --name[{=| }val] ]... \ [ server1 ... serverN ] failed! There's a suggestion on the Web that I should have built with extra configuration switches, so I tried that, but it failed: $ ./configure --enable-clockctl --enable-linuxcaps --enable-clockctl is for NetBSD, not linux. $ make . . ../../ntpd/ntp_parser.c:2110:6: warning: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow] ../../ntpd/ntp_parser.c:2110:6: warning: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow] ../../ntpd/ntp_parser.c:2110:6: warning: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow] CC ntp_scanner.o CC ntpd.o ntpd.c:111:29: fatal error: sys/capability.h: No such file or directory compilation terminated. That is part of the libcap developement package. Make sure it is installed. make[3]: *** [ntpd.o] Error 1 make[3]: Leaving directory `/home/pi/ntp/ntp-dev-4.2.7p314/ntpd' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/pi/ntp/ntp-dev-4.2.7p314/ntpd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pi/ntp/ntp-dev-4.2.7p314' make: *** [all] Error 2 $ Looking round the disk I do see a file: /usr/include/linux/capability.h Nope that is a different file. I hope the ./configure was OK, but why this version doesn't build is beyond me at the moment! ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 2012-10-29, John Hasler jhas...@newsguy.com wrote: David Taylor writes: if I try and compile with the flags for automatic start-up the make fails due a missing file: sys/capability.h. Happens with both 4.2.6p5 and 4.2.7p314. Install the linux-headers package appropriate to your kernel. I think not. the linux-headers contains linux/capabilities, the sys/capabilities in in libcap developement. (Mind you I am extrapolating from Mandriva) ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
Kennedy, Paul p.kenn...@fugro.com.au wrote: I heard a rumour the ethernet port on the pi is serviced as part of the USB port, and has a 1 millisecond interrupt interval. I tried to read up on this, and did see something to that effect, but it is still very vague to me. It may be that the pi's CPU hasn't the oomph to get 1000 transactions per second on such a test anyway, but perhaps you could try a netperf TCP_RR test to the pi and see what transaction rate it reports. Just be certain to have the same rev of netperf on both sides (the pi and the load generator), start netserver on the pi (./netserver) and initiate the test from the load generator: netperf -H pi -l 30 -t TCP_RR -v 2 if you ./configure --enable-histogram when you build netperf on the load generator, it will then give you a histogram of the individual RTTs: $ src/netperf -H raj-8510w -t TCP_RR -v 2 MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to raj-8510w.local () port 0 AF_INET : histogram : demo : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size SizeTime Rate bytes Bytes bytesbytes secs.per sec 16384 87380 11 10.009473.34 16384 87380 Alignment Offset RoundTrip TransThroughput Local Remote Local Remote LatencyRate 10^6bits/s Send RecvSend Recvusec/Tran per sec Outbound Inbound 8 0 0 0 105.559 9473.336 0.076 0.076 Histogram of request/response times UNIT_USEC :0:0:0:0:0:0:0:0:0:0 TEN_USEC :0:0:0:0:0:0:0:0: 4827: 73601 HUNDRED_USEC :0: 15124: 1095: 47: 12:7:4:4:1:2 UNIT_MSEC :0:6:1:1:1:1:1:0:0:0 TEN_MSEC :0:0:0:0:0:0:0:0:0:0 HUNDRED_MSEC :0:0:0:0:0:0:0:0:0:0 UNIT_SEC :0:0:0:0:0:0:0:0:0:0 TEN_SEC :0:0:0:0:0:0:0:0:0:0 100_SECS: 0 HIST_TOTAL: 94735 You can use omni output selection to get the various percentiles directly: $ src/netperf -H raj-8510w -t TCP_RR -- -o rt_latency,min_latency,max_latency,p50_latency,p90_latency,p99_latency,mean_latency,stddev_latency MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to raj-8510w.local () port 0 AF_INET : histogram : demo : first burst 0 Round Trip Latency usec/tran,Minimum Latency Microseconds,Maximum Latency Microseconds,50th Percentile Latency Microseconds,90th Percentile Latency Microseconds,99th Percentile Latency Microseconds,Mean Latency Microseconds,Stddev Latency Microseconds 105.483,82,8103,97,135,205,105.16,58.10 rick jones -- the road to hell is paved with business decisions... these opinions are mine, all mine; HP might not want them anyway... :) feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
unruh wrote: Slow machine! What are you running on. and old original IBMPC with the 8088 processor? A few thousand times faster. He mentioned it was a raspberrypi.org which uses a broadcom.com/products/BCM2835 which has a arm.com/products/processors/classic/arm11/arm1176.php core @700Mhz ~= 875 DMIPS, @772MHZ 965DMIPS ? {Comparable performance to a circa 1997 leading edge PC, at much less cost, and very much less power?} e.g. as compared to Intel 8080 @ 2MHz ~= 0.33DMIPS Intel 386DX @ 33MHz ~= 9.9DMIPS Intel Pentium @100MHz ~= 188DMIPS Intel Pentium Pro @200MHz ~= 541DMIPS PowerPC 750 @233MHz ~= 525DMIPS Intel Pentium III @600MHz ~= 2,054DMIPS Intel Core 2E X6800 2 core @2.9GHz ~= 27,079DMIPS AMD Phenom II 940B 4 core @3.0GHz ~= 42,820DMIPS AMD Phenom II 1100T 6 core @3.3GHz ~= 78,440DMIPS Intel Core i7 3960X 6 core @3.3GHz ~= 177,730DMIPS -- E-Mail Sent to this address blackl...@anitech-systems.com will be added to the BlackLists. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
[ntp:questions] NTP client statistics scripts
Hi All I just reached the 600 viewable client limit, and in http://support.ntp.org/bin/view/Support/MonitoringAndControllingNTP#Who_is_using_my_NTP_server reference is made to http://www.schlitt.net/ntpstats/ntp_stats.txt http://saturn.dennishilberg.com/ntpstats/ntp_clients_stats.php Neither of which is up. After quite a bit of googling, all I can find is someone's copy at http://www.l3jane.net/websvn/wsvn/Factory/trunk/Shell/lib/ntp/?rev=365peg=365#ae6ee51726674487982b636d4611929b7 While I understand some people's comments about the load the scripts were generating, it would still be interesting to see some advanced statistics for NTP. What do other people use? Thanks John ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 2012-10-29, A C agcarver+...@acarver.net wrote: On 10/29/2012 16:07, unruh wrote: On 2012-10-29, A C agcarver+...@acarver.net wrote: On 10/28/2012 22:36, David Taylor wrote: On 29/10/2012 03:32, A C wrote: [] Check the main ntpd log for error messages. I would if I knew where to find it! If it's based off Debian then it's usually /var/log/ or /var/log/ntpd/ otherwise find / -name ntpd.log should answer your question :) No they are called peerstats. orloopstats. or loopstats. where is the date in mmdd format. /var/log/ntp are usually where they are placed. Themessages from ntpd itself often go into /var/log/messages. e grep ntpd /var/log/messages The main log isn't called *stats.* in any configuration that I've seen. :) All of my systems' messages for ntpd just happen to end up in /var/log/ntp/ntpd.log and everything else is under /var/log/ntp/ in one form or another. That's why I had suggested that search. I forget that it can go to messages if not configured that way but it's been so long since I configured my systems to record to independent files. I just carry the config over every time I upgrade the base system. Could you look in /etc/syslog.conf to see what level/facility you are recording to ntp.log? ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] Using Trimble TSIP under Linux
On 10/29/2012 19:54, A C wrote: On 10/29/2012 19:39, unruh wrote: Could you look in /etc/syslog.conf to see what level/facility you are recording to ntp.log? Everything (*.*) Forgot one key item, process filtering: First line of syslog.conf: !-ntpd [regular facility.level for various items] !ntpd *.* /var/log/ntp/ntpd.log ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions