• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Date-Time  (Read 2618 times)
jlpoole
Principal Software Engineer
Global Moderator
Jr. Member
*****

Karma: 2
Posts: 87

Principal Software Engineer -- Oracle Corporation


View Profile
« on: April 15, 2009, 12:10:08 PM »

I haven't looked carefully in the documention as to whether there is a stored clock setting, but I'm finding that between boots, if I do not set the date/time, I end up the base year 1948.   Somehow, I must have entered in the date format incorrectly (Gentoo) and have files now set for year 2016, I think those files having future timestamps is raising havoc and causing my system to suddenly reboot.
Logged

The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.

plugit
Global Moderator
Full Member
*****

Karma: 0
Posts: 139



View Profile
« Reply #1 on: April 28, 2009, 07:56:34 AM »

I just noticed that in the stock rootfs, the following lines are in rc.local:

date 012618002009
hwclock -w

Interesting!
Logged

jmknapp
Newbie
*

Karma: 0
Posts: 45



View Profile
« Reply #2 on: April 28, 2009, 08:20:33 AM »

I just noticed that in the stock rootfs, the following lines are in rc.local:

date 012618002009
hwclock -w

Interesting!

But what is actually run at boot time, /etc/rc.local or /etc/init.d/rc.local? I think it's the latter, based on making changes to the former to no effect!

Joe
Logged

plugit
Global Moderator
Full Member
*****

Karma: 0
Posts: 139



View Profile
« Reply #3 on: April 28, 2009, 08:24:58 AM »

Looks like /etc/init.d/rc.local runs /etc/rc.local...
Logged

pushbx
Newbie
*

Karma: 0
Posts: 35


View Profile
« Reply #4 on: April 28, 2009, 11:44:06 AM »

be careful with the rc.local.  If you look a little higher in the file you'd see

insmod fat.ko
insmod vfat.ko

Then if you look at the serial output when the kernel boots, it complains that those modules cannot be loaded and the system stops processing the rest of rc.local.  So if you comment out those insmod lines, the system clock will be set to Jan 26, 2009.

I just removed the entire rc.local and used ntp.  The clocks on my sheeva plug is working fine.
Logged

edmc
Newbie
*

Karma: 1
Posts: 21


View Profile
« Reply #5 on: April 28, 2009, 12:43:53 PM »

I just noticed that in the stock rootfs, the following lines are in rc.local:

date 012618002009
hwclock -w

Interesting!

As the Wiki suggests, comment out those lines :-)
Logged

Pages: [1]
Print
Jump to: