[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] XIP / PIC



John,

Thanks for the pointers.

> John Willams wrote:
> Create appropriate platform subdir arch/microblaze/platform/xxxxx (see
the doco in linux-2.4.x/Documentation/microblaze)

I've worked through the steps for adding a new platform
(AddingPlatforms.txt) but it the auto-config mechanism doesn't appear to
be working.

When I compile using 'make all' I see the following when time.c is being
compiled.

	In file included from time.c:26:
	uClinux-2.4.x/include/asm/microblaze_timer.h:17: #error CPU
Clock frequerncy not defined!
	uClinux-2.4.x/include/asm/microblaze_timer.h:25: #error No timer
peripheral specified
	make[2]: *** [time.o] Error 1
	make[2]: Leaving directory
`uClinux-2.4.x/arch/microblaze/kernel'
	make[1]: *** [_dir_arch/microblaze/kernel] Error 2
	make[1]: Leaving directory `uClinux-2.4.x'
	make: *** [linux] Error 1


This is the offending excerpt from microblaze_timer.h
	
	/* Hack to optionally use Xilinx autoconfig if available */
	#if !defined(CONFIG_CPU_CLOCK_FREQ)
	#if defined(CONFIG_XILINX_CPU_CLOCK_FREQ)
	#define CONFIG_CPU_CLOCK_FREQ CONFIG_XILINX_CPU_CLOCK_FREQ
	#else
	#error CPU Clock frequerncy not defined!
	#endif
	#endif /* !defined(CONFIG_CPU_CLOCK_FREQ) */


My auto-config.in file contains
	# System Clock Frequency
	define_int CONFIG_XILINX_CPU_CLOCK_FREQ 100000000


So I would have expected that the "#if
defined(CONFIG_XILINX_CPU_CLOCK_FREQ)" would equate to true since its in
the auto-config.in file.

Am I missing something here?

Thanks in advance,

Vincent

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/