linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Real time clock seems stuck
@ 2002-10-31 12:45 Jeff David
  2002-10-31 13:04 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff David @ 2002-10-31 12:45 UTC (permalink / raw)
  To: Dr. Craig Hollabaugh, linuxppc-embedded


You may be loading the code too low.  See the comments for the
CFG_BOOTMAPSZ parameter in CONFIG_WALNUT405.h and cmd_bootm.c.  Try
loading at 0x800000 instead.

Jeff


> -----Original Message-----
> From: Dr. Craig Hollabaugh [mailto:craig@hollabaugh.com]
> Sent: Thursday, October 31, 2002 7:30 AM
> To: linuxppc-embedded@lists.linuxppc.org
> Subject: Real time clock seems stuck
>
>
>
> Folks,
>
> I'm trying to get a walnut board booted. I'm using
> linuxppc_2_4_devel pulled from denx yesterday. I'm getting
> the "Real time clock seems stuck" message then nothing, no
> messages after that. I found a brief thread about this.
>
> http://lists.linuxppc.org/linuxppc-embedded/200106/msg00113.html
>
> Have the changes suggested been put in the devel tree? If so,
> can someone offer some advice on how to proceed?
>
> Here's some console output.
>
> PPCBoot 1.2.0 (Oct 20 2002 - 19:03:26)
>
> CPU:   IBM PowerPC 405GP Rev. D at 200 MHz (PLB=100, OPB=50,
> EBC=50 MHz)
>            PCI sync clock at 33 MHz, internal PCI arbiter enabled
>            16 kB I-Cache 8 kB D-Cache
> Board: ### No HW ID - assuming WALNUT405
> I2C:   ready
> DRAM:  32 MB
> FLASH: 512 kB
> In:    serial
> Out:   serial
> Err:   serial
> KGDB:  kgdb ready
> ready
> BEDBUG:ready
>
> => tftpboot 400000 p1
> ENET Speed is 100 Mbps - FULL duplex connection
> ARP broadcast 1
> TFTP from server 192.168.1.11; our IP address is
> 192.168.1.111 Filename 'p1'. Load address: 0x400000
> Loading:
> #################################################################
>          ############################################
> done
> Bytes transferred = 557872 (88330 hex)
> => imi 400000
>
> ## Checking Image at 00400000 ...
>    Image Name:   Linux-2.4.20-pre11
>    Created:      2002-10-31  12:17:56 UTC
>    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>    Data Size:    557808 Bytes = 544.7 kB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
> => bootm 400000
> ## Booting image at 00400000 ...
>    Image Name:   Linux-2.4.20-pre11
>    Created:      2002-10-31  12:17:56 UTC
>    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>    Data Size:    557808 Bytes = 544.7 kB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... OK
> Linux version 2.4.20-pre11 (root@tbdev1) (gcc version 2.95.4
> 20010319 (prerelease/franzo/20011204)) #12 Thu Oct 31
> 05:13:53 MST 2002 IBM Walnut port (C) 2000-2002 MontaVista
> Software, Inc. (source@mvista.com) On node 0 totalpages: 1295
> zone(0): 1295 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: console=ttyS0,9600 root=/dev/ram
> Warning: real time clock seems stuck!
>
>
>
> then nothing after that.
>
> Any ideas? I've searched the archives for walnut boot
> problems. It seems like most people just get it running and
> that's that.
>
> Thanks
> Craig
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: Real time clock seems stuck
@ 2002-10-31 16:02 Wright, David
  0 siblings, 0 replies; 5+ messages in thread
From: Wright, David @ 2002-10-31 16:02 UTC (permalink / raw)
  To: Kurt Wall, linuxppc-embedded


> -----Original Message-----
> From: Kurt Wall [mailto:kurt.wall@timesys.com]
> Sent: Thursday, October 31, 2002 9:28 AM
> To: linuxppc-embedded@lists.linuxppc.org
> Subject: Re: Real time clock seems stuck
>
>
>
> Speaking on condition of anonymity, Dr. Craig Hollabaugh told us:
> >
> > Folks,
> >
> > I'm trying to get a walnut board booted. I'm using
> linuxppc_2_4_devel pulled from denx yesterday. I'm getting
> the "Real time clock seems stuck" message then nothing, no
> messages after that. I found a brief thread about this.
> >
>
> I've seen this on boards that don't have an RTC...

He said he's working on a Walnut, guys, and a Walnut has a DS1743
RTC chip on board, or at least mine does.

The problem here is arising because the kernel is attempting to
probe the RTC continuously, waiting for it to tick over.  You
can't do that to a DS1743; you have to leave it idle for 500 usec
between probes or the indicators won't advance.

This isn't a production-quality patch, but here's the change I
made to arch/ppc/kernel/time.c:time_init() to handle the problem
(my changes tagged with "INFINISWITCH"):

	if (ppc_md.get_rtc_time) {
		int read_delta = 0;	/* INFINISWITCH */

		stamp = get_native_tbl();
		sec = ppc_md.get_rtc_time();
		elapsed = 0;
		do {
			old_stamp = stamp;
			old_sec = sec;
			stamp = get_native_tbl();
			if (__USE_RTC() && stamp < old_stamp) old_stamp -= 1000000000;
			elapsed += stamp - old_stamp;
			read_delta += stamp - old_stamp;  /* INFINISWITCH */

			/* some real-time clocks, like the DS1743, can't be
			 * read repeatedly at very high speed.  Only try to
			 * read the RTC once per jiffy (INFINISWITCH)
			 */
			if (read_delta > tb_ticks_per_jiffy) {
				sec = ppc_md.get_rtc_time();
				read_delta = 0;
			}
		} while ( sec == old_sec && elapsed < 2*HZ*tb_ticks_per_jiffy);



  -- David Wright, Infiniswitch Corp., Westborough, MA

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Real time clock seems stuck
@ 2002-10-31 12:29 Dr. Craig Hollabaugh
  2002-10-31 14:27 ` Kurt Wall
  0 siblings, 1 reply; 5+ messages in thread
From: Dr. Craig Hollabaugh @ 2002-10-31 12:29 UTC (permalink / raw)
  To: linuxppc-embedded


Folks,

I'm trying to get a walnut board booted. I'm using linuxppc_2_4_devel pulled from denx yesterday. I'm getting the "Real time clock seems stuck" message then nothing, no messages after that. I found a brief thread about this.

http://lists.linuxppc.org/linuxppc-embedded/200106/msg00113.html

Have the changes suggested been put in the devel tree? If so, can someone offer some advice on how to proceed?

Here's some console output.

PPCBoot 1.2.0 (Oct 20 2002 - 19:03:26)

CPU:   IBM PowerPC 405GP Rev. D at 200 MHz (PLB=100, OPB=50, EBC=50 MHz)
           PCI sync clock at 33 MHz, internal PCI arbiter enabled
           16 kB I-Cache 8 kB D-Cache
Board: ### No HW ID - assuming WALNUT405
I2C:   ready
DRAM:  32 MB
FLASH: 512 kB
In:    serial
Out:   serial
Err:   serial
KGDB:  kgdb ready
ready
BEDBUG:ready

=> tftpboot 400000 p1
ENET Speed is 100 Mbps - FULL duplex connection
ARP broadcast 1
TFTP from server 192.168.1.11; our IP address is 192.168.1.111
Filename 'p1'.
Load address: 0x400000
Loading: #################################################################
         ############################################
done
Bytes transferred = 557872 (88330 hex)
=> imi 400000

## Checking Image at 00400000 ...
   Image Name:   Linux-2.4.20-pre11
   Created:      2002-10-31  12:17:56 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    557808 Bytes = 544.7 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
=> bootm 400000
## Booting image at 00400000 ...
   Image Name:   Linux-2.4.20-pre11
   Created:      2002-10-31  12:17:56 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    557808 Bytes = 544.7 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Linux version 2.4.20-pre11 (root@tbdev1) (gcc version 2.95.4 20010319 (prerelease/franzo/20011204)) #12 Thu Oct 31 05:13:53 MST 2002
IBM Walnut port (C) 2000-2002 MontaVista Software, Inc. (source@mvista.com)
On node 0 totalpages: 1295
zone(0): 1295 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,9600 root=/dev/ram
Warning: real time clock seems stuck!



then nothing after that.

Any ideas? I've searched the archives for walnut boot problems. It seems like most people just get it running and that's that.

Thanks
Craig


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-31 16:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-31 12:45 Real time clock seems stuck Jeff David
2002-10-31 13:04 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2002-10-31 16:02 Wright, David
2002-10-31 12:29 Dr. Craig Hollabaugh
2002-10-31 14:27 ` Kurt Wall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).