cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
3,702 Views
Registered: ‎08-03-2009

microblaze U-BOOT issue

Hi

my question is

1)  microblaze U-BOOT support virtex4 series device

i copy the xparameter.h generated by EDK in to the board/xilinx/micrblaze-generic

while compiling U-BOOT i am getting error i attached below

******************************************************************************************************************************

root@sanjeeev-desktop:/home/sanjeeev/u-boot-xlnx# make CROSS_COMPILE=mb-linux- microblaze-generic_config
Configuring for microblaze-generic board...
root@sanjeeev-desktop:/home/sanjeeev/u-boot-xlnx# make  CROSS_COMPILE=mb-linux-
Generating include/autoconf.mk
In file included from /home/sanjeeev/u-boot-xlnx/include/config.h:5,
                 from include/common.h:37:
/home/sanjeeev/u-boot-xlnx/include/configs/microblaze-generic.h:109:3: error: #error BAD CLOCK FREQ
Generating include/autoconf.mk.dep
In file included from /home/sanjeeev/u-boot-xlnx/include/config.h:5,
                 from include/common.h:37:
/home/sanjeeev/u-boot-xlnx/include/configs/microblaze-generic.h:109:3: error: #error BAD CLOCK FREQ
for dir in tools examples/standalone examples/api cpu/microblaze /home/sanjeeev/u-boot-xlnx/board/xilinx/microblaze-generic/ ; do \
            make -C $dir _depend ; done
make[1]: Entering directory `/home/sanjeeev/u-boot-xlnx/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/sanjeeev/u-boot-xlnx/tools'
make[1]: Entering directory `/home/sanjeeev/u-boot-xlnx/examples/standalone'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/sanjeeev/u-boot-xlnx/examples/standalone'
make[1]: Entering directory `/home/sanjeeev/u-boot-xlnx/examples/api'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/sanjeeev/u-boot-xlnx/examples/api'
make[1]: Entering directory `/home/sanjeeev/u-boot-xlnx/cpu/microblaze'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/sanjeeev/u-boot-xlnx/cpu/microblaze'
make[1]: Entering directory `/home/sanjeeev/u-boot-xlnx/board/xilinx/microblaze-generic'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/sanjeeev/u-boot-xlnx/board/xilinx/microblaze-generic'
make -C tools all
make[1]: Entering directory `/home/sanjeeev/u-boot-xlnx/tools'
make[1]: Leaving directory `/home/sanjeeev/u-boot-xlnx/tools'
make -C examples/standalone all
make[1]: Entering directory `/home/sanjeeev/u-boot-xlnx/examples/standalone'
mb-linux-gcc  -g  -Os   -D__KERNEL__ -DTEXT_BASE=0x51000000 -I/home/sanjeeev/u-boot-xlnx/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/microblaze_v1.0/microblaze-unknown-linux-gnu/bin/../lib/gcc/microblaze-unknown-linux-gnu/4.1.2/include -pipe  -ffixed-r31 -D__microblaze__ -Wall -Wstrict-prototypes -fno-stack-protector   -o hello_world.o hello_world.c -c
In file included from /home/sanjeeev/u-boot-xlnx/include/config.h:5,
                 from /home/sanjeeev/u-boot-xlnx/include/common.h:37,
                 from hello_world.c:24:
/home/sanjeeev/u-boot-xlnx/include/configs/microblaze-generic.h:109:3: error: #error BAD CLOCK FREQ
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/home/sanjeeev/u-boot-xlnx/examples/standalone'
make: *** [examples/standalone] Error 2

 

0 Kudos
Reply
2 Replies
linnj
Xilinx Employee
Xilinx Employee
3,689 Views
Registered: ‎09-10-2008

You didn't mention how you configured u-boot before building it.

 

Did you?

 

I haven't seen that error before.

 

Thanks.

0 Kudos
Reply
jpl@xiphos.ca
Adventurer
Adventurer
3,644 Views
Registered: ‎10-28-2007

Hey there,

 

The error output contains some clues.

 

 

/home/sanjeeev/u-boot-xlnx/include/configs/microblaze-generic.h:109:3: error: #error BAD CLOCK FREQ

 

Have you looked around line 109 of microblaze-generic.h to see if there is any information about why the error statement is asserted?  Probably there is a naming difference between what the .h expects and what your xparameters.h provides.

 

Have a look and let us know what you find.

 

Joshua

 

0 Kudos
Reply