From are.bryne@communique.no  Wed Apr 23 08:33:53 1997
Received: from www.communique.no (www.communique.no [193.212.204.33])
          by hub.freebsd.org (8.8.5/8.8.5) with SMTP id IAA05629
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Apr 1997 08:33:49 -0700 (PDT)
Received: (qmail 3902 invoked by uid 1001); 23 Apr 1997 15:23:34 -0000
Message-Id: <19970423152334.3901.qmail@www.communique.no>
Date: 23 Apr 1997 15:23:34 -0000
From: are@communique.no
Reply-To: are@communique.no
To: FreeBSD-gnats-submit@freebsd.org
Subject: Ten minute delay at boot-time
X-Send-Pr-Version: 3.2

>Number:         3375
>Category:       kern
>Synopsis:       Consistent 10 min. delay at boot with REL-2.2.1 on Pentium
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 23 08:40:01 PDT 1997
>Closed-Date:    Tue Apr 14 12:23:01 PDT 1998
>Last-Modified:  Tue Apr 14 12:23:43 PDT 1998
>Originator:     Are Bryne
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
Communique DA
>Environment:

	Pentium 133 Mhz, Soyo 5TX5 MB, 64 MB unbuffered DIMM, 512 kB L2 cache
	BIOS plug & play, 2 onboard IDE controllers which are turned off,
	onboard Creative CT-2505 (Vibra 16C) chip (not enabled in kernel),
	onboard Adaptec 7880 U/W SCSI controller with 
		SEAGATE ST32171W 2062MB disk, and
		MATSHITA CD-ROM CR-506.
	My own no-frills kernel with X-support.

>Description:

	The system seems to freeze right after the boot prompt. I can enter
	e.g a -c at the prompt, or nothing, but after pressing return, the
	system will stay put for ten minutes before it continues booting.
	This happens with both the generic kernel, and my own one.
	It also seems as if the time lapse is _not_ recorded, so that the
	clock (as seen with date) sags behind by ten minutes afterwards.

>How-To-Repeat:

	

>Fix:
	
	

>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: are@communique.no, FreeBSD-gnats-submit@freebsd.org
Cc:  Subject: Re: kern/3375: Ten minute delay at boot-time
Date: Thu, 24 Apr 1997 03:15:22 +1000

 >	The system seems to freeze right after the boot prompt. I can enter
 >	e.g a -c at the prompt, or nothing, but after pressing return, the
 >	system will stay put for ten minutes before it continues booting.
 
 This is probably caused by broken RTC (clock) hardware.  If this is the
 case, then you can probably tell by booting with -v and noticing that the
 delay occurs after the "Calibrating clock(s) ... " message.  There is a
 timeout, but it is too large (apparently 10 minutes on your system).
 
 >	This happens with both the generic kernel, and my own one.
 >	It also seems as if the time lapse is _not_ recorded, so that the
 >	clock (as seen with date) sags behind by ten minutes afterwards.
 
 The clock is not supposed to stop.  Perhaps the i/o's to initialize it
 somehow stop it.  This would explain both problems.  Try this fix.  The
 reduced timeout should reduce the delay to < 10 seconds on your machined
 even if the other change doesn't work.  The timeout is still too large
 for i386's.
 
 diff -c2 clock.c~ clock.c
 *** clock.c~	Mon Apr  7 19:36:15 1997
 --- clock.c	Thu Apr 24 03:08:45 1997
 ***************
 *** 504,509 ****
 --- 568,576 ----
   writertc(u_char reg, u_char val)
   {
 + 	inb(0x84);
   	outb(IO_RTC, reg);
 + 	inb(0x84);
   	outb(IO_RTC + 1, val);
 + 	inb(0x84);		/* XXX work around wrong order in rtcin() */
   }
   
 ***************
 *** 524,528 ****
   	if (!(rtcin(RTC_STATUSD) & RTCSD_PWR))
   		goto fail;
 ! 	timeout = 100000000;
   
   	/* Read the mc146818A seconds counter. */
 --- 591,595 ----
   	if (!(rtcin(RTC_STATUSD) & RTCSD_PWR))
   		goto fail;
 ! 	timeout = 1000000;	/* XXX */
   
   	/* Read the mc146818A seconds counter. */
State-Changed-From-To: open->feedback 
State-Changed-By: joerg 
State-Changed-When: Sun Aug 24 20:29:18 MEST 1997 
State-Changed-Why:  

Please tell us whether Bruce's suggestion did help you or not. 
State-Changed-From-To: feedback->closed 
State-Changed-By: phk 
State-Changed-When: Tue Apr 14 12:23:01 PDT 1998 
State-Changed-Why:  
timed out 
>Unformatted:
