!Alarm not setting time from network
Stephen Unwin (1516) 154 posts |
Hi all, Hardware is RPi3B with the latest ROM (beta30Mar16), HD4 and firmware I could find. Is it me doing something fundamentally stupid, (wouldn’t be the first time and certainly won’t be the last!) :) As I type this, old RPi has corrected itself. Now showing “Sync success” |
Chris Mahoney (1684) 2165 posts |
I’ve seen the same issue at my end once or twice and figured that it was just my ISP playing up (problems aren’t rare and I’m changing to a competitor once it comes to my town!) It’s interesting that it’s not just me. It does seem to work eventually… bizarre. |
Stephen Unwin (1516) 154 posts |
Hi Chris, Although to be fair, the network cable on the old is 1m long and the new is 2m long. Must be a delay in the cable! :) |
Martin Avison (27) 1494 posts |
Note that since RISC OS v5.19 it is not Alarm (or Organizer) that sets the date and time, because RISC OS was changed to handle it within the OS (where it should really always have been). Both Alarm and Organizer were changed so that if ‘set clock’ was selected they just invoke the RISC OS Configuration for Date and Time (which is also available directly). I supect that the ‘not connected’ means just that – it has not (yet) found an internet connection. Perhaps the internet is only checked by the configuration plugin at intervals? |
Chris Mahoney (1684) 2165 posts |
I’m not; I’m on the other side of the world so chances are that it isn’t an ISP issue :)
Yep, I just assumed that the mention of Alarm was just a “typo” (for want of a better word). Personally I was using Date and Time directly. |
John Sandgrounder (1650) 574 posts |
Having seen thiss topic, I tried to update the time on my Pi 1 (using !Alarm) and got a response of ‘Busy’. This was repeatable both with pool.ntp.org and with my ISP’s time server. So,I re-booted the Pi (which had been running for months) and everything is OK now. |
Stephen Unwin (1516) 154 posts |
I suspect so! |
Rick Murray (539) 13840 posts |
On the other hand, if you’ve done a Ctrl-Break rather than a proper shutdown, the CMOS will be in a default state which I suspect is more applicable to a machine of the ‘90s than now. |
Chris Mahoney (1684) 2165 posts |
I always do Ctrl-Break after updating the ROM; I do need to set the screen resolution and a couple of other things again, but I too have had the “corruption” issue if I do a shutdown. From memory, the issue was something to do with Unplug bits pointing to the wrong modules since they can get different IDs in an updated ROM (I think this was particularly an issue when going from 5.21 to 5.23).
I’ve just looked at the code (cddl.RiscOS.Sources.HWSupport.SD.SDCMOS.s.sdcmos) and although I’m a novice when it comes to assembler, it does seem to re-check for the correct byte range when writing. I doubt that it’s corrupting the ROM itself, but rather writing data that is no longer compatible with the new ROM. |
Steve Pampling (1551) 8170 posts |
Back in the days of infrequent real ROM updates the official change sequence included reinserting all unplugged modules so re-arranging the order of modues didn’t leave a required module unplugged. |