Subject: Re: How to reset rtc_offset without recompiling kernel?
To: None <buhrow@lothlorien.nfbcal.org>
From: Kazutoshi Kubota <tu7k-kbt@asahi-net.or.jp>
List: port-i386
Date: 09/10/2001 19:16:15
Hi all,

On Mon, 10 Sep 2001 02:13:19 -0700,
In Message <200109100917.CAA05385@lothlorien.nfbcal.org>
buhrow@lothlorien.nfbcal.org (Brian Buhrow) wrote...

> 	Hello folks.  I have a system where I want to 
> have the kernel set the clock as if the clock were set to local time
> instead of GMT.  I know I can do this by recompiling the kernel and use
> options RTC_OFFSET=480
> but I'd rather just use the generic kernel for the moment.  Is there a way
> to tell the kernel that the rtc is set to local time without recompiling
> it?  Further, is there a way to do it such that it knows before it
> initializes the software clock at boot time?

I have tried following way and it seems well for me.

# cp /netbsd /onetbsd
# gdb --write /netbsd
(gdb) set rtc_offset=YOUR_RTC_OFFSET
(gdb) quit
# sync
# shutdown -r now

--------
Kazutoshi Kubota <tu7k-kbt@asahi-net.or.jp>