青春无悔
分类: 嵌入式
2014-11-10 16:40:15
$ ./MAKEALL bf518f-ezbrd
//=============================================================
$ make distclean
$ make bf518f-ezbrd_config
$ make all
//=============================================================
$LANG=C
$ ./MAKEALL bf518f-ezbrd
Configuring for bf518f-ezbrd board...
include/linux/types.h:10:21: error: stdbool.h: No such file or directory
include/common.h:44:20: error: stdarg.h: No such file or directory
解决:
从./bfin-elf/lib/gcc/bfin-elf/4.3.5/include/的相关文件stdbool.h,stdarg.h,stddef.h拷贝置U-boot下。
//===============================================================
$ ./MAKEALL bf518f-ezbrd
Configuring for bf518f-ezbrd board...
make[1]: *** [start.o] Error 1
make: *** [arch/blackfin/cpu/start.o] Error 2
更改为:
$ make bf518f-ezbrd
make -C arch/blackfin/cpu start.o
make[1]: Entering directory `/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/u-boot-2013.07-2013R1/arch/blackfin/cpu'
bfin-uclinux-gcc -D__ASSEMBLY__ -g -Os -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf518-0.0 -D__KERNEL__ -I/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/u-boot-2013.07-2013R1/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe -DCONFIG_BLACKFIN -o start.o start.S -c
as: unrecognized option '-mnopic'
make[1]: *** [start.o] Error 2
make[1]: Leaving directory `/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/u-boot-2013.07-2013R1/arch/blackfin/cpu'
make: *** [arch/blackfin/cpu/start.o] Error 2
解决方法:
把toolchain其他文件解压。
//===============================================================
$ make bf518f-ezbrd
make[2]: Entering directory `/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/u-boot-2013.07-2013R1/arch/blackfin/cpu'
echo '#include
/bin/bash: gawk: command not found
make[2]: *** [bootrom-asm-offsets.c] Error 127
make[2]: Leaving directory `/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/u-boot-2013.07-2013R1/arch/blackfin/cpu'
make[1]: *** [arch/blackfin/cpu/libblackfin.o] Error 2
make[1]: Leaving directory `/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/u-boot-2013.07-2013R1'
make: *** [bf518f-ezbrd] Error 2
解决方法:
$ sudo apt-get install gawk