• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Trying to CONFIG_AUTOBOOT_KEYED  (Read 1727 times)
ventura
Newbie
*

Karma: 0
Posts: 3


View Profile
« on: March 03, 2011, 06:00:54 PM »

I am trying to configure autoboot with delay strings to use as password to get access to uboot prompt. To do that I have to define two functions at arch/arm/cpu/arm926ejs/kirkwoord/time.c and they are:

ulong get_tbclk(void)
{
        return CONFIG_SYS_TCLK;
}


unsigned long long get_ticks(void)
{
        return readl(CNTMR_VAL_REG(UBOOT_CNTR));
}

These functions are use by the function "abortboot(int bootdelay)" at common/main.c to calculate the time to wait for the password (delay string) and they are specific for each CPU architecture.

My new uboot is working but the delay waiting for password is always 20 seconds, no matter what value I have in the environment variable bootdelay. It means that my functions are working but they are not reporting the correct time ticks. I guess that get_tbclk is correct but not get_ticks().

Anybody has any idea to help me to fix these functions ???

Ventura
Logged

Pages: [1]
Print
Jump to: