public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Walnut405 PPC hang prob at linux startup
@ 2004-01-15 17:44 Abbas Dadabhoy
  2004-01-15 18:08 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Abbas Dadabhoy @ 2004-01-15 17:44 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot-Users] Walnut405 PPC hang prob at linux startup
  2004-01-15 17:44 [U-Boot-Users] Walnut405 PPC hang prob at linux startup Abbas Dadabhoy
@ 2004-01-15 18:08 ` Wolfgang Denk
  2004-01-15 18:21   ` Abbas Dadabhoy
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2004-01-15 18:08 UTC (permalink / raw)
  To: u-boot

In message <4006D193.CAFA2B38@aristoslogic.com> you wrote:
> 
> My linux kernel version is 2.4.18
...
> 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.

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

* [U-Boot-Users] Walnut405 PPC hang prob at linux startup
  2004-01-15 18:08 ` Wolfgang Denk
@ 2004-01-15 18:21   ` Abbas Dadabhoy
  0 siblings, 0 replies; 4+ messages in thread
From: Abbas Dadabhoy @ 2004-01-15 18:21 UTC (permalink / raw)
  To: u-boot

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


Wolfgang Denk wrote:

> In message <4006D193.CAFA2B38@aristoslogic.com> you wrote:
> >
> > My linux kernel version is 2.4.18
> ...
> > 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.

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

* [U-Boot-Users] Walnut405 PPC hang prob at linux startup
@ 2004-01-15 18:43 Rune Torgersen
  0 siblings, 0 replies; 4+ messages in thread
From: Rune Torgersen @ 2004-01-15 18:43 UTC (permalink / raw)
  To: u-boot

Make sure it is not present when you do a printenv in u-boot.

 
> 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

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

end of thread, other threads:[~2004-01-15 18:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-15 17:44 [U-Boot-Users] Walnut405 PPC hang prob at linux startup Abbas Dadabhoy
2004-01-15 18:08 ` Wolfgang Denk
2004-01-15 18:21   ` Abbas Dadabhoy
  -- strict thread matches above, loose matches on Subject: below --
2004-01-15 18:43 Rune Torgersen

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