[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] problem RaQ3 RTC (Clock error)
- Subject: Re: [cobalt-developers] problem RaQ3 RTC (Clock error)
- From: Barry Titmarsh <barry@xxxxxxxxxxxxxx>
- Date: Thu Jan 20 23:19:49 2000
At 17:34 20/01/00 -0800, you wrote:
Hi Barry,
this is a bug in the shipping raq3, the manufacturing line doesn't set the
real
time clock to 24 hour mode... this is going to be fixed in the next
update, but
until then here is a quick program to set it correctly. just do a:
gcc -O2 mfg-fix-rtc.c -o mfg-fix-rtc
./mfg-fix-rtc
as root on your raq3 and a cat on /proc/rtc should show "24hr :
yes". (the -O2
is necessary for outb() to work)
-duncan
Okay that done the trick.
[root@boobox /root]# ./mfg-fix-rtc
[root@boobox /root]# cat /proc/rtc
rtc_time : 07:18:25
rtc_date : 2000-01-21
rtc_epoch : 1900
alarm : 10:40:00
DST_enable : no
BCD : yes
24hr : yes
square_wave : no
alarm_IRQ : no
update_IRQ : no
periodic_IRQ : no
periodic_freq : 1024
batt_status : okay
[root@boobox /root]#
we are now in 24Hr Mode.
Barry
----------------------------------------------------------------------------
------------------------------
Barry Titmarsh BMT1-RIPE Nacamar Ltd (Sheringham Office)
Knole House 38 Cromer Rd
Sheringham Norfolk NR268RR
e-mail: barry@xxxxxxxxxxxxxx voice: +44-1263-821-844
www: www.nacamar.net.uk
----------------------------------------------------------------------------
------------------------------