Subject: preposterous clock chip time
To: None <port-dreamcast@netbsd.org>
From: Philippe Saint-Jacques <h0ho@hotmail.com>
List: port-dreamcast
Date: 04/22/2003 01:44:49
Hi. I am not sure if this is Dreamcast specific but since it happens on =
a Dreamcast, here I come.=20

I use HEMI's binary distribution. NetBSD 1.6L.
http://www.puresimplicity.net/~hemi/dreamcast/

I experience trouble to set the right time on my system. I tried to set =
the right time by using the setup menu (the animated icons), but when I =
boot NetBSD after, the kernel complains

WARNING: preposterous clock chip time
 -- CHECK AND RESET THE DATE!

and the system thinks the time is one hour ahead of the real time. [I =
set 00:42 in the setup menu and NetBSD thinks it is 01:42]. I can set =
time back to 00:42 with "date 0042", and now the time is OK. but after =
the next reboot, I get back one more hour.

Then I looked for something in /etc/localtime. I first deleted that =
link. Then "date" gives me 5 hours ahead, instead of 1. Then I replaced =
that link with /usr/share/zoneinfo/Greenwich. I beleived that using a =
GMT 0 zone would use exactly the time in the system clock. But it did =
not work. giving me 6 our more. When there is no /etc/localtime, system =
uses GMT time. But that doesn't tell me more from where comes the time. =
Then I tried my timezone, Canada/Eastern, or GMT-5. And I get One hour =
ahead of the date specified in the clock chip.=20

I have no idea what is happening here. Would just upgrading the kernel =
to 1.6R fix this ? or is it just some settings that I don't understand ?

Thanks in advance!
Philippe

Ps: here is the dmesg output

NetBSD 1.6L (DREAMCAST-NETBOOT) #0: Sat Jan  4 00:08:05 CST 2003
    root@netbsd:/usr/src/sys/arch/dreamcast/compile/DREAMCAST-NETBOOT
SEGA Dreamcast
total memory =3D 16384 KB
avail memory =3D 13940 KB
using 230 buffers containing 920 KB of memory
mainbus0 (root)
cpu0 at mainbus0: HITACHI SH4 199.600MHz PCLOCK 49.900 MHz
8KB/32B direct-mapped Instruction cache.
16KB/32B direct-mapped Data cache.
P0, U0, P3 write-through P1 write-through
full-associative 4 ITLB, 64 UTLB entries
multiple virtual storage mode, SQ access: kernel, wired 61
shb0 at mainbus0
scif0 at shb0
maple0 at shb0: SH4 IRL 9
mapleA at maple0 port 0: Dreamcast Controller
mapleA1 at maple0 port 0 subunit 1: Visual Memory
mmem0 at mapleA1 function 1: Memory card
mmem0: 1 part, 512 bytes/block, 4 acc/write, 1 acc/read
mlcd0 at mapleA1 function 2: LCD display
mlcd0: 1 LCD, 192 bytes/block, 1 acc/write, horiz, norm white, =
upside-down
mmem0.0: 128 KB, blk 255 0, inf 255, fat 254 1, dir 253 13, icon 62, =
data 200
mlcd0.0: 48x32 display, 192 bytes
mapleB at maple0 port 1: Dreamcast Controller
mapleD at maple0 port 3: Keyboard
mkbd0 at mapleD function 6: US keyboard
wskbd0 at mkbd0: console keyboard
pvr0 at shb0: 640 x 480, 16bpp, NTSC, composite
wsdisplay0 at pvr0 kbdmux 1: console (80x30, vt100 emulation), using =
wskbd0
wsmux1: connecting to wsdisplay0
gdrom0 at shb0: SH4 IRL 9
g2bus0 at shb0
gapspci0 at g2bus0: SEGA GAPS PCI Bridge
pci0 at gapspci0 bus 0
pci0: memory space enabled
rtk0 at pci0 dev 0 function 0: SEGA Broadband Adapter
rtk0: interrupting at SH4 IRL 11
rtk0: Ethernet address 00:d0:f1:02:47:30
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
root on rtk0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 10.0.0.1
nfs_boot: my_name=3Ddreamy
nfs_boot: my_addr=3D10.0.0.3
nfs_boot: my_mask=3D255.255.255.0
nfs_boot: gateway=3D10.0.0.1
root on 10.0.0.1:/usr/exports/dc
WARNING: preposterous clock chip time
 -- CHECK AND RESET THE DATE!