
sapirf fersht wrote:
I am trying to compile u-boot and i get the following error:
common/libcommon.a(main.o): In function `readline': u-boot-1.2.0/common/main.c:953: undefined reference to `get_ticks' common/libcommon.a(main.o): In function `reset_cmd_timeout': u-boot-1.2.0/common/main.c:519: undefined reference to `get_ticks' u-boot-1.2.0/common/main.c:519: undefined reference to `get_tbclk' common/libcommon.a(main.o): In function `abortboot': u-boot-1.2.0/common/main.c:97: undefined reference to `get_ticks' u-boot-1.2.0/common/main.c:97: undefined reference to `get_tbclk' u-boot-1.2.0/common/main.c:163: undefined reference to `get_ticks'
I checked for this error in google and it was suggested to add the following lines to include/configs/stamp.h
#define CONFIG_BOOT_RETRY_TIME 0 #define CONFIG_BOOT_RETRY_MIN 20
I added them and it still throws the same error.
It compiled before. The only changes i made are:
#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */ #define CONFIG_AUTOBOOT_KEYED #define CONFIG_AUTOBOOT_PROMPT "\nEnter password - autoboot in %d seconds...\n" #define CONFIG_AUTOBOOT_DELAY_STR "somekey" #define CONFIG_BOOT_RETRY_TIME 900 #define CONFIG_BOOT_RETRY_MIN 30
Sapir
Hi Sapir,
Google knows everything, but everything google knows isn't necessarily true. ;-) I don't see any way your search results apply to your problem.
I don't know much about what you are doing (CPU, board, etc.), but it looks to me like you added a need to read the time when you configured for a boot delay but did not provide a means of reading time. The functions get_ticks() (returning the current time) and get_tbclk() (tb = timebase register) apparently don't exist in your code/configuration. Add them and it will link.
HTH, gvb