Skip to contentSkip to conversation

Walnut405 PPC hang prob at linux startup

U-Boot-Users Abbas Dadabhoy 2 participants 3 messages Jan 15, 2004

lore
Share & tools
lore
#0 lore raw

Hi

I am using u-boot 1.0.0, and am loading linux kernel at 400000, it appears to hang after printing message
- "Warning: real time clock seems stuck!"

My linux kernel version is 2.4.18

I have put additional kprint in main.c and am able to track it down to between the lines

. . .
kmem_cache_init();
sti();
. .

I have tried to set clocks_in_mhz to 1 through the setenv command and it did not help.

I have already checked time.c and it is 1.35 11/28/01, and has the following code

 if (ppc_md.get_rtc_time) {
      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;
           sec = ppc_md.get_rtc_time();
      } while ( sec == old_sec && elapsed < 2*HZ*tb_ticks_per_jiffy);
      if (sec==old_sec) {
       printk("Warning: real time clock seems stuck!\n");

}
write_lock_irqsave(&xtime_lock, flags); xtime.tv_sec = sec;
last_jiffy_stamp(0) = tb_last_stamp = stamp; xtime.tv_usec = 0;
/* No update now, we just read the time from the RTC ! */ last_rtc_update = xtime.tv_sec; write_unlock_irqrestore(&xtime_lock, flags);
} else {
stamp = get_native_tbl();
last_jiffy_stamp(0) = tb_last_stamp = stamp;
}

I will appreciate any helpregarding this.

Thanks
A. Dadabhoy

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

My linux kernel version is 2.4.18

...

Quoted 2 lines

I have tried to set clocks_in_mhz to 1 through the setenv command and it did not help.

It cannot help, as it is completely wrong. You must UNDEFINE the variable.

Best regards,

Wolfgang Denk

Signature · 3 lines
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Democracy is mob rule, but with income taxes.
#2 lore raw

Thank for a quick reply.

I forgot to mention that tries both ways, i.e. I also undefined the variable and yet it fails. Any other suggestion ?

Thanks

Quoted 17 lines · Wolfgang Denk
Quoted 2 lines · In message <[email protected]> you wrote:

My linux kernel version is 2.4.18

...

Quoted 2 lines

I have tried to set clocks_in_mhz to 1 through the setenv command and it did not help.

It cannot help, as it is completely wrong. You must UNDEFINE the variable.

Best regards,

Wolfgang Denk

--
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Democracy is mob rule, but with income taxes.