LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* RE: Booting hangs after "Calibrating delay loop..."
@ 2005-11-17 15:04 Jaap de Jong
  2005-11-23  9:52 ` Nguyen Thanh Binh
  0 siblings, 1 reply; 8+ messages in thread
From: Jaap de Jong @ 2005-11-17 15:04 UTC (permalink / raw)
  To: linuxppc-embedded

Hi Binh,

I am working with this fpga too, different board, same linux version,
and not very succesfull until now too...
But my build passes the "Calibrating delay loop..." and prints the
correct value!
Just guessing... perhaps your problem is timer related. Fi no timer
interrupts?

Best regards!

	Jaap de Jong



> Hi all,
>=20
> When booting Monta Vista Linux on Memec board
> (Virtex-4 FX12 LC), it hung after printing the
> following message:
>=20
>     "Calibrating delay loop..."
>
> By looking at the source code, I found that in the
> init/main.c the problem came from the
> calibrate_delay()
> function: jiffies was not incremented (jiffies was
> always equal to 0).
>
> Have anyone get the similar problem or any experience
> to fix it?

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Booting hangs after "Calibrating delay loop..."
@ 2005-11-30 21:58 Autran, Guillaume
  2005-12-03  2:13 ` Nguyen Thanh Binh
  2005-12-03  2:14 ` Nguyen Thanh Binh
  0 siblings, 2 replies; 8+ messages in thread
From: Autran, Guillaume @ 2005-11-30 21:58 UTC (permalink / raw)
  To: 'n_tbinh@yahoo.com '; +Cc: 'linuxppc-embedded@ozlabs.org '

Hi Binh Nguyen,

m8xx_setup.c moved in the recent 2.6 kernels to the syslib directory. I am
using the 2.6.14 and the external RTC works with the modification I gave
you.

The only other thing different is the initialization of the stamp variable
in time.c
I added the line: 'stamp = get_native_tbl();' right before
'last_jiffy_stamp(0) = tb_last_stamp = stamp;'

That's all.
Guillaume

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Booting hangs after "Calibrating delay loop..."
@ 2005-11-23 16:39 Autran, Guillaume
  2005-11-29  3:20 ` Nguyen Thanh Binh
  0 siblings, 1 reply; 8+ messages in thread
From: Autran, Guillaume @ 2005-11-23 16:39 UTC (permalink / raw)
  To: 'linuxppc-embedded@ozlabs.org',
	'n_tbinh@yahoo.com'

Hi,

I remember there is some race condition before calling set_dec(..) in time.c
Basically, what happens is that the external decrementer is set way before
the interrupt gets enabled. When we get to enable the interrupt, the
decrementer value already reached 0 and wrapped arround (at least in our
case). 
The fix was to comment the line in:
arch/ppc/kernel/time.c:330: set_dec(tb_ticks_per_jiffy);

And move it to:
arch/ppc/syslib/m8xx_setup.c
inside m8xx_calibrate_decr() just before setting up the interrupt for the
decrementer.

In time.c, you may also need to initialize stamp = get_native_tbl(); as this
variable may not have been initialized since you are using an external
decrementer.

Try that...

Guillaume.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Booting hangs after "Calibrating delay loop..."
@ 2005-11-17  8:19 Nguyen Thanh Binh
  0 siblings, 0 replies; 8+ messages in thread
From: Nguyen Thanh Binh @ 2005-11-17  8:19 UTC (permalink / raw)
  To: linuxppc-embedded

Hi all,

When booting Monta Vista Linux on Memec board
(Virtex-4 FX12 LC), it hung after printing the
following message:

    "Calibrating delay loop..."

By looking at the source code, I found that in the
init/main.c the problem came from the
calibrate_delay()
function: jiffies was not incremented (jiffies was
always equal to 0).

Have anyone get the similar problem or any experience
to fix it?

Thank you.

Binh Nguyen

Nguyễn Thanh Bình


		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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

end of thread, other threads:[~2005-12-03  2:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17 15:04 Booting hangs after "Calibrating delay loop..." Jaap de Jong
2005-11-23  9:52 ` Nguyen Thanh Binh
  -- strict thread matches above, loose matches on Subject: below --
2005-11-30 21:58 Autran, Guillaume
2005-12-03  2:13 ` Nguyen Thanh Binh
2005-12-03  2:14 ` Nguyen Thanh Binh
2005-11-23 16:39 Autran, Guillaume
2005-11-29  3:20 ` Nguyen Thanh Binh
2005-11-17  8:19 Nguyen Thanh Binh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox