Hi,
I am using am335x sdk with ti-processor-sdk-linux-am335x-evm-01.00.00.00-Linux-x86-Install.bin and u-boot with u-boot-2014.07-g7e537bf. I want to enable hardware watchdog from from board_init(void) function which is as below.
int board_init(void)
{
#if defined(CONFIG_HW_WATCHDOG)
hw_watchdog_init();
#endif
|
|
}
So i defined CONFIG_HW_WATCHDOG macro in include/watchdog.h. But while compiling it gives following error.
HOSTCC tools/mkimage.o
HOSTLD tools/mkenvimage
HOSTLD tools/dumpimage
tools/lib/sha1.o: In function `sha1_csum_wd':
sha1.c:(.text+0x251f): undefined reference to `hw_watchdog_reset'
sha1.c:(.text+0x254d): undefined reference to `hw_watchdog_reset'
tools/lib/sha256.o: In function `sha256_csum_wd':
sha256.c:(.text+0x312f): undefined reference to `hw_watchdog_reset'
sha256.c:(.text+0x315d): undefined reference to `hw_watchdog_reset'
collect2: error: ld returned 1 exit status
scripts/Makefile.host:127: recipe for target 'tools/dumpimage' failed
make[1]: *** [tools/dumpimage] Error 1
Makefile:1008: recipe for target 'tools' failed
make: *** [tools] Error 2
Is there anything else need to add/change in code?
Thanks in advance,
Nilesh