[U-Boot-Users] Walnut405 PPC hang prob at linux startup

Abbas Dadabhoy a.dadabhoy at aristoslogic.com
Thu Jan 15 18:44:51 CET 2004


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






More information about the U-Boot mailing list