i'am trying to change the ntpd-makefile via
vi ../packages/net/ntpd/Makefile

and adding the needing tweaks:
--enable-LOCAL-CLOCK --enable-RAWDCF

but no matter, when recompiling:
make package/ntpd/{clean,compile} V=s

i cannot see that 'config.h' has changed:
/home/bastian/owrtbuild/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/ntp-nossl/ntp-4.2.6p5/config.h

but comparing with the configure-script:
/home/bastian/owrtbuild/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/ntp-nossl/ntp-4.2.6p5/configure

it should?! on the router itself, i can see that it does not work:

root@box:~ cat /tmp/ntp.log 
25 Apr 16:56:39 ntpd[3036]: refclock_newpeer: clock type 8 invalid
25 Apr 16:56:39 ntpd[3036]: 127.127.8.0 interface 127.0.0.1 -> (none)
25 Apr 16:56:39 ntpd[3036]: 0.0.0.0 c016 06 restart
25 Apr 16:56:39 ntpd[3036]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
25 Apr 16:56:39 ntpd[3036]: 0.0.0.0 c011 01 freq_not_set
25 Apr 16:59:16 ntpd[3036]: ntpd exiting on signal 15

i tried to use an USB-hub, but it does not change anything.
i can see that /dev/ttyUSB0 pops up and a also set the symlink via:
ln -s /dev/ttyUSB0 /dev/refclock-0

my ntp-config for reference:
root@box:~ cat /etc/ntp.conf 
server 127.127.8.0 prefer mode 14
logfile /tmp/ntp.txt
logconfig =all

has anybody managed to get a DCF77-clock running with OpenWrt?
(here: Expert mouseCLOCK USB II)

bye, bastian
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to