[uClinux-dev] Watchdog in Coldfire 5282

Oscar Fraile oscar.fraile at mtorres.es
Thu Oct 20 03:49:00 EDT 2005


Helo,

I would like to get run a Watchdog in my board, but i can't, because if i select the option "Coldfire Watchdog Timer Support" in the windows menu when i do "make sconfig" in the uclinux distribution, the next error happen when i compile the distribution:

		m68k-elf-gcc -fno-builtin -nostdinc -D__KERNEL__ -I/home/oscar/Fuentes_uclinux/uClinux-dist/linux-2.4.x/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/./include -pipe -DNO_MM -DNO_FPU -m5307 -Wa,-S -Wa,-m5307 -D__ELF__ -DMAGIC_ROM_PTR -DUTS_SYSNAME="uClinux" -D__linux__ -O1   -nostdinc -iwithprefix include -DKBUILD_BASENAME=mcfwatchdog  -c -o mcfwatchdog.o mcfwatchdog.c
		mcfwatchdog.c:53: warning: missing braces around initializer
		mcfwatchdog.c:53: warning: (near initialization for `watchdog_timerlist.list')
		mcfwatchdog.c: In function `watchdog_enable':
		mcfwatchdog.c:96: `MCFSIM_SWSR' undeclared (first use in this function)
		mcfwatchdog.c:96: (Each undeclared identifier is reported only once
		mcfwatchdog.c:96: for each function it appears in.)
		mcfwatchdog.c:98: `MCFSIM_SYPCR' undeclared (first use in this function)
		mcfwatchdog.c: In function `watchdog_disable':
		mcfwatchdog.c:117: `MCFSIM_SWSR' undeclared (first use in this function)
		mcfwatchdog.c:119: `MCFSIM_SYPCR' undeclared (first use in this function)
		mcfwatchdog.c: In function `watchdog_init':
		mcfwatchdog.c:190: `MCFSIM_SWDICR' undeclared (first use in this function)
		mcfwatchdog.c:191: `MCFSIM_SWIVR' undeclared (first use in this function)
		mcfwatchdog.c:192: warning: implicit declaration of function `mcf_setimr'
		mcfwatchdog.c:192: warning: implicit declaration of function `mcf_getimr'
		mcfwatchdog.c: In function `watchdog_alive':
		mcfwatchdog.c:217: `MCFSIM_SWSR' undeclared (first use in this function)
		make[4]: *** [mcfwatchdog.o] Error 1
		make[4]: Leaving directory `/home/oscar/Fuentes_uclinux/uClinux-dist/linux-2.4.x/drivers/char'
		make[3]: *** [first_rule] Error 2
		make[3]: Leaving directory `/home/oscar/Fuentes_uclinux/uClinux-dist/linux-2.4.x/drivers/char'
		make[2]: *** [_subdir_char] Error 2
		make[2]: Leaving directory `/home/oscar/Fuentes_uclinux/uClinux-dist/linux-2.4.x/drivers'
		make[1]: *** [_dir_drivers] Error 2
		make[1]: Leaving directory `/home/oscar/Fuentes_uclinux/uClinux-dist/linux-2.4.x'
		make: *** [linux] Error 1 

Can anybody help me?

Thanks at all.
_______________________________________
uCLinux version 2.4.24-uc0
gcc version 2.95.3
Coldfire MCF5282 Board
RAM:  32 MB
FLASH:  4 MB
_______________________________________




More information about the uClinux-dev mailing list