Coder Social home page Coder Social logo

Comments (10)

Doncuppjr avatar Doncuppjr commented on May 30, 2024

Hello Stefano,

So one of the things we did in TS after 2.2 was to fix the clock. Yes it is fixed, not broken. In 2.2 and older, the clock was always stored as if though it were UTC and then an offset was applied in a non-standard way. Now, we use the unix standard of actually storing the time in UTC and use a zonefile for display of the correct local time. 

The difference in your config, is that you can only select one timezone at buildtime and it should be in the Standard Zone spec like America/Los_Angeles. There is an alltimezone package that will include all the zoneinfo files, so that the timezone can be selected from the kernel cmdline.

The RTC module is now built-in to the kernel, as the SMP and UP actually use different RTC drivers which have different names. This made switching a little confusing, as you had to include both and watch one make an error message. This could be your only problem, so please correct and retest your other issues.

Best,
Don Cupp

On Wednesday, May 21, 2014 2:22 AM, Stefano Ceccherini [email protected] wrote:

In Thinstation 5.2 hwclock is not functional, I guess the rtc driver is missing.
ts_test:/etc/init.d# hwclock -r
hwclock: can't open '/dev/misc/rtc': No such file or directory
ts_test:/etc/init.d# find /dev -name rtc
ts_test:/etc/init.d#
In Thinstation 5.1:
ts_test:# hwclock -r
Wed May 21 09:21:15 2014 0.000000 seconds
ts_test:
# find / -name rtc
/proc/driver/rtc
/sys/devices/pnp0/00:06/rtc
/sys/class/rtc
/run/udev/links/rtc
/dev/rtc
ts_test:~#

Reply to this email directly or view it on GitHub.

from thinstation.

jackburton79 avatar jackburton79 commented on May 30, 2024

Hi,
I set now TIME_ZONE=Europe/Rome in thinstation.conf.buildtime.
It seems it's still ignored, though, since, after syncing to the ntp server, "date" returns:

gio mag 22 07:24:37 UTC 2014

And it's 2 hours off.

I also tried TIME_ZONE=America/Los_Angeles (the default), but nothing changed.

Moreover, the hwclock is still not set though, since on poweroff the machine reverts to the old date.

from thinstation.

Doncuppjr avatar Doncuppjr commented on May 30, 2024

What machine is this?

On Thursday, May 22, 2014 12:27 AM, Stefano Ceccherini [email protected] wrote:

Hi,
I set now TIME_ZONE=Europe/Rome in thinstation.conf.buildtime.
It seems it's still ignored, though, since, after syncing to the ntp server, "date" returns:
gio mag 22 07:24:37 UTC 2014
And it's 2 hours off.
I also tried TIME_ZONE=America/Los_Angeles (the default), but nothing changed.
Moreover, the hwclock is still not set though, since on poweroff the machine reverts to the old date.

Reply to this email directly or view it on GitHub.

from thinstation.

Thinstation avatar Thinstation commented on May 30, 2024

Have you tried the other kernel?

On Thu, May 22, 2014 at 12:27 AM, Stefano Ceccherini <
[email protected]> wrote:

Hi,
I set now TIME_ZONE=Europe/Rome in thinstation.conf.buildtime.
It seems it's still ignored, though, since, after syncing to the ntp
server, "date" returns:

gio mag 22 07:24:37 UTC 2014

And it's 2 hours off.

I also tried TIME_ZONE=America/Los_Angeles (the default), but nothing
changed.

Moreover, the hwclock is still not set though, since on poweroff the
machine reverts to the old date.


Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-43856416
.

from thinstation.

jackburton79 avatar jackburton79 commented on May 30, 2024

2014-05-22 11:46 GMT+02:00 Donald A. Cupp Jr. [email protected]:

What machine is this?

Hi,
It's an old Compaq Evo D510 CMT, Pentium 4.
I can post the output of lshw if it's needed.

Have you tried the other kernel?

It works with the UP kernel.
It would be nice if it also worked with the SMP kernel, since we have newer
machines, and maintaining different builds for different machines is a PITA.

Thanks for your help.

from thinstation.

jackburton79 avatar jackburton79 commented on May 30, 2024

2014-05-22 12:44 GMT+02:00 Stefano Ceccherini [email protected]
:

2014-05-22 11:46 GMT+02:00 Donald A. Cupp Jr. [email protected]:

What machine is this?

Hi,
It's an old Compaq Evo D510 CMT, Pentium 4.
I can post the output of lshw if it's needed.

Have you tried the other kernel?

It works with the UP kernel.

When I say "it works" I mean hwclock works, but the TIME_ZONE is still not
respected.

from thinstation.

Thinstation avatar Thinstation commented on May 30, 2024

A timezone must be specified at buildtime, or you need to include the
alltimezones package if you want to specify it in the network.conf

On Thu, May 22, 2014 at 3:44 AM, Stefano Ceccherini <
[email protected]> wrote:

2014-05-22 12:44 GMT+02:00 Stefano Ceccherini <
[email protected]>
:

2014-05-22 11:46 GMT+02:00 Donald A. Cupp Jr. <[email protected]
:

What machine is this?

Hi,
It's an old Compaq Evo D510 CMT, Pentium 4.
I can post the output of lshw if it's needed.

Have you tried the other kernel?

It works with the UP kernel.

When I say "it works" I mean hwclock works, but the TIME_ZONE is still not
respected.


Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-43872490
.

from thinstation.

Thinstation avatar Thinstation commented on May 30, 2024

Hmmmm. Custom kernel time?

On Thu, May 22, 2014 at 3:44 AM, Stefano Ceccherini <
[email protected]> wrote:

2014-05-22 11:46 GMT+02:00 Donald A. Cupp Jr. [email protected]:

What machine is this?

Hi,
It's an old Compaq Evo D510 CMT, Pentium 4.
I can post the output of lshw if it's needed.

Have you tried the other kernel?

It works with the UP kernel.
It would be nice if it also worked with the SMP kernel, since we have newer
machines, and maintaining different builds for different machines is a
PITA.

Thanks for your help.


Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-43872443
.

from thinstation.

jackburton79 avatar jackburton79 commented on May 30, 2024

2014-05-22 12:47 GMT+02:00 Thinstation [email protected]:

Hmmmm. Custom kernel time?

What do you mean ?

With the UP kernel:

ts_test:~# dmesg | grep rtc
rtc_cmos 00:02: RTC can wake from S4
rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram
Using IPI Shortcut mode
rtc_cmos 00:02: setting system clock to 2014-05-22 16:33:42 UTC (1400776422)

With the SMP kernel:

ts_test:~# dmesg | grep rtc
Using IPI No-Shortcut mode

Maybe the SMP kernel uses HPET only, and the support for the old timers
isn't compiled in ?

from thinstation.

Doncuppjr avatar Doncuppjr commented on May 30, 2024

Looks like the Enhanced Real Time Clock option has been removed. I guess that's why your having this issue. It looks like putting the regular RTC in should solve the issue. Next kernel release.
On Thursday, May 22, 2014 7:49 AM, Stefano Ceccherini [email protected] wrote:

2014-05-22 12:47 GMT+02:00 Thinstation [email protected]:

Hmmmm. Custom kernel time?

What do you mean ?

With the UP kernel:

ts_test:~# dmesg | grep rtc
rtc_cmos 00:02: RTC can wake from S4
rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram
Using IPI Shortcut mode
rtc_cmos 00:02: setting system clock to 2014-05-22 16:33:42 UTC (1400776422)

With the SMP kernel:

ts_test:~# dmesg | grep rtc
Using IPI No-Shortcut mode

Maybe the SMP kernel uses HPET only, and the support for the old timers
isn't compiled in ?

Reply to this email directly or view it on GitHub.

from thinstation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.