2008-10-02 15:43:52     buiding u-boot for bf537 is OK, but fail on bf527. Please help

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-10-02 15:43:52     buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63037   

 

Hi,

 

I try to build u-boot for bf527, but fail at making cpu/blackfin/libblackfin.a

 

I use the same script file and build for bf537, and everything is OK.  Can you see any problem? please help.  Here is my script and the build result.

 

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

 

[blackfin-sources_2008R1]$ cat UBbuild527

#!/bin/sh

echo 'Build from this working folder:'

echo ${DIR_BUILD=`pwd`}

echo ${DIR_BUILD_O=${DIR_BUILD}/output}

echo ${DIR_BUILD_U=${DIR_BUILD}/u-boot/u-boot-1.1.6}

echo 'Build for board ' ${BOARD=bf527-ezkit}

#echo 'Build for board ' ${BOARD=bf537-stamp}

echo 'Config file is ' ${CFG=${BOARD}_config}

cd $DIR_BUILD_U

export PATH=${DIR_BUILD_O}-elf/bin:${DIR_BUILD_O}-uclinux/bin:${DIR_BUILD_O}-linux-uclibc/bin:${PATH}

#make clean

make $CFG

make

for BinFile in u-boot*

do

   if [ -f $BinFile ] ; then

      NewFile=${BOARD}_${BinFile}

      echo "Rename file $BinFile to " ${NewFile}

      mv ${BinFile} ${NewFile}

   else

      echo "***** NO Binary files $BinFile exists.  Build failed"

   fi

done

 

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

 

 

[blackfin-sources_2008R1]$ UBbuild527

Build from this working folder:

/home/dominicon/blackfin-sources_2008R1

/home/dominicon/blackfin-sources_2008R1/output

/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6

Build for board  bf527-ezkit

Config file is  bf527-ezkit_config

Configuring for bf527-ezkit board...

for dir in tools examples ; do make -C $dir _depend ; done

make[1]: Entering directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/tools'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/tools'

make[1]: Entering directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/examples'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/examples'

make -C tools all

make[1]: Entering directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/tools'

make[1]: Leaving directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/tools'

make -C examples all

make[1]: Entering directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/examples'

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o smc91111_eeprom.o smc91111_eeprom.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o smsc9118_eeprom.o smsc9118_eeprom.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o stubs.o stubs.c

bfin-uclinux-ar cr libstubs.a stubs.o

bfin-uclinux-ld -g  -Ttext 0x1000 \

                -o hello_world -e _hello_world hello_world.o libstubs.a \

                -L/home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uclinux/3.4.6 -lgcc

bfin-uclinux-objcopy -O srec hello_world hello_world.srec 2>/dev/null

bfin-uclinux-ld -g  -Ttext 0x1000 \

                -o smc91111_eeprom -e _smc91111_eeprom smc91111_eeprom.o libstubs.a \

                -L/home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uclinux/3.4.6 -lgcc

bfin-uclinux-objcopy -O srec smc91111_eeprom smc91111_eeprom.srec 2>/dev/null

bfin-uclinux-ld -g  -Ttext 0x1000 \

                -o smsc9118_eeprom -e _smsc9118_eeprom smsc9118_eeprom.o libstubs.a \

                -L/home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uclinux/3.4.6 -lgcc

bfin-uclinux-objcopy -O srec smsc9118_eeprom smsc9118_eeprom.srec 2>/dev/null

bfin-uclinux-objcopy -O binary hello_world hello_world.bin 2>/dev/null

bfin-uclinux-objcopy -O binary smc91111_eeprom smc91111_eeprom.bin 2>/dev/null

bfin-uclinux-objcopy -O binary smsc9118_eeprom smsc9118_eeprom.bin 2>/dev/null

make[1]: Leaving directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/examples'

make -C lib_generic/

make[1]: Entering directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/lib_generic'

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o bzlib.o bzlib.c

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o bzlib_crctable.o bzlib_crctable.c

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o bzlib_decompress.o bzlib_decompress.c

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o bzlib_randtable.o bzlib_randtable.c

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o bzlib_huffman.o bzlib_huffman.c

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o crc32.o crc32.c

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o display_options.o display_options.c

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o string.o string.c

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o vsprintf.o vsprintf.c

bfin-uclinux-gcc -g  -O2   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o zlib.o zlib.c

bfin-uclinux-ar cr libgeneric.a bzlib.o bzlib_crctable.o bzlib_decompress.o bzlib_randtable.o bzlib_huffman.o crc32.o ctype.o display_options.o ldiv.o string.o vsprintf.o zlib.o

make[1]: Leaving directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/lib_generic'

make -C board/bf527-ezkit/

make[1]: Entering directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/board/bf527-ezkit'

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o bf527-ezkit.o bf527-ezkit.c

bf527-ezkit.c: In function `initdram':

bf527-ezkit.c:84: warning: volatile register variables don't work as you might wish

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o spi_flash.o spi_flash.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o video.o video.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o nand.o nand.c

bfin-uclinux-ar cr libbf527-ezkit.a bf527-ezkit.o spi_flash.o video.o nand.o

make[1]: Leaving directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/board/bf527-ezkit'

make -C cpu/blackfin/

make[1]: Entering directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/cpu/blackfin'

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o cpu.o cpu.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o traps.o traps.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o interrupts.o interrupts.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o reset.o reset.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o serial.o serial.c

serial.c: In function `serial_setbrg':

serial.c:91: warning: volatile register variables don't work as you might wish

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o i2c.o i2c.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux/lib/gcc/bfin-uc

linux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o watchdog.o watchdog.c

bfin-uclinux-gcc  -D__ASSEMBLY__ -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux

/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -c -o cache.o cache.S

bfin-uclinux-ar cr libblackfin.a cpu.o traps.o interrupts.o reset.o serial.o i2c.o watchdog.o interrupt.o cache.o

bfin-uclinux-gcc  -D__ASSEMBLY__ -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources_2008R1/output-uclinux

/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -c -o start.o start.S

    14: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND ___udivsi3

initcode.o contains external references!

make[1]: *** [check_initcode] Error 1

make[1]: Leaving directory `/home/dominicon/blackfin-sources_2008R1/u-boot/u-boot-1.1.6/cpu/blackfin'

make: *** [cpu/blackfin/libblackfin.a] Error 2

***** NO Binary files u-boot* exists.  Build failed

 

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

 

Regards,

 

Dominic

QuoteReplyEditDelete

 

 

2008-10-02 15:48:35     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63038   

 

2008R1 is not the latest release, 2008R1.5 is

QuoteReplyEditDelete

 

 

2008-10-02 16:08:34     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63039   

 

Hi Mike,

 

It's the same error for the latest version that I checked out from the trunk

QuoteReplyEditDelete

 

 

2008-10-02 16:17:14     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63040   

 

you're using gcc-3.4.6 ... use gcc-4.1.2

QuoteReplyEditDelete

 

 

2008-10-02 16:42:11     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63041   

 

So, is it a bug in the compilation?  my team admistrators don't want to change anything for at least 3 months because we're in critical releasing projects.  Is there any solution beside change gcc to version 4.1.2?

QuoteReplyEditDelete

 

 

2008-10-02 16:45:57     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63042   

 

What is the difference between building board bf527-ezkit and other board? one is not OK and the other is OK?

QuoteReplyEditDelete

 

 

2008-10-02 16:50:39     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Robin Getz (UNITED STATES)

Message: 63043   

 

Dominic:

 

The BF527 did not exist when we did the 2008R1 release. It is not supported.

 

Upgrade to 2008R1.5

 

Upgrade everything - u-Boot, uClinux-dist, kernel and compiler.

 

If you don't know why everything needs to be updated, check the FAQ:

 

https://docs.blackfin.uclinux.org/doku.php?id=faq

 

Why do I need to use the same version of toolchain/kernel/uClibc/U-boot/uClinux-dist?

 

 

 

-Robin

QuoteReplyEditDelete

 

 

2008-10-02 16:53:43     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63044   

 

there may be something in it, but gcc-3.4 has not been the recommended compiler since 2006, so we did not do any testing with 2008 release

 

just build u-boot with gcc-4.1 ... you dont have to switch anything else

QuoteReplyEditDelete

 

 

2008-10-02 16:56:15     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63045   

 

Hi Robin,

 

As I mentioned earlier, I also svn from the trunk, and use svn up for all (toolchain, u-boot, uclinux-dist), but give me the same error.

QuoteReplyEditDelete

 

 

2008-10-02 17:21:42     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63046   

 

Hi,

 

I just "svn up" in the trunk for u-boot, and 3 files (initcode.c, reset.c, and traps.c) in "u-boot/cpu/blackfin/" are updated:

 

When I re-build for bf537-stamp, and it failed.  But it's OK this morning before the above files updated.  Here is the portion of the result of the compilation:

 

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

 

make -C cpu/blackfin/

make[1]: Entering directory `/home/dominicon/blackfin-sources/u-boot/cpu/blackfin'

echo '#include <asm/mach-common/bits/bootrom.h>' | bfin-uclinux-gcc -E -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf537-0.2 -D__KERNEL__ -I/home/dominicon/blackfin-sources/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources/output-uclinux/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN - | gawk -f ./bootrom-asm-offsets.awk > bootrom-asm-offsets.c.tmpmv bootrom-asm-offsets.c.tmp bootrom-asm-offsets.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf537-0.2 -D__KERNEL__ -I/home/dominicon/blackfin-sources/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources/output-uclinux/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -S bootrom-asm-offsets.c -o bootrom-asm-offsets.s.tmp

mv bootrom-asm-offsets.s.tmp bootrom-asm-offsets.s

sed -ne "/^->/{s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" bootrom-asm-offsets.s > bootrom-asm-offsets.h

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf537-0.2 -D__KERNEL__ -I/home/dominicon/blackfin-sources/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources/output-uclinux/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o cpu.o cpu.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf537-0.2 -D__KERNEL__ -I/home/dominicon/blackfin-sources/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources/output-uclinux/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o traps.o traps.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf537-0.2 -D__KERNEL__ -I/home/dominicon/blackfin-sources/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources/output-uclinux/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o interrupts.o interrupts.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf537-0.2 -D__KERNEL__ -I/home/dominicon/blackfin-sources/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources/output-uclinux/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o jtag-console.o jtag-console.c

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf537-0.2 -D__KERNEL__ -I/home/dominicon/blackfin-sources/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources/output-uclinux/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o reset.o reset.c

reset.c: In function `bfin_reset_trampoline':

reset.c:79: error: `ANOMALY_05000386' undeclared (first use in this function)

reset.c:79: error: (Each undeclared identifier is reported only once

reset.c:79: error: for each function it appears in.)

make[1]: *** [reset.o] Error 1

make[1]: Leaving directory `/home/dominicon/blackfin-sources/u-boot/cpu/blackfin'

make: *** [cpu/blackfin/libblackfin.a] Error 2

***** NO Binary files u-boot* exists.  Build failed

 

 

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

 

Regards,

 

Dominic

QuoteReplyEditDelete

 

 

2008-10-02 17:39:03     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63047   

 

this is why you should not use trunk for real work ... it sometimes breaks

 

the anomaly 386 issue is fixed now

QuoteReplyEditDelete

 

 

2008-10-02 19:32:00     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63048   

 

anormaly 386 is not fixed for bf527

 

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

 

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf527-0.0 -D__KERNEL__ -I/home/dominicon/blackfin-sources/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/dominicon/blackfin-sources/output-uclinux/lib/gcc/bfin-uclinux/3.4.6/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o initcode.o initcode.c

In file included from /home/dominicon/blackfin-sources/u-boot/include/asm/blackfin_def.h:36,

                 from /home/dominicon/blackfin-sources/u-boot/include/asm/blackfin.h:9,

                 from initcode.c:13:

/home/dominicon/blackfin-sources/u-boot/include/asm/mach-bf527/anomaly.h:171:1: warning: "ANOMALY_05000353" redefined

/home/dominicon/blackfin-sources/u-boot/include/asm/mach-bf527/anomaly.h:61:1: warning: this is the location of the previous definition

    14: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND ___udivsi3

initcode.o contains external references!

make[1]: *** [check_initcode] Error 1

make[1]: Leaving directory `/home/dominicon/blackfin-sources/u-boot/cpu/blackfin'

make: *** [cpu/blackfin/libblackfin.a] Error 2

***** NO Binary files u-boot* exists.  Build failed

 

 

 

 

Regards,

 

Dominic

 

 

QuoteReplyEditDelete

 

 

2008-10-02 20:02:16     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63049   

 

you're confusing things.  i fixed the build problem.  i did not look into building with gcc-3.4 or make any change in any way to address that.  build it with gcc-4.1 and it'll work fine.

QuoteReplyEditDelete

 

 

2008-10-02 20:07:55     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63050   

 

I remove the line has "exit 1;\" from u-boot/cpu/blackfin/Makefile, to let the compile continue, then it built successfully.  But I don't know it works or not?

 

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

 

Original:

 

# make sure our initcode (which goes into LDR) does not

# have relocs or external references

READINIT = env LC_ALL=C $(CROSS_COMPILE)readelf -s $<

check_initcode: $(obj)initcode.o

ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)

    @if $(READINIT) | grep '\<GLOBAL\>.*\<UND\>' ; then \

        echo "$< contains external references!" 1>&2 ; \

        exit 1 ; \

    fi

endif

 

 

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

 

Modified:

 

# make sure our initcode (which goes into LDR) does not

# have relocs or external references

READINIT = env LC_ALL=C $(CROSS_COMPILE)readelf -s $<

check_initcode: $(obj)initcode.o

ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)

    @if $(READINIT) | grep '\<GLOBAL\>.*\<UND\>' ; then \

        echo "$< contains external references!" 1>&2 ; \

    fi

endif

 

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

 

Regards,

 

Dominic

QuoteReplyEditDelete

 

 

2008-10-02 20:10:54     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63051   

 

you would think that such a check would be in the sources for a reason and that removing such a check would be a horrible idea ...

QuoteReplyEditDelete

 

 

2008-10-02 20:20:43     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63053   

 

Mike,

 

Do you guarantee it'll work for gcc 4.1.2?  because I have to wait for at least 3 months for that change in our server.   If I request for another PC to setup a new Linux system, It may take another weeks, maybe months for P.O. to go thru.  I just try to find work-around solution.  Is it possible?

 

 

 

Regards,

 

Dominic

QuoteReplyEditDelete

 

 

2008-10-02 20:27:20     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63054   

 

we've done all our testing with gcc-4.1 for the past two releases.  but i dont understand your statement ... gcc-3.4 and gcc-4.1 can be installed side by side.

QuoteReplyEditDelete

 

 

2008-10-02 20:30:20     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63055   

 

Tomorrow I will find out what is the different between the bf537 and bf527 configuration settings are.  They must be a solution without changing gcc to version 4.1.2.  I just wonder why bf537 built OK using gcc 3.4.6 !

 

Based on the file initcode.c, in function initcode(), it has to do with the compilation switch CONFIG_HW_WATCHDOG, bfin_write_WDOG_CNT(), and bfin_write_WDOG_CTL() functions.

 

#ifdef CONFIG_HW_WATCHDOG

# ifndef CONFIG_HW_WATCHDOG_TIMEOUT_INITCODE

#  define CONFIG_HW_WATCHDOG_TIMEOUT_INITCODE 20000

# endif

    /* Program the watchdog with an initial timeout of ~20 seconds.

     * Hopefully that should be long enough to load the u-boot LDR

     * (from wherever) and then the common u-boot code can take over.

     * In bypass mode, the start.S would have already set a much lower

     * timeout, so don't clobber that.

     */

    if (CONFIG_BFIN_BOOT_MODE != BFIN_BOOT_BYPASS) {

        bfin_write_WDOG_CNT(MSEC_TO_SCLK(CONFIG_HW_WATCHDOG_TIMEOUT_INITCODE));

        bfin_write_WDOG_CTL(0);

    }

#endif

 

QuoteReplyEditDelete

 

 

2008-10-02 20:34:14     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63057   

 

the problem it seems is that gcc-3.4 does not do dead code culling as well as gcc-4.1+.  you'll have to comment out serial code functions in the initcode() function to hack around the issue.

 

QuoteReplyEditDelete

 

 

2008-10-02 20:40:14     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63058   

 

Hi Mike,

 

How can I install gcc 4.1.2 side by side?  or how would I know if I have gcc 4.1.2 installed in our server? The administrator in our company don't want to change anything.

 

When I build toolchain the default is with gcc 4.1, it always failed to compile, because it detect that I have gcc 3.4.6, so I have to add the -c 3.4 option to the toolchain Build script successfully.

 

Dom

QuoteReplyEditDelete

 

 

2008-10-02 20:44:48     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63059   

 

we have toolchain releases.  there is no need to build it yourself.

 

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing

QuoteReplyEditDelete

 

 

2008-10-02 21:59:11     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63060   

 

Hi Mike,

 

IT guy installed the toolchain file "blackfin-toolchain-08r1.5-14.i386.rpm" into /"opt".  I change my PATH to this toolchain, and re-build both bf537 and bf527, and they both failed and stop at compiling the examples (file hello_world.c).   Here is the outcome: (Look like the include path is screw up).  What's wrong here?

 

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

 

Configuring for bf537-stamp board...

for dir in tools examples ; do make -C $dir _depend ; done

make[1]: Entering directory `/home/dominicon/blackfin-sources/u-boot/tools'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/dominicon/blackfin-sources/u-boot/tools'

make[1]: Entering directory `/home/dominicon/blackfin-sources/u-boot/examples'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/dominicon/blackfin-sources/u-boot/examples'

make -C tools all

make[1]: Entering directory `/home/dominicon/blackfin-sources/u-boot/tools'

gcc -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c

gcc -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o img2srec img2srec.o

strip img2srec

gcc -g -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c

gcc -g -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o crc32.o crc32.c

gcc -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o mkimage mkimage.o crc32.o

strip mkimage

gcc -g -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c

gcc -g  -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -c -o environment.o environment.c

gcc -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o

gcc -g -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c

gcc -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o gen_eth_addr gen_eth_addr.o

strip gen_eth_addr

gcc -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c

gcc -Wall -pedantic -idirafter /home/dominicon/blackfin-sources/u-boot/include -idirafter /home/dominicon/blackfin-sources/u-boot/include2 -idirafter /home/dominicon/blackfin-sources/u-boot/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o bmp_logo bmp_logo.o

strip bmp_logo

./bmp_logo logos/denx.bmp >/home/dominicon/blackfin-sources/u-boot/include/bmp_logo.h

make[1]: Leaving directory `/home/dominicon/blackfin-sources/u-boot/tools'

make -C examples all

make[1]: Entering directory `/home/dominicon/blackfin-sources/u-boot/examples'

bfin-uclinux-gcc -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf537-0.2 -D__KERNEL__ -I/home/dominicon/blackfin-sources/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c

In file included from hello_world.c:24:

/home/dominicon/blackfin-sources/u-boot/include/common.h:40:20: error: stdarg.h: No such file or directory

In file included from hello_world.c:24:

/home/dominicon/blackfin-sources/u-boot/include/common.h:573: error: expected declaration specifiers or '...' before 'va_list'

/home/dominicon/blackfin-sources/u-boot/include/common.h:603: error: expected declaration specifiers or '...' before 'va_list'

In file included from hello_world.c:25:

/home/dominicon/blackfin-sources/u-boot/include/exports.h:21: error: expected declaration specifiers or '...' before 'va_list'

make[1]: *** [hello_world.o] Error 1

make[1]: Leaving directory `/home/dominicon/blackfin-sources/u-boot/examples'

make: *** [examples] Error 2

***** NO Binary files u-boot* exists.  Build failed

 

 

Regards,

 

Dom

QuoteReplyEditDelete

 

 

2008-10-02 22:16:25     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63062   

 

you didnt follow the install directions and install all the needed packages.  you cant compile a whole lot without a C library.

QuoteReplyEditDelete

 

 

2008-10-06 14:49:33     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63173   

 

Finally I made it compiled, now I try to load U-BOOT using VDSP++ 5.0, and ADZS-HPUSB-ICE JTag, but NOT success.  I follow the procedure but still don't know what did I miss?  please help !!!

 

Launch Flash Programmer from VDSP++, and I use flash driver from file: C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin\Examples\ADSP-BF527 EZ-KIT Lite\Flash Programmer\Parallel\BF527EzFlashDriver_M29W320EB.dxe

 

I tried with serial, but does not work, and I don't know which one do I have to use?

 

I tried to use Input file for u-boot with different file format (u-boot.bin, u-boot.ldr with Hex file format checked, and u-boot.bin with binary file format checked), but nothing comming up to the Terminal when boot (Jtag already disconnected and BF527-Ezkit reset power cycle).

 

Thanks,

 

Regards,

 

Dominic

QuoteReplyEditDelete

 

 

2008-10-06 15:07:13     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63175   

 

make sure the precompiled images in our release work first.  then you can narrow down on hardware or software bugs.

QuoteReplyEditDelete

 

 

2008-10-06 15:17:17     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Dominic On (CANADA)

Message: 63180   

 

I installed the blackfin-toolchain-08r1.5-14.i386.rpm, blackfin-toolchain-uclibc-full-08r1.5-14.i386.rpm, and blackfin-toolchain-elf-gcc-4.1-08r1.5-14.i386.rpm, and these packages work fine, but not the one in the trunk (not stable yet),  now I can compile for both BF537 and BF527's U-BOOTs.  But have to problem to load.  Do you know what is the memory offset to set to?  the default in the Flash Programmer is 0x0.

 

Dominic

QuoteReplyEditDelete

 

 

2008-10-06 15:19:53     Re: buiding u-boot for bf537 is OK, but fail on bf527. Please help

Mike Frysinger (UNITED STATES)

Message: 63182   

 

when i said "precompiled images", i'm talking about the U-Boot released files

 

as for VDSP documentation, the only thing we have is in our wiki ... we dont use/support VDSP

Attachments

    Outcomes