这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » [求助]U-Boot编译的问题

共5条 1/1 1 跳转至

[求助]U-Boot编译的问题

菜鸟
2005-05-12 01:37:05     打赏

我在对u-boot进行编译的时候,总是出错误,编不过去,我实在无计可施了,在这里向各位高手求助,万分感谢。

编译信息如下:

[root@fjj UBoot]# make

make[1]: Entering directory `/home/zhangwz/UBoot/tools'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/tools'

make[1]: Entering directory `/home/zhangwz/UBoot/lib_generic'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/lib_generic'

make[1]: Entering directory `/home/zhangwz/UBoot/lib_arm'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/lib_arm'

make[1]: Entering directory `/home/zhangwz/UBoot/cpu/at91rm9200'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/cpu/at91rm9200'

make[1]: Entering directory `/home/zhangwz/UBoot/board/at91rm9200dk'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/board/at91rm9200dk'

make[1]: Entering directory `/home/zhangwz/UBoot/common'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/common'

make[1]: Entering directory `/home/zhangwz/UBoot/disk'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/disk'

make[1]: Entering directory `/home/zhangwz/UBoot/fs'

make[2]: Entering directory `/home/zhangwz/UBoot/fs/jffs2'

make[2]: `.depend' is up to date.

make[2]: Leaving directory `/home/zhangwz/UBoot/fs/jffs2'

make[2]: Entering directory `/home/zhangwz/UBoot/fs/fdos'

make[2]: `.depend' is up to date.

make[2]: Leaving directory `/home/zhangwz/UBoot/fs/fdos'

make[2]: Entering directory `/home/zhangwz/UBoot/fs/fat'

make[2]: `.depend' is up to date.

make[2]: Leaving directory `/home/zhangwz/UBoot/fs/fat'

make[1]: Leaving directory `/home/zhangwz/UBoot/fs'

make[1]: Entering directory `/home/zhangwz/UBoot/net'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/net'

make[1]: Entering directory `/home/zhangwz/UBoot/rtc'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/rtc'

make[1]: Entering directory `/home/zhangwz/UBoot/dtt'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/dtt'

make[1]: Entering directory `/home/zhangwz/UBoot/drivers'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/drivers'

make[1]: Entering directory `/home/zhangwz/UBoot/post'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/post'

make[1]: Entering directory `/home/zhangwz/UBoot/post/cpu'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/post/cpu'

make[1]: Entering directory `/home/zhangwz/UBoot/examples'

make[1]: `.depend' is up to date.

make[1]: Leaving directory `/home/zhangwz/UBoot/examples'

make[1]: Entering directory `/home/zhangwz/UBoot/tools'

gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O -c

-o img2srec.o img2srec.c

gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O -o

img2srec img2srec.o

strip img2srec

gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O

-c mkimage.c

gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O

-c crc32.c

gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O -o

mkimage mkimage.o crc32.o

strip mkimage

gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O

-c envcrc.c

gcc -g -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -c environment.c

gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O -o

envcrc envcrc.o crc32.o environment.o

gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O

-c gen_eth_addr.c

gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O -o

gen_eth_addr gen_eth_addr.o

strip gen_eth_addr

gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O -c

-o bmp_logo.o bmp_logo.c

gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O -o

bmp_logo bmp_logo.o

strip bmp_logo

./bmp_logo logos/denx.bmp >/home/zhangwz/UBoot/include/bmp_logo.h

make[2]: Entering directory `/home/zhangwz/UBoot/tools/gdb'

gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o gdbsend.o gdbsend.c

gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o error.o error.c

gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o remote.o remote.c

gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o serial.o serial.c

gcc -Wall -pedantic -O -I/opt/powerpc/include -o gdbsend gdbsend.o error.o remo

te.o serial.o

gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o gdbcont.o gdbcont.c

gcc -Wall -pedantic -O -I/opt/powerpc/include -o gdbcont gdbcont.o error.o remo

te.o serial.o

gcc -Wall -pedantic -O -I/opt/powerpc/include -c -o astest.o astest.c

gcc -Wall -pedantic -O -I/opt/powerpc/include -o astest astest.o error.o -L/opt

/powerpc/lib -lbfd -liberty

make[2]: Leaving directory `/home/zhangwz/UBoot/tools/gdb'

make[1]: Leaving directory `/home/zhangwz/UBoot/tools'

make[1]: Entering directory `/home/zhangwz/UBoot/lib_generic'

arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load

-bytes -msoft-float -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-by

tes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x21f00000 -I/home/zhangwz/UBoot/inclu

de -fno-builtin -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7t

dmi -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -Wall -Wstrict

-prototypes -c -o crc32.o crc32.c

In file included from crc32.c:12:

/home/zhangwz/UBoot/include/common.h:73: asm/u-boot.h: ?????????

/home/zhangwz/UBoot/include/common.h:74: asm/global_data.h: ?????????

/home/zhangwz/UBoot/include/common.h:164: asm/u-boot-arm.h: ?????????

In file included from crc32.c:12:

/home/zhangwz/UBoot/include/common.h:136: parse error before `*'

/home/zhangwz/UBoot/include/common.h:136: warning: function declaration isn't a

prototype

/home/zhangwz/UBoot/include/common.h:277: parse error before `gd_t'

/home/zhangwz/UBoot/include/common.h:277: warning: function declaration isn't a

prototype

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

make[1]: Leaving directory `/home/zhangwz/UBoot/lib_generic'

make: *** [subdirs] Error 1

[root@fjj UBoot]#




关键词: 求助     U-Boot     编译     问题     UBoot     Ent    

菜鸟
2005-05-12 05:12:00     打赏
2楼
真的没有人知道吗? [align=right][color=#000066][此贴子已经被作者于2005-5-11 21:12:55编辑过][/color][/align]

菜鸟
2005-05-12 05:34:00     打赏
3楼

我的编译步骤是

make 你的板子名_config

make dep

make all

之前也可以

make clean

make mrproper

清理源代码树。(否则如果用不同版本工具build 会出问题)


菜鸟
2005-05-12 06:14:00     打赏
4楼
非常感谢楼上的朋友,我再试试。

菜鸟
2005-05-12 07:13:00     打赏
5楼

我试了后还是不行,信息如下:

[root@d AT91RM9200-U-Boot]# make at91rm9200dk_config rm -f include/config.h include/config.mk make: execvp: ./mkconfig: 权限不够 make: *** [at91rm9200dk_config] Error 127 [root@d AT91RM9200-U-Boot]#

我是以root身份登录的,为什么会权限不够呢?


共5条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]