From: Mayank Sharma (mayank@impulsesoft.com)
Date: Wed Feb 05 2003 - 23:30:47 EST
Hi all,
I was facing a problem with the autoboot feature of the boot
loader. The bootldr was not waiting for the default 10 seconds timer to
expire before starting to boot linux. It seems that the bootldr relies
on the RCNR timer to see if any key has been pressed before
autoboot_timeout seconds. But the RCNR takes some time to stablize (The
manual says 2-10 seconds) before which it cannot be used reliably. I
fixed the problem by puting the following loop before the line "c =
awaitkey_seconds(autoboot_timeout, NULL);" in bootldr.c
while(!CTL_REG_READ(SA1100_POSR))
; /* Waiting for RCNR to stablize */
When the RCNR is stablized the 0'th bit of POSR will be set, and
hence we can use the RCNR timer reliably.
Rgds,
Mayank
This archive was generated by hypermail 2.1.5 : Wed Feb 05 2003 - 23:27:29 EST