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

[microblaze-uclinux] u-boot build question



Hello,

 

I am trying to port the Avnet LX50 eval board. I can get a basic kernel to boot by modifying the auto-config.in file for microblaze-auto etc.. , but I having problems building u-boot.

 

If there is no support for my board in the u-boot directory does that mean I cannot build u-boot as per the README in the u-boot directory?

 

If I should be able to do this then here is my error:

 

microblaze-uclinux-gcc -g  -Os   -D__KERNEL__ -DTEXT_BASE=0x8ffc0000 -I/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/devel/petalinux-v0.30-rc1DEV/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/include -pipe  -ffixed-r31 -D__microblaze__ -mno-xl-soft-mul -mcpu=v7.00.a   -Wall -Wstrict-prototypes -I ../board/petalogix/microblaze-auto/ -c -o cache.o cache.c

{standard input}: Assembler messages:

{standard input}:185: Error: unknown opcode "nopnop"

make[2]: *** [cache.o] Error 1

make[2]: Leaving directory `/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist/u-boot/lib_microblaze'

make[1]: *** [lib_microblaze/libmicroblaze.a] Error 2

make[1]: Leaving directory `/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist/u-boot'

make: *** [u-boot] Error 2

[root@localhost petalinux-dist]# pwd

/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist

=======================================

 

and the only section of lib_microblaze/cache.c that contains "nop" looks like:

 

=======================================

void flush_cache (ulong addr, ulong size)

{

        int i;

        for(i=0;i<size;i+=4)

                asm volatile (

#if CONFIG_XILINX_MICROBLAZE0_USE_ICACHE

                                "wic    %0, r0"

#else

                                "nop"

#endif

#if CONFIG_XILINX_MICROBLAZE0_USE_DCACHE

                                "wdc    %0, r0"

#else

                                "nop"

#endif

======================

  

And I am using both the ICACHE and DCACHE as defined in my auto-config.in

 

Any help will be greatly appreciated.

 

-A Bose