Skip to contentSkip to conversation

Calibrating delay loop... crashes

DISCUSSION Nguyen Thanh Binh 4 participants 6 messages Nov 16, 2005 MIPS

lore
Share & tools
lore
#0 lore raw

Hello all,

When booting Monta Vista Linux on Memec board (Virtex-4 FX12 LC), it crashed 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

___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

#1 lore raw
Quoted 6 lines · Nguyen Thanh Binh

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

"Calibrating delay loop..."

Quoted 7 lines

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?

I take it that by "crashed", you mean it hung? If so, it sounds like you aren't getting any timer interrupts.

Regards,

Kevin K.

#2 lore raw

Hi Kevin,

Quoted 12 lines
Quoted 8 lines

When booting Monta Vista Linux on Memec board (Virtex-4 FX12 LC), it crashed 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

Quoted 3 lines

function: jiffies was not incremented (jiffies was always equal to 0).

Quoted 8 lines
Quoted 1 line

Have anyone get the similar problem or any

experience

Quoted 1 line

to fix it?

I take it that by "crashed", you mean it hung? If so,
it sounds like you aren't getting any timer interrupts.

You are right. Because jiffies was not incremented so the below code segment in function calibrate_delay in file init/mian.c hung:

   ticks = jiffies;
   while (ticks == jiffies) ;

As I am a newbie, I did not find how to fix it.

Thank you for any help.

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

#3 lore raw

Hi !

There is a porting guide at:

http://linux.junsun.net/porting-howto/

which is quite useful. Read the "System time and
timer" section. It describes to some extent
implementing timer services.

Thanks
Manish Lachwani

Quoted 35 lines · --- Nguyen Thanh Binh

Hi Kevin,

Quoted 2 lines
Quoted 2 lines

When booting Monta Vista Linux on Memec board
(Virtex-4 FX12 LC), it crashed after printing

the

Quoted 5 lines
Quoted 5 lines

following message:

"Calibrating delay loop..."

By looking at the source code, I found that in

the

Quoted 3 lines
Quoted 1 line

init/main.c the problem came from the

calibrate_delay

Quoted 1 line

function: jiffies was not incremented (jiffies

was

Quoted 10 lines
Quoted 3 lines

always equal to 0).

Have anyone get the similar problem or any

experience

Quoted 1 line

to fix it?

I take it that by "crashed", you mean it hung? If so,
it sounds like you aren't getting any timer interrupts.

You are right. Because jiffies was not incremented so
the below code segment in function calibrate_delay in
file init/mian.c hung:

   ticks = jiffies;
   while (ticks == jiffies) ;
Quoted 11 lines

As I am a newbie, I did not find how to fix it.

Thank you for any help.

Binh Nguyen

Nguyễn Thanh Bình

___________________________________________________________

Quoted 7 lines

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

#4 lore raw
Quoted 7 lines · Manish Lachwani

There is a porting guide at:

http://linux.junsun.net/porting-howto/

which is quite useful. Read the "System time and
timer" section. It describes to some extent
implementing timer services.

Except it being outdated, totally 2.4 centric and having been superseeded by the version that's now in the www.linux-mips.org wiki since almost a year.

Ralf

#5 lore raw
In reply to Nguyen Thanh Binh

Its probably hung at that point since the timer
interrupt never came.

Thanks
Manish Lachwani

Quoted 14 lines · --- Nguyen Thanh Binh

Hello all,

When booting Monta Vista Linux on Memec board (Virtex-4 FX12 LC), it crashed 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).

Quoted 12 lines

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

Thank you.

Binh Nguyen

___________________________________________________________

Quoted 6 lines

To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
http://uk.security.yahoo.com