[Soekris] NET4501 and ntp server.
Gabriel A. Reyes-Davila
gard at cgic.ucol.mx
Thu Dec 8 16:37:27 UTC 2005
Hi all. New to the group.
I am implementing a ntp server using an out of the box NET4501, freebsd
5.4,
and a GsynQ/T gps (Motorola's M12+ Timing) connected to serial port 1.
A derived TTL level PPS signal is conected to TMR1IN and pin 4 of JP3 in
the 4501,
corresponding to PIO6 AE10 of the SC520, and echoing to PIO8 AF9 of the
SC520,
corresponding to pin 6 of JP3 in the 4501.
The kernel was recompiled with the recommended options. The config file
used is
shown below. Also shown below are the rc.conf and ntp.conf files.
Problems:
1.- the PPS signal is not being echoed to pin 6 of JP3 in the 4501.
2.- Output of ntptime is:
ntp_gettime() returns code 0 (OK)
time c742ce86.44e6c07c Thu, Dec 8 2005 15:23:50.269,
(.269146468),
maximum error 1229 us, estimated error 10 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
modes 0x0 (),
offset -0.296 us, frequency -20.811 ppm, interval 4 s,
maximum error 1229 us, estimated error 10 us,
status 0x2107 (PLL,PPSFREQ,PPSTIME,PPSSIGNAL,NANO),
time constant 4, precision 0.001 us, tolerance 496 ppm,
pps frequency -20.811 ppm, stability 0.000 ppm, jitter 1.569 us,
intervals 1033, jitter exceeded 139, stability exceeded 0,
errors 1033.
as can be seen in the last line, errors is equal to intervals. The
number
increases and is reset to 0 at the begining of a new day and
increases again.
3.- The ntp.log file looks like:
8 Dec 14:14:46 ntpd[292]: frequency initialized -20.811 PPM from
/var/tmp/drift.log
8 Dec 14:16:29 ntpd[292]: synchronized to GPS_ONCORE(1), stratum=0
8 Dec 14:16:30 ntpd[292]: time reset +0.687289 s
8 Dec 14:16:30 ntpd[292]: kernel time sync disabled 2141
8 Dec 14:17:34 ntpd[292]: synchronized to GPS_ONCORE(1), stratum=0
8 Dec 14:17:34 ntpd[292]: kernel time sync disabled 2147
8 Dec 14:18:07 ntpd[292]: kernel time sync enabled 2107
8 Dec 14:20:04 ntpd[292]: kernel time sync disabled 2907
8 Dec 14:20:20 ntpd[292]: kernel time sync disabled 2907
8 Dec 14:20:35 ntpd[292]: kernel time sync enabled 2107
8 Dec 14:22:52 ntpd[292]: kernel time sync disabled 2907
8 Dec 14:23:09 ntpd[292]: kernel time sync enabled 2107
.
.
.
and continues that way increasing in size. Ocassionaly the message
8 Dec 15:17:29 ntpd[292]: pps sync disabled
is logged also.
Regarding the first problem, in sysctl.conf i have used
machdep.elan_gpio_config=-----P.E.--..--------..---------
and
machdep.elan_gpio_config=-----.P.E-----------------------
the problem continues.
Regarding the other problems i have tryed kernels with HZ 250, 500 and 1000.
Nothing changes. Also i have disabled fifo to serial port 1. So....
Any help to solve the above problems will be appreciated.
GARD
Related files:
*******************************************************************************
# ntp.conf
server 127.127.30.1 # Oncore GPS
logfile /var/tmp/ntp.log
statistics loopstats
statsdir /var/tmp/
filegen loopstats file LSTS1 type day nolink enable
driftfile /var/tmp/drift.log
*******************************************************************************
# ntp.oncore1
MODE 1
LAT 19 14.631468
LONG -103 42.141222
HTGPS 539.09 M
DELAY 120 NS
HARDPPS
Posn3D
CHAN 12
TRAIM YES
MASK 5*
******************************************************************************
# rc.conf
hostname="TS1.resco.ucol.mx"
ifconfig_sis0="192.168.24.99 netmask 255.255.255.0"
defaultrouter="192.168.24.1"
background_fsck="NO"
syslogd_enable="NO"
devd_enable="NO"
cron_enable="NO"
sshd_enable="NO"
portmap_enable="NO"
update_motd="NO"
sendmail_enable="NONE"
inetd_enable="YES"
ntpd_enable="YES"
varsize=32768
varmfs="YES"
tmpmfs="YES"
tmpsize=32768
******************************************************************************
# NET 4501 kernel config file.
machine i386
cpu I486_CPU
ident NET4501
maxusers 10
# Options Specific to the Soekris NET45XX
options CPU_ELAN
options CPU_SOEKRIS
options CPU_ELAN_PPS
options PPS_SYNC
options HZ=1000
#options HZ=500
#options HZ=250
options SCHED_4BSD # 4BSD scheduler
options INET # InterNETworking
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options MD_ROOT # MD is a potential root device
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_GPT # GUID Partition Tables.
options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
device apic # I/O APIC
device isa
device eisa
device pci
device ata
device atadisk # ATA disk drives
options ATA_STATIC_ID # Static device numbering
device npx
device sio # 8250, 16[45]50 based serial ports
device miibus # MII bus support
device sis # Silicon Integrated Systems SiS 900/SiS 7016
device loop # Network loopback
device mem # Memory and kernel memory devices
device io # I/O device
device random # Entropy device
device ether # Ethernet support
device pty # Pseudo-ttys (telnet etc)
device md # Memory "disks"
device gif # IPv6 and IPv4 tunneling
device faith # IPv6-to-IPv4 relaying (translation)
More information about the Soekris-tech
mailing list