AnsweredAssumed Answered

BF609:buildroot下ICC编译出错-customer from yuanjing

Question asked by beforewind on Jul 12, 2012
Latest reply on Jul 14, 2012 by Aaronwu

hi,

  我下载了最新的buildroot源码和linux源码(2012.7.13)

  缺省方式编译:make bf609-ezkit_defconfig,编译正常,产生的uImage下载到0.1版本的BF609-EZKIT开发板上工作正常。

  然后,在buildroot目录下:make linux-menuconfig,做如下选择:

配置ICC

Device Drivers  --->  

[*] Staging drivers  --->

[*]     icc driver  --->

              --- icc driver

[*]   icc protocol

 

再进入:

Blackfin Processor Options --->

*** Cache Support ***

[ ]   Enable ICACHE for L2 SRAM

[ ]   Enable DCACHE for L2 SRAM

确认禁止BFL2作为Cache

 

并选择External memory dcache policy set to write through.

 

保存linux内核配置,退出

 

然后在buildroot下:make menuconfig,选择pacakge的配置如下:

Configure libmcapi in buildroot:

Package Selection for the target  --->

Libraries  --->

Other  --->

[*] libmcapi

Miscellaneous  --->

[*] bfin inter-core communication support

ICC cpu type (BF609)  --->

 

保存buildroot配置,退出

 

然后:make

 

运行一段时间后报错信息如下:

bfin-uclinux-gcc  -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/mach-bf609/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/drivers/staging/icc/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/build/icc-HEAD/include -g scalar.o -o scalar_test > scalar_test.map

bfin-uclinux-gcc  -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/mach-bf609/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/drivers/staging/icc/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/build/icc-HEAD/include -g   -c -o packet.o packet.c

packet.c: In function ‘send_test’:

packet.c:66: warning: assignment makes integer from pointer without a cast

bfin-uclinux-gcc  -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/mach-bf609/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/drivers/staging/icc/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/build/icc-HEAD/include -g packet.o -o packet_test > packet_test.map

bfin-uclinux-gcc  -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/mach-bf609/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/drivers/staging/icc/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/build/icc-HEAD/include -g   -c -o session_packet.o session_packet.c

session_packet.c: In function ‘send_test’:

session_packet.c:58: warning: assignment makes integer from pointer without a cast

bfin-uclinux-gcc  -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/mach-bf609/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/drivers/staging/icc/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/build/icc-HEAD/include -g session_packet.o -o session_packet_test > session_packet_test.map

bfin-uclinux-gcc  -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/mach-bf609/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/drivers/staging/icc/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/build/icc-HEAD/include -g   -c -o icc_latency.o icc_latency.c

icc_latency.c: In function ‘send_recv_test’:

icc_latency.c:97: warning: assignment makes pointer from integer without a cast

icc_latency.c:104: warning: assignment makes integer from pointer without a cast

bfin-uclinux-gcc  -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/arch/blackfin/mach-bf609/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/linux/linux-kernel/drivers/staging/icc/include -I/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/build/icc-HEAD/include -g icc_latency.o -o icc_latency_test > icc_latency_test.map

make[1]: Leaving directory `/home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/build/icc-HEAD/example/test_app'

install /home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/build/icc-HEAD/example/task/ -> /home/ubuntu10/workspace/plm606/blackfin-sources/buildroot/output/target/bin/

make: *** [icc_task-install] Error 1

 

百思不得其解,所以发帖求助,谢谢!

Outcomes