Openembedded Core Discussions
 help / color / mirror / Atom feed
* 32 bit time_t in openembedded
@ 2015-09-08 11:44 Umut Tezduyar Lindskog
  2015-09-08 12:04 ` Burton, Ross
  2015-09-08 12:18 ` Phil Blundell
  0 siblings, 2 replies; 5+ messages in thread
From: Umut Tezduyar Lindskog @ 2015-09-08 11:44 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

Hi,

Can 32 bits ISA handle year 2038 problem in openembedded?

Our ISA is 32 bits and we are using relatively new kernel with relatively old glibc (2.15). We are using RTC chips which come with a random date/time initialized. We started seeing boot problems in systemd if the random value of RTC is newer than 2038.

https://github.com/systemd/systemd/issues/1143

Upstream systemd’s answer is pretty much using 64 bits time_t structure but this is relatively expensive on 32 bits ISA.

I am wondering what the bit length of time_t structure in openembedded for 32 bits ISAs.

In other words, can your product handle following:

$> date '2038-01-19 03:14’ && hwclock -w (#Wait 7 seconds to see if systemd gets stuck)

NOTE: Don’t forget to revert your date back. Otherwise, your product won’t boot with systemd.

Umut

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-09  7:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-08 11:44 32 bit time_t in openembedded Umut Tezduyar Lindskog
2015-09-08 12:04 ` Burton, Ross
2015-09-09  7:33   ` Umut Tezduyar Lindskog
2015-09-08 12:18 ` Phil Blundell
2015-09-09  0:33   ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox