主题 : uboot编译出错 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 59314
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2011-11-22
最后登录: 2014-02-17
楼主  发表于: 2011-12-09 21:03

 uboot编译出错

错误代码是:                -Map u-boot.map -o u-boot
cpu/arm920t/libarm920t.a(interrupts.o): In function `bad_mode':
/home/arm/u-boot-1.2.0/cpu/arm920t/interrupts.c:80: undefined reference to `reset_cpu'
lib_arm/libarm.a(board.o):(.data+0x8): undefined reference to `interrupt_init'
lib_arm/libarm.a(board.o):(.data+0x14): undefined reference to `serial_init'
net/libnet.a(net.o): In function `PingSend':
/home/arm/u-boot-1.2.0/net/net.c:743: undefined reference to `get_timer'
net/libnet.a(net.o): In function `NetSetTimeout':
/home/arm/u-boot-1.2.0/net/net.c:627: undefined reference to `get_timer'
net/libnet.a(net.o): In function `NetSendUDPPacket':
/home/arm/u-boot-1.2.0/net/net.c:672: undefined reference to `get_timer'
net/libnet.a(net.o): In function `ArpTimeoutCheck':
/home/arm/u-boot-1.2.0/net/net.c:246: undefined reference to `get_timer'
net/libnet.a(net.o): In function `NetLoop':
/home/arm/u-boot-1.2.0/net/net.c:507: undefined reference to `get_timer'
net/libnet.a(tftp.o):/home/arm/u-boot-1.2.0/net/tftp.c:372: more undefined references to `get_timer' follow
common/libcommon.a(main.o): In function `abortboot':
/home/arm/u-boot-1.2.0/common/main.c:269: undefined reference to `udelay'
common/libcommon.a(cmd_load.o): In function `do_load_serial_bin':
/home/arm/u-boot-1.2.0/common/cmd_load.c:469: undefined reference to `udelay'
/home/arm/u-boot-1.2.0/common/cmd_load.c:471: undefined reference to `serial_setbrg'
/home/arm/u-boot-1.2.0/common/cmd_load.c:472: undefined reference to `udelay'
common/libcommon.a(cmd_load.o): In function `load_serial_bin':
/home/arm/u-boot-1.2.0/common/cmd_load.c:548: undefined reference to `udelay'
common/libcommon.a(cmd_load.o): In function `do_load_serial_bin':
/home/arm/u-boot-1.2.0/common/cmd_load.c:507: undefined reference to `udelay'
/home/arm/u-boot-1.2.0/common/cmd_load.c:509: undefined reference to `serial_setbrg'
/home/arm/u-boot-1.2.0/common/cmd_load.c:510: undefined reference to `udelay'
common/libcommon.a(cmd_load.o): In function `load_serial':
/home/arm/u-boot-1.2.0/common/cmd_load.c:192: undefined reference to `udelay'
common/libcommon.a(cmd_load.o): In function `do_load_serial':
/home/arm/u-boot-1.2.0/common/cmd_load.c:115: undefined reference to `udelay'
common/libcommon.a(cmd_misc.o): In function `do_sleep':
/home/arm/u-boot-1.2.0/common/cmd_misc.c:34: undefined reference to `get_timer'
/home/arm/u-boot-1.2.0/common/cmd_misc.c:48: undefined reference to `udelay'
/home/arm/u-boot-1.2.0/common/cmd_misc.c:44: undefined reference to `get_timer'
common/libcommon.a(cmd_nvedit.o): In function `_do_setenv':
/home/arm/u-boot-1.2.0/common/cmd_nvedit.c:249: undefined reference to `udelay'
/home/arm/u-boot-1.2.0/common/cmd_nvedit.c:255: undefined reference to `serial_setbrg'
/home/arm/u-boot-1.2.0/common/cmd_nvedit.c:256: undefined reference to `udelay'
common/libcommon.a(console.o): In function `puts':
/home/arm/u-boot-1.2.0/common/console.c:213: undefined reference to `serial_puts'
common/libcommon.a(console.o): In function `serial_printf':
/home/arm/u-boot-1.2.0/common/console.c:112: undefined reference to `serial_puts'
common/libcommon.a(console.o): In function `putc':
/home/arm/u-boot-1.2.0/common/console.c:197: undefined reference to `serial_putc'
common/libcommon.a(console.o): In function `tstc':
/home/arm/u-boot-1.2.0/common/console.c:182: undefined reference to `serial_tstc'
common/libcommon.a(console.o): In function `getc':
/home/arm/u-boot-1.2.0/common/console.c:171: undefined reference to `serial_getc'
common/libcommon.a(devices.o): In function `devices_init':
/home/arm/u-boot-1.2.0/common/devices.c:209: undefined reference to `serial_putc'
/home/arm/u-boot-1.2.0/common/devices.c:209: undefined reference to `serial_puts'
/home/arm/u-boot-1.2.0/common/devices.c:209: undefined reference to `serial_getc'
/home/arm/u-boot-1.2.0/common/devices.c:209: undefined reference to `serial_tstc'
common/libcommon.a(exports.o): In function `jumptable_init':
/home/arm/u-boot-1.2.0/common/exports.c:39: undefined reference to `get_timer'
/home/arm/u-boot-1.2.0/common/exports.c:39: undefined reference to `udelay'
common/libcommon.a(xyzModem.o): In function `CYGACC_COMM_IF_GETC_TIMEOUT':
/home/arm/u-boot-1.2.0/common/xyzModem.c:110: undefined reference to `udelay'
common/libcommon.a(xyzModem.o): In function `xyzModem_stream_terminate':
/home/arm/u-boot-1.2.0/common/xyzModem.c:801: undefined reference to `udelay'
common/libcommon.a(xyzModem.o): In function `xyzModem_get_hdr':
/home/arm/u-boot-1.2.0/common/xyzModem.c:414: undefined reference to `udelay'
common/libcommon.a(xyzModem.o): In function `xyzModem_stream_open':
/home/arm/u-boot-1.2.0/common/xyzModem.c:598: undefined reference to `udelay'
lib_generic/libgeneric.a(vsprintf.o):/home/arm/u-boot-1.2.0/lib_generic/vsprintf.c:382: more undefined references to `udelay' follow
board/mini2440/libmini2440.a(flash.o): In function `write_hword':
/home/arm/u-boot-1.2.0/board/mini2440/flash.c:337: undefined reference to `reset_timer_masked'
/home/arm/u-boot-1.2.0/board/mini2440/flash.c:345: undefined reference to `get_timer_masked'
board/mini2440/libmini2440.a(flash.o): In function `flash_erase':
/home/arm/u-boot-1.2.0/board/mini2440/flash.c:228: undefined reference to `reset_timer_masked'
/home/arm/u-boot-1.2.0/board/mini2440/flash.c:248: undefined reference to `get_timer_masked'
/home/arm/u-boot-1.2.0/board/mini2440/flash.c:288: undefined reference to `udelay_masked'
cpu/arm920t/libarm920t.a(cpu.o): In function `do_reset':
/home/arm/u-boot-1.2.0/cpu/arm920t/cpu.c:132: undefined reference to `reset_cpu'
make: *** [u-boot] Error 1
[root@localhost u-boot-1.2.0]#
请问一下是什么问题啊,我想里面说没定义的都是c语言部分与体系无关的,移植一帮都不用修改的,我也没对他们进行修改,怎么就没定义了呢,奇怪!!请高手赐教!
坚持才能超越!
级别: 新手上路
UID: 56359
精华: 0
发帖: 18
金钱: 90 两
威望: 18 点
贡献值: 0 点
综合积分: 36 分
注册时间: 2011-10-05
最后登录: 2013-03-23
1楼  发表于: 2012-12-21 11:57
在/cpu/arm920t/s3c24x0/ 下的 serial.c  interrupt.c  i2c.c 文件中的宏定义不匹配,没有打开相应的宏定义。仔细找。