ntpd.conf fragment (there are subtle differences due to renaming of serial ports in FreeBSD 8.0) for nanobsd (FreeBSD8.0) attached together with kernel config file.

The hints:
     hint.atrtc.0.at=
etc
at the end of the net4501.hints file need to be added.

Bruce

Bob Camp wrote:
Hi

Do you remember what the exact setting was to include the RTC driver in the 
kernel?

Bob


On Jan 21, 2010, at 7:43 PM, Bruce Griffiths wrote:

Hal Murray wrote:
[email protected] said:

Only issue for 8.0 was to ensure the real time clock driver was
enabled or the initial time error would often be too large.

There is a command line switch that allows ntpd to start on systems that have
a bogus initial date/time.

 From the man page:
        -g, --panicgate
               Allow the first adjustment to be Big.   This  option  may
               appear an unlimited number of times.

               Normally,  ntpd exits with a message to the system log if
               the offset exceeds the panic threshold, which is  1000  s
               by  default. This option allows the time to be set to any
               value without restriction; however, this can happen  only
               once.  If the threshold is exceeded after that, ntpd will
               exit with a message to the system log. This option can be
               used with the -q and -x options.  See the tinker configu-
               ration file directive for other options.



I was aware of that, but using the real time clock seems to work better for 
subsequent power on, once the real time clock is set correctly.

However with 8.0 the real time clock driver had to be specifically included in 
the kernel config file whereas in 7.2 it was automatically included.

Bruce


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


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


# /etc/rc.d/ntpd
ln -sf /dev/elan-mmcr   /dev/pps0
ln -sf /dev/cuau1 /dev/oncore.serial.0 
ln -sf /dev/cuau1 /dev/oncore.pps.0
#
# NET4501 -- Custom kernel configuration file for FreeBSD/i386
#

ident           NET4501_8_0

cpu             I486_CPU
options         CPU_ELAN        #net4501
options         CPU_ELAN_PPS    #net4501
options         CPU_SOEKRIS
options         HZ=1000
options         PPS_SYNC

# to statically compile in device wiring instead of /boot/device/hints
hints           "/usr/src/tools/tools/nanobsd/Soekris/NET4501.hints"            
#

options         SCHED_ULE               # ULE scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
options         INET6                   # IPv6 communications protocols
options         SCTP                    # Stream Control Transmission Protocol
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         MD_ROOT                 # MD is a potential root device
options         PROCFS                  # Process filesystem (requires PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_PART_GPT           # GUID Partition Tables.
options         GEOM_LABEL              # Provides labelization
options         COMPAT_43TTY            # BSD 4.3 TTY compat [KEEP THIS!]
options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI
options         KTRACE                  # ktrace(1) support
options         STACK                   # stack(9) support
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
#options        ADAPTIVE_GIANT          # Giant mutex is adaptive.
#options        STOP_NMI                # Stop CPUS using NMI instead of IPI
options         AUDIT                   # Security event auditing

# CPU frequency control
device          cpufreq

# Bus support.
#device         eisa
device          pci

# ATA and ATAPI devices
device          ata
device          atadisk         # ATA disk drives
options         ATA_STATIC_ID   # Static device numbering

# Add suspend/resume support for the i8254.
device          pmtimer

# Serial (COM) ports
#device         sio             # 8250, 16[45]50 based serial ports
device          uart            # Generic UART driver

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device          miibus          # MII bus support
device          sis             # Silicon Integrated Systems SiS 900/SiS 7016

# Pseudo devices.
device          loop            # Network loopback
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)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device          bpf             # Berkeley packet filter
# $FreeBSD: src/sys/i386/conf/GENERIC.hints,v 1.16 2006/05/17 21:25:22 marius 
Exp $
hint.fdc.0.at="isa"
hint.fdc.0.port="0x3F0"
hint.fdc.0.irq="6"
hint.fdc.0.drq="2"
hint.fd.0.at="fdc0"
hint.fd.0.drive="0"
hint.fd.1.at="fdc0"
hint.fd.1.drive="1"
hint.ata.0.at="isa"
hint.ata.0.port="0x1F0"
hint.ata.0.irq="14"
hint.ata.1.at="isa"
hint.ata.1.port="0x170"
hint.ata.1.irq="15"
hint.adv.0.at="isa"
hint.adv.0.disabled="1"
hint.bt.0.at="isa"
hint.bt.0.disabled="1"
hint.aha.0.at="isa"
hint.aha.0.disabled="1"
hint.aic.0.at="isa"
hint.aic.0.disabled="1"
hint.atkbdc.0.at="isa"
hint.atkbdc.0.port="0x060"
hint.atkbd.0.at="atkbdc"
hint.atkbd.0.irq="1"
hint.psm.0.at="atkbdc"
hint.psm.0.irq="12"
hint.vga.0.at="isa"
hint.sc.0.at="isa"
hint.sc.0.flags="0x100"
hint.vt.0.at="isa"
hint.vt.0.disabled="1"
hint.apm.0.disabled="1"
hint.apm.0.flags="0x20"
#hint.sio.0.at="isa"
#hint.sio.0.port="0x3F8"
#hint.sio.0.flags="0x10"
#hint.sio.0.irq="4"
#hint.sio.1.at="isa"
#hint.sio.1.port="0x2F8"
#hint.sio.1.flags="0x02"
#hint.sio.1.irq="3"
#hint.sio.2.at="isa"
#hint.sio.2.disabled="1"
#hint.sio.2.port="0x3E8"
#hint.sio.2.irq="5"
#hint.sio.3.at="isa"
#hint.sio.3.disabled="1"
#hint.sio.3.port="0x2E8"
#hint.sio.3.irq="9"
hint.uart.0.at="isa"
hint.uart.0.port="0x3F8"
hint.uart.0.flags="0x10"
hint.uart.0.irq="4"
hint.uart.1.at="isa"
hint.uart.1.port="0x2F8"
hint.uart.1.irq="3"
hint.uart.1.flags="0x02"
hint.ppc.0.at="isa"
hint.ppc.0.irq="7"
hint.ed.0.at="isa"
hint.ed.0.disabled="1"
hint.ed.0.port="0x280"
hint.ed.0.irq="10"
hint.ed.0.maddr="0xd8000"
hint.cs.0.at="isa"
hint.cs.0.disabled="1"
hint.cs.0.port="0x300"
hint.sn.0.at="isa"
hint.sn.0.disabled="1"
hint.sn.0.port="0x300"
hint.sn.0.irq="10"
hint.ie.0.at="isa"
hint.ie.0.disabled="1"
hint.ie.0.port="0x300"
hint.ie.0.irq="10"
hint.ie.0.maddr="0xd0000"
hint.fe.0.at="isa"
hint.fe.0.disabled="1"
hint.fe.0.port="0x300"
hint.le.0.at="isa"
hint.le.0.disabled="1"
hint.le.0.port="0x280"
hint.le.0.irq="10"
hint.le.0.drq="0"
#Real time clock settings
hint.atrtc.0.at="isa"
hint.atrtc.0.port="0x70"
hint.artc.0.irq="8"
_______________________________________________
time-nuts mailing list -- [email protected]
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to