主题 : u-boot移植网卡驱动(有人出现过,但没人解决) 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 74211
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
贡献值: 0 点
综合积分: 20 分
注册时间: 2012-07-20
最后登录: 2012-11-19
楼主  发表于: 2012-10-18 09:33

 u-boot移植网卡驱动(有人出现过,但没人解决)


]编译出现




net/libnet.a(net.o): In function `NetSendPacket':
/home/123/yz/ub/u-boot-2008.10/net/net.c:656: undefined reference to `eth_send'
net/libnet.a(net.o): In function `ArpRequest':
/home/123/yz/ub/u-boot-2008.10/net/net.c:254: undefined reference to `eth_send'
net/libnet.a(net.o): In function `NetReceive':
/home/123/yz/ub/u-boot-2008.10/net/net.c:1345: undefined reference to `eth_send'
/home/123/yz/ub/u-boot-2008.10/net/net.c:1479: undefined reference to `eth_send'
net/libnet.a(net.o): In function `NetSendUDPPacket':
/home/123/yz/ub/u-boot-2008.10/net/net.c:705: undefined reference to `eth_send'
net/libnet.a(net.o): In function `NetStartAgain':
/home/123/yz/ub/u-boot-2008.10/net/net.c:601: undefined reference to `eth_halt'
net/libnet.a(net.o): In function `PingTimeout':
/home/123/yz/ub/u-boot-2008.10/net/net.c:771: undefined reference to `eth_halt'
net/libnet.a(net.o): In function `NetLoop':
/home/123/yz/ub/u-boot-2008.10/net/net.c:322: undefined reference to `eth_halt'
/home/123/yz/ub/u-boot-2008.10/net/net.c:326: undefined reference to `eth_init'
/home/123/yz/ub/u-boot-2008.10/net/net.c:508: undefined reference to `eth_rx'
/home/123/yz/ub/u-boot-2008.10/net/net.c:514: undefined reference to `eth_halt'
/home/123/yz/ub/u-boot-2008.10/net/net.c:568: undefined reference to `eth_halt'
/home/123/yz/ub/u-boot-2008.10/net/net.c:408: undefined reference to `eth_halt'
make: *** [u-boot] 错误 1
有知道怎么解决的吗?版主在不?
畅游在知识的海洋...
级别: 论坛版主
UID: 33629
精华: 4
发帖: 554
金钱: 3075 两
威望: 615 点
贡献值: 5 点
综合积分: 1188 分
注册时间: 2010-12-03
最后登录: 2015-09-22
1楼  发表于: 2012-10-18 09:47
搜一下代码确定是否有这些函数,如果有,添加包含这些函数的头文件
好好学习,天天鲁管
:)
级别: 骑士
UID: 61588
精华: 5
发帖: 248
金钱: 1500 两
威望: 300 点
贡献值: 5 点
综合积分: 596 分
注册时间: 2012-01-02
最后登录: 2018-03-05
2楼  发表于: 2012-12-20 23:01
mini2440.h中要有这个 #define CONFIG_NET_MULTI        1