NTP Server mit OpenBSD
Inhaltsverzeichnis |
NTP Server mit OpenBSD
Aufbau eines NTP Servers mit GPS und DCF-77 als Zeitquellen
Warum OpenBSD?
Ich habe z. Z. (Anfang 2024) keine preisgünstigen DCF-77 Empfänger für den PC (mit RS-232 oder USB-Schnittstelle) gefunden.
Ich habe eine gebrauchten "Gude ADS Expert mouseClock USB rev 1.10" Empfänger erworben. Für diesen Empfänger hat OpenBSD einen Treiber.
Der Linux Treiber für den "Gude ADS Expert mouseClock USB rev 1.10" gibt es im Quelltext für den Linux Kernel 2.6.x. Dieser lässt sich nicht ohne größere Anpassungen an einen aktuellen Kernel (6.6.x) compilieren.
Siehe z. B.: https://forum.ubuntuusers.de/topic/gude-dcf77-funkuhr-usb-version-1-unter-precise/
Der "Gude ADS Expert mouseClock USB rev 1.10" Empfänger verfügt über einen Cologne (https://colognechip.com/) USB-Seriell Chip.
- https://github.com/openbsd/src/blob/634073900323bdd83ca3b5eb0732098812c0aa24/sys/dev/usb/udcf.c#L302
Der Treiber für OpenBSD lautet:
Eigenbau DCF-77 Empfänger
Ich habe versucht mit diesem DCF-77 Modul einen Empfänger für den PC (an RS-232 Schnittstelle) zu bauen:
https://de.elv.com/dcf-empfangsmodul-dcf-2-091610
Leider werden keine gültigen Daten empfangen mit dem NTPD unter Linux:
2024-02-10T18:32:59.809013+01:00 ntp-srv ntpd[8972]: ERR: parse: convert_rawdcf: parity check FAILED for "###############RADMLS1248124P124812P1248121241248112481248P" 2024-02-10T18:33:59.819556+01:00 ntp-srv ntpd[8972]: ERR: parse: convert_rawdcf: parity check FAILED for "###############RADMLS1248124P124812P1248121241248112481248P" 2024-02-10T18:35:59.816957+01:00 ntp-srv ntpd[8972]: ERR: parse: convert_rawdcf: INCOMPLETE DATA - time code only has 56 bits
Mit der Schnittstelle eines Rasperry Pi funktioniert es.
- https://blog.debuglevel.de/raspberry-pi-und-dcf77-empfaenger-von-conrad/
- https://weberblog.net/ntp-server-via-dcf77-on-a-raspberry-pi/
- https://do5fdr.darc.de/dcf77.html (Über Seriell-USB Wandler am PC)
Möglicherweise ist eine weitere Beschaltung nötig:
Installation OpenBSD
Als Hardware kommt ein Futro S900 im UEFI Modus zum Einsatz:
OpenBSD 7.4 (GENERIC.MP) #1397: Tue Oct 10 09:02:37 MDT 2023 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3931086848 (3748MB) avail mem = 3792220160 (3616MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xad900018 (55 entries) bios0: vendor FUJITSU // American Megatrends Inc. version "V4.6.5.4 R1.18.0 for D3313-A1x" date 07/10/2018 bios0: FUJITSU FUTRO S920 efi0 at bios0: UEFI 2.3.1 efi0: American Megatrends rev 0x4028e acpi0 at bios0: ACPI 5.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT MCFG HPET VFCT SSDT SSDT CRAT SSDT SSDT SSDT SSDT acpi0: wakeup devices LAN1(S4) LAN2(S4) SBAZ(S4) OHC1(S4) EHC1(S4) OHC2(S4) EHC2(S4) OHC3(S4) EHC3(S4) XHC0(S4) GFX_(S3) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD GX-415GA SOC with Radeon(tm) HD Graphics, 1497.25 MHz, 16-00-01, patch 07000110 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,S KINIT,TOPEXT,DBKP,PCTRL3,HWPSTATE,ITSC,BMI1,IBPB,XSAVEOPT cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 2-way I-cache, 2MB 64b/line 16-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD GX-415GA SOC with Radeon(tm) HD Graphics, 1497.29 MHz, 16-00-01, patch 07000110 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PCTRL3,HWPSTATE,ITSC,BMI1,IBPB,XSAVEOPT cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 2-way I-cache, 2MB 64b/line 16-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: AMD GX-415GA SOC with Radeon(tm) HD Graphics, 1497.40 MHz, 16-00-01, patch 07000110 cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PCTRL3,HWPSTATE,ITSC,BMI1,IBPB,XSAVEOPT cpu2: 32KB 64b/line 8-way D-cache, 32KB 64b/line 2-way I-cache, 2MB 64b/line 16-way L2 cache cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: AMD GX-415GA SOC with Radeon(tm) HD Graphics, 1497.48 MHz, 16-00-01, patch 07000110 cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PCTRL3,HWPSTATE,ITSC,BMI1,IBPB,XSAVEOPT cpu3: 32KB 64b/line 8-way D-cache, 32KB 64b/line 2-way I-cache, 2MB 64b/line 16-way L2 cache cpu3: smt 0, core 3, package 0 ioapic0 at mainbus0: apid 5 pa 0xfec00000, version 21, 24 pins ioapic1 at mainbus0: apid 6 pa 0xfec01000, version 21, 32 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xe0000000, bus 0-255 acpihpet0 at acpi0: 14318180 Hz