主题 : mini2440 uboot-2009.8 网卡移植编译uboot出错?? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 56784
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
贡献值: 0 点
综合积分: 6 分
注册时间: 2011-10-13
最后登录: 2012-06-23
楼主  发表于: 2011-10-20 15:56

 mini2440 uboot-2009.8 网卡移植编译uboot出错??

et/libnet.a(net.o)(.text+0x1cc): In function `ArpRequest':
/home/uboot/u-boot-2009.08/net/net.c:250: undefined reference to `eth_send'
net/libnet.a(net.o)(.text+0x29c): In function `NetStartAgain':
/home/uboot/u-boot-2009.08/net/net.c:568: undefined reference to `eth_halt'
net/libnet.a(net.o)(.text+0x36c): In function `NetSendPacket':
/home/uboot/u-boot-2009.08/net/net.c:623: undefined reference to `eth_send'
net/libnet.a(net.o)(.text+0x630): In function `NetSendUDPPacket':
/home/uboot/u-boot-2009.08/net/net.c:668: undefined reference to `eth_send'
net/libnet.a(net.o)(.text+0x7f4): In function `PingTimeout':
/home/uboot/u-boot-2009.08/net/net.c:732: undefined reference to `eth_halt'
net/libnet.a(net.o)(.text+0xb70): In function `NetReceive':
/home/uboot/u-boot-2009.08/net/net.c:1295: undefined reference to `eth_send'
net/libnet.a(net.o)(.text+0xdfc):/home/uboot/u-boot-2009.08/net/net.c:1420: undefined reference to `eth_send'
net/libnet.a(net.o)(.text+0x11ac): In function `NetLoop':
/home/uboot/u-boot-2009.08/net/net.c:342: undefined reference to `eth_halt'
net/libnet.a(net.o)(.text+0x11b4):/home/uboot/u-boot-2009.08/net/net.c:346: undefined reference to `eth_init'
net/libnet.a(net.o)(.text+0x12e4):/home/uboot/u-boot-2009.08/net/net.c:370: undefined reference to `eth_halt'

我编译uboot的时候出现了这样的错误,但是这些函数都在net.h中定义好了得。为什么还说没有定义?
我上网查了,说是链接库没有连接上,但是不知道怎么改。
有没有人知道,小弟非常感谢
级别: 新手上路
UID: 41641
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
贡献值: 0 点
综合积分: 12 分
注册时间: 2011-03-31
最后登录: 2012-03-30
1楼  发表于: 2011-11-28 09:24
重新下个版本编译,编译前要先修改Makefile里的CROSS_COMPILE 为arm-linu-; 好像是如果不改直接编译的话,以后再改就不行了
级别: 新手上路
UID: 69229
精华: 0
发帖: 35
金钱: 180 两
威望: 36 点
贡献值: 0 点
综合积分: 70 分
注册时间: 2012-05-03
最后登录: 2013-11-26
2楼  发表于: 2012-06-11 21:32
我也遇到了和你一样的问题 我原先移植的u-boot是可以正确编译并且运行的 但是我修改了网卡相关部分之后就和你一样了 我是按照国嵌实验手册上步骤做的 不知为什么会出现这种情况  希望有高手可以指点