Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 13 of 19 FirstFirst ... 31112131415 ... LastLast
Results 181 to 195 of 273

Thread: Vix 5.1.006. Time wrong

  1. #181
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,422
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    @SpaceRat
    “In addition, I got a new job lately, so I don't have 12h a day left for E2 anymore ...“
    Congratulations

    “Image size“ - thought that was why you introduced upx and “flashsize“. ??
    Gigablue Quad 4K & UE 4K
    .........FBC Tuners:
    ------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
    ------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
    .......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
    AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
    Zgemma H9 C/S into Giga4K

  2. #182
    SpaceRat's Avatar
    Title
    Senior Member
    Join Date
    Apr 2015
    Posts
    206
    Thanks
    25
    Thanked 79 Times in 52 Posts
    Quote Originally Posted by twol View Post
    @SpaceRat
    “In addition, I got a new job lately, so I don't have 12h a day left for E2 anymore ...“
    Congratulations
    Thanks


    Quote Originally Posted by twol View Post
    “Image size“ - thought that was why you introduced upx and “flashsize“. ??
    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).
    I also wanted to get rid of certain Turbo-DM800 restrictions, that means tools with limited functionality, just because we needed to keep the image as small as possible to still be able to build images for 64MB junk boxes, while almost no really usable box has less than 256 MB of flash.

    And the idea for the dialog based recovery was, that any IPv6 capable machine inside a LAN can locate and connect any IPv6 capable machine, even if the other side is entirely borked, because the link-local address remains valid, even if you otherwise don't use IPv6 at all!
    So a small tool on any PC could locate a borked E2 box, initiate an ssh or telnet session and invoke the recovery routine.

    Almost everything would be recoverable through such a system:
    - Store the borked settings
    - Gather debug/crash logs from boxes that Joe Average could never access due to networking being borked
    - Reset to default values
    - Restore a different set of backup settings
    - Flash a backup image through ofgwrite
    - Flash a newer/older original image through ofgwrite
    - ...

    "dialog" based means: A user interface like "make menuconfig", with menus and submenus ... thus very user-friendly, especially compared to a bunch of shell commands.

    It ended up with dozens of boxes being unflashable due to the CFE flash not even being able to flash images with as few as 100 MB, although the boxes had 256, 512 or even 1024 MB of flash size (This btw. is also the reason why image backups are often worthless, because as soon as you create a backup of original image + some plugins, you also often exceed these ~96 MB).

    That's why we added the virtual FLASHSIZE 96 MB:
    No real box has 96MB, it's just an indicator that the box doesn't suffer from "smallflash" (= 64MB), but also has very limited image sizes for USB flash.
    Receiver/TV:
    • Vu+ DuoČ 4*S2+2*C / 1.8TB HDD / OpenATV 6.1@Samsung 50" Plasma
    • AX Quadbox 2400 / 2*S2/2*C / 930GB HDD / OpenATV 6.1@Samsung 32" LCD
    • Vu+ SoloČ / 465GB HDD / OpenATV 6.1
    • Vu+ SoloČ / 230GB HDD / OpenATV 6.1
    • DVBSky S2-Twin-Tuner PCIe@Samsung SyncMaster T240HD (PC)
    Pay TV: Redlight Mega, Brazzers TV Europe, XXL, HD-, Sky
    Internet: Unitymedia 1play 100 / Cisco EPC3212 + Linksys WRT1900ACS + Fritz!Box 7390 / IPv4 (UM) + IPv6 (HE)

  3. #183
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    Quote Originally Posted by birdman View Post
    However, ntpdate itself can be run with a -p1 option to only get one sample, and then takes 0.7 seconds on my et8000.

    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
    That should be good enough.
    Thanks @birdman - interesting that the "-p1" option is available in ntpdate. As I have a time server (stratum 1) on my LAN I could take advantage of that. Maybe "ntpclient" might be more appropriate for a quick initial time setting on our boxes, though? Good find!
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  4. #184
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,797
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by fat-tony View Post
    Maybe "ntpclient" might be more appropriate for a quick initial time setting on our boxes, though? Good find!
    Sticking with ntpdate, but speeding up its first (boot-time) usage should be fine.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  5. #185
    SpaceRat's Avatar
    Title
    Senior Member
    Join Date
    Apr 2015
    Posts
    206
    Thanks
    25
    Thanked 79 Times in 52 Posts
    Quote Originally Posted by ccs View Post
    .... ET10K

    root@et10000:~# cat /proc/stb/fp/rtc
    0

    (I use DVB time.)
    It has been reported for that box.
    The affected boxes have different stickers on the front, but behind them all are the same driver devs.

    Gesendet von meinem SM-N910F mit Tapatalk
    Receiver/TV:
    • Vu+ DuoČ 4*S2+2*C / 1.8TB HDD / OpenATV 6.1@Samsung 50" Plasma
    • AX Quadbox 2400 / 2*S2/2*C / 930GB HDD / OpenATV 6.1@Samsung 32" LCD
    • Vu+ SoloČ / 465GB HDD / OpenATV 6.1
    • Vu+ SoloČ / 230GB HDD / OpenATV 6.1
    • DVBSky S2-Twin-Tuner PCIe@Samsung SyncMaster T240HD (PC)
    Pay TV: Redlight Mega, Brazzers TV Europe, XXL, HD-, Sky
    Internet: Unitymedia 1play 100 / Cisco EPC3212 + Linksys WRT1900ACS + Fritz!Box 7390 / IPv4 (UM) + IPv6 (HE)

  6. #186
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,797
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by fat-tony View Post
    As I have a time server (stratum 1) on my LAN I could take advantage of that.
    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.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  7. The Following User Says Thank You to birdman For This Useful Post:

    Joe_90 (24-01-18)

  8. #187
    SpaceRat's Avatar
    Title
    Senior Member
    Join Date
    Apr 2015
    Posts
    206
    Thanks
    25
    Thanked 79 Times in 52 Posts
    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
    Receiver/TV:
    • Vu+ DuoČ 4*S2+2*C / 1.8TB HDD / OpenATV 6.1@Samsung 50" Plasma
    • AX Quadbox 2400 / 2*S2/2*C / 930GB HDD / OpenATV 6.1@Samsung 32" LCD
    • Vu+ SoloČ / 465GB HDD / OpenATV 6.1
    • Vu+ SoloČ / 230GB HDD / OpenATV 6.1
    • DVBSky S2-Twin-Tuner PCIe@Samsung SyncMaster T240HD (PC)
    Pay TV: Redlight Mega, Brazzers TV Europe, XXL, HD-, Sky
    Internet: Unitymedia 1play 100 / Cisco EPC3212 + Linksys WRT1900ACS + Fritz!Box 7390 / IPv4 (UM) + IPv6 (HE)

  9. #188
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    Quote Originally Posted by SpaceRat View Post
    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
    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. I can't remember exactly what the comment said, but I disabled in case there was some impact on my setup.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  10. #189
    SpaceRat's Avatar
    Title
    Senior Member
    Join Date
    Apr 2015
    Posts
    206
    Thanks
    25
    Thanked 79 Times in 52 Posts
    Quote Originally Posted by fat-tony View Post
    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.
    It does (Since 25 days):
    https://github.com/oe-alliance/oe-al...c5adcb2f00ad7c
    [ntp] Various enhancements

    - Only wait as long as necessary (and only on ifup)
    - 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)
    - Always step (rather than slew) time on ifup

    and

    https://github.com/oe-alliance/oe-al...7a9fdc31ec08f0
    [busybox-udhcpc] Add support for learning NTP servers through DHCPv4

    In action:
    Code:
    Jan 24 20:15:22 solo2se daemon.notice ntpdate[15230]: adjust time server 192.168.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.
    Receiver/TV:
    • Vu+ DuoČ 4*S2+2*C / 1.8TB HDD / OpenATV 6.1@Samsung 50" Plasma
    • AX Quadbox 2400 / 2*S2/2*C / 930GB HDD / OpenATV 6.1@Samsung 32" LCD
    • Vu+ SoloČ / 465GB HDD / OpenATV 6.1
    • Vu+ SoloČ / 230GB HDD / OpenATV 6.1
    • DVBSky S2-Twin-Tuner PCIe@Samsung SyncMaster T240HD (PC)
    Pay TV: Redlight Mega, Brazzers TV Europe, XXL, HD-, Sky
    Internet: Unitymedia 1play 100 / Cisco EPC3212 + Linksys WRT1900ACS + Fritz!Box 7390 / IPv4 (UM) + IPv6 (HE)

  11. The Following User Says Thank You to SpaceRat For This Useful Post:

    Joe_90 (24-01-18)

  12. #190
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,797
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by SpaceRat View Post
    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.
    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.
    EDIT: only now have I read the previous post....
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  13. #191
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,797
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by birdman View Post
    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.
    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 /etc/default/ntpdate (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).
    All a bit of a mess, really.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  14. The Following User Says Thank You to birdman For This Useful Post:

    Joe_90 (25-01-18)

  15. #192
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    Whole thing is a mess at this point. I've gone back to "time by transponder" on my HD51...
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  16. #193
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,797
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Hopefully I'll write some code tomorrow today and sort some of this out, or at least have some scripts with comments about what is going on....
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  17. The Following User Says Thank You to birdman For This Useful Post:

    Joe_90 (25-01-18)

  18. #194
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,797
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by SpaceRat View Post
    - 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)
    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?
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  19. #195
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,797
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by SpaceRat View Post
    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>.
    That issue was introduced by fake-hwclock setting an approximate time. Before that, if your system was starting from zero then m_time_ready 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 NetworkTime.py 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...
    Last edited by birdman; 25-01-18 at 18:39.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  20. The Following User Says Thank You to birdman For This Useful Post:

    Joe_90 (26-01-18)

Page 13 of 19 FirstFirst ... 31112131415 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.