Thanks@SpaceRat
“In addition, I got a new job lately, so I don't have 12h a day left for E2 anymore ...“
Congratulations![]()
Actually, FLASHSIZE was introduced to create "bigger, better, Burger King" images, e.g. with translations on the console too, more sophisticated recovery (e.g. a "dialog" based emergency recovery tool on the box, in most cases, a box can still be reached through ssh and/or telnet, even if everything else is f*cked up, even networking).“Image size“ - thought that was why you introduced upx and “flashsize“. ??
However, ntpdate itself can be run with a -p1 option to only get one sample, and then takes 0.7 seconds on my et8000.
That should be good enough.Code:root@et8000:~# time ntpdate -q -p 1 ntp.ubuntu.com server 91.189.91.157, stratum 2, offset 0.000598, delay 0.11975 server 91.189.94.4, stratum 2, offset 0.000928, delay 0.04651 server 91.189.89.199, stratum 2, offset 0.001112, delay 0.04568 server 91.189.89.198, stratum 2, offset 0.001159, delay 0.04585 23 Jan 18:41:11 ntpdate[1397]: adjust time server 91.189.89.199 offset 0.001112 sec real 0m0.740s user 0m0.010s sys 0m0.007s
Sticking with ntpdate, but speeding up its first (boot-time) usage should be fine.Maybe "ntpclient" might be more appropriate for a quick initial time setting on our boxes, though? Good find!
It has been reported for that box..... ET10K
root@et10000:~# cat /proc/stb/fp/rtc
0
(I use DVB time.)
Yes. But the way this setting is used it a little odd.As I have a time server (stratum 1) on my LAN I could take advantage of that.
The images can learn the NTP server via DHCP if the DHCP server supports that option.
No need for any manual adjustment in that case.
Gesendet von meinem SM-N910F mit Tapatalk
It does (Since 25 days):I've tested that option myself - DHCP server pointing to NTP server on my LAN. I disabled the option subsequently because of some comment in one of the threads saying that enigma doesn't use DHCP-supplied NTP addresses.
Jan 24 20:15:22 solo2se daemon.notice ntpdate[15230]: adjust time server [b]192.168.[/b]XXX.1 offset -0.000973 sec
Jan 24 20:15:22 solo2se daemon.notice stb-hwclock: Current system time has been written into FP pseudo RTC.
It can - if DHCP is setting it. But that may not fit in with how enigma2 is setting it. Not sure yet - I'm not sure where a DHCP setting ends up, or how it ends up there - I seem to recall a patch a few days ago to handle that.The images can learn the NTP server via DHCP if the DHCP server supports that option.
No need for any manual adjustment in that case.
Not only that, but of you do a re-flash and restore your settings they will imply you are using what you have configured (as it is in the settings file), but in fact you will be using "pool.ntp.org", as [FONT=courier\ new]/etc/default/ntpdate[/FONT] (the file which is actually used) isn't backed-up by default so you get the system default, and this is only changed when you change the setting in enigma2 (unless you change it to "pool.ntp.org", when it won't be changed at all).Yes. But the way this setting is used it a little odd.
In particular, as far as I can tell if you ever change it to something other than "pool.ntp.org" you can never change it back to "pool.ntp.org". Something I need to look at.
There is also a DHCP option (option 152 - see RFC6926) to get the time directly from the DHCP server. Could/does the DHCP server get that?- Add support for (and prefer) local NTP servers (e.g. own router) learned through DHCPv4 (odhcp6c does not support the ntp-servers option, so no IPv6 support yet)
That issue was introduced by fake-hwclock setting an approximate time. Before that, if your system was starting from zero then [FONT=courier\ new]m_time_ready[/FONT] wouldn't have become set until a "real" time was set.Then there is a coding issue inside E2 itself
There is a variable m_time_ready somewhere and no time related checks should be done before it has been set <full stop>.
The first test seems to work. It uses a quick time set (-p 1) and the sysvinit script run straight after the network script succeeds with no backgrounding:Untested - I may post them here later for comments while testing...
ntpdate-sync: called with
ntpdate-sync: ifup call ignored...
ntpdate-sync: called with
ntpdate-sync: ifup call ignored...
time-setter: start called
ntpdate-sync: called with -fg -q -abs
ntpdate-sync: calling ntpdate
ntpdate-sync: ntpdate succeeded
ntpdate-sync: ntpdate exit code 0
The first test seems to work. It uses a quick time set (-p 1) and the sysvinit script run straight after the network script succeeds with no backgrounding:Code:ntpdate-sync: called with ntpdate-sync: ifup call ignored... ntpdate-sync: called with ntpdate-sync: ifup call ignored... time-setter: start called ntpdate-sync: called with -fg -q -abs ntpdate-sync: calling ntpdate ntpdate-sync: ntpdate succeeded ntpdate-sync: ntpdate exit code 0
That issue was introduced by fake-hwclock setting an approximate time. Before that, if your system was starting from zero then [FONT=courier\ new]m_time_ready[/FONT] wouldn't have become set until a "real" time was set.
I think I now have a sysvinit script (to replace ifup links), an ntpdate-sync and a [FONT=courier\ new]NetworkTime.py[/FONT] the init script will try to set an NTP time ASAP, background the setting if that fails and the enigma2 code won't set m_time_read until a time is set (by NTP or transponder).
Untested - I may post them here later for comments while testing...