[BusyBox] hwclock problem in 1.00-rc2

Wang Jian lark at linux.net.cn
Wed Sep 15 18:57:55 UTC 2004


Hi Sauder, Vernon,

Thanks for your information.

I read the customized RTC driver's dirty source code (which is not
written by me), and find a lot of errors in it. I did a quick hack and
it works now.

It seems that I should rewrite a driver from scratch for long term.


On Wed, 15 Sep 2004 12:34:09 -0400, "Sauder, Vernon" <Vernon.Sauder at spirentcom.com> wrote:

> This looks like a problem with the custom RTC driver. The hwclock is showing
> a -1 type value. We also wrote a custom RTC driver but we had no problems
> with hwclock.
> 
> I have attached the source to our clock driver. It relies on an SPI driver
> we also wrote but might give an different idea as to what is required of the
> driver. We are using a DEVFS system. All our testing show appropriate
> behavior of the hwclock applet.
> 
> Vernon Sauder
> 
> > -----Original Message-----
> > From: Wang Jian [mailto:lark at linux.net.cn] 
> > Sent: Wednesday, September 15, 2004 9:38 AM
> > To: busybox at mail.busybox.net
> > Subject: Re: [BusyBox] hwclock problem in 1.00-rc2
> > 
> > Hi Wang Jian,
> > 
> > Who can help me to confirm this problem?
> > 
> > On Tue, 14 Sep 2004 15:48:09 +0800, Wang Jian 
> > <lark at linux.net.cn> wrote:
> > 
> > > Hi,
> > > 
> > > I have a powerpc mini dev board, with a customized RTC driver. The 
> > > hwclock in busybox-1.00-rc2 doesn't work like expected.
> > > 
> > > Using attached test programs, RTC driver is believed to work fine, 
> > > like
> > > 
> > > # /mnt/rtctest 2004 09 14 15 20 00
> > > Set RTC date/time OK, next we'll get current RTC date/time.
> > > Current RTC date/time is : 2004-09-14, 15:20:05.
> > > 
> > > But for hwclock
> > > 
> > > # date
> > > Tue Sep 14 15:34:07 UTC 2004
> > > # hwclock --systohc
> > > # date
> > > Mon Jan 18 10:10:03 UTC 2010
> > > # hwclock --show
> > > Wed Dec 31 23:59:59 1969  0.000000 seconds # hwclock --show 
> > Wed Dec 31 
> > > 23:59:59 1969  0.000000 seconds # hwclock --show Wed Dec 31 
> > 23:59:59 
> > > 1969  0.000000 seconds # hwclock --show Wed Dec 31 23:59:59 1969  
> > > 0.000000 seconds
> > > 
> > > 
> > > # /mnt/rtctest 2004 09 14 15 20 00
> > > Set RTC date/time OK, next we'll get current RTC date/time.
> > > Current RTC date/time is : 2004-09-14, 15:20:05.
> > > # hwclock --show
> > > Wed Dec 31 23:59:59 1969  0.000000 seconds
> > > 
> > > 
> > > 
> > > -- 
> > >   lark
> > 
> > 
> > 
> > -- 
> >   lark
> > 
> > 
> 



-- 
  lark




More information about the busybox mailing list