Set and fix clock issue

Set time zone

1. Edit /etc/timezone, for example set to Hong Kong:

Asia/Hong_Kong

Or, run:

dpkg-reconfigure tzdata

2. Copy the zone files /usr/share/zoneinfo/Asia/Hong_Kong from the build-box.

Fix clock issue

If using the kernel 2.6.26-486-voyage, or 2.6.30-voyage and a ALIX board, the clock must be fixed.

1. add “clocksource=tsc” to kernel param:

kernel /vmlinuz root=LABEL=ROOT_FS console=ttyS0,38400n8 clocksource=tsc

2. get time when startup, add these in /etc/rc.local:

 
#get the clock right on startup, -b for set time immediately
ntpdate -s -b <a time server close to you>

3. sync time periodically, using a cron job:

# -s for logging to syslog
29 * * * * root /usr/sbin/ntpdate -s stdtime.gov.hk

TO-DO

Compile a new kernel so that “clocksource=tsc” is not needed.

voyage/fix_clock_issue.txt · Last modified: 2010-06-04 13:31 by admin
Back to top
GNU Free Documentation License 1.2
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0