
Hi Mark,
On Thursday 20 May 2010 00:27:50 Mark Maestas wrote:
I have a question about watchdog support for PPC_4xx. When I define CONFIG_WATCHDOG in canyonlands.h, I get an error when building cpu_init.c. The error code reads:
{standard input}: Assembler messages: {standard input}:133: Error: unsupported relocation against tcr {standard input}:141: Error: unsupported relocation against tcr {standard input}:146: Error: unsupported relocation against tsr {standard input}:154: Error: unsupported relocation against tsr make[1]: *** [cpu_init.o] Error 1
Shouldn't this work?
It *should*. But unfortunately it doesn't. I just checked this here myself. I get the same error. Seems that the "tcr/tsr" defines need to be converted to upper-case. It would be great if you could send a patch for this.
Also I would like to determine in u-boot if a reset was caused by the watchdog timer using the TSR WRS field. If it was reset by the watchdog we will boot into a failsafe partition to protect against system update errors.
Has anyone done something like this?
Such a detection is not implemented for PPC4xx. Not sure if it's implemented for any other architecture.
Cheers, Stefan
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de