[U-Boot-Users] EP885C Port Compilation Problems

Will Haines will.haines at embedded-sys.com
Mon Jul 11 21:11:16 CEST 2005


Hello everyone,

I am trying to port U-Boot to an EP885C development board in order to practice
porting before I have to port to a board that my company is in the process of
building.  I know that Yuli Barcohen will soon release a patch that ports to the
EP885C, but I felt that I had to plow ahead before I get that patch as a
reference for porting.

I began by making the directories suggested in the faq and changing values for
what board specifications I could determine.  I am sure that I am missing some
important values, but I wanted to test compilation.  Upon doing so, I received
the following errors as the compiler attempted to build u-boot.map:

******************************************************************************
net/libnet.a(net.o)(.text+0x11c): In function `ArpRequest':
/shared/streamblade/test/wdhaine/workdir/u-boot-1.1.2/net/net.c:217: undefined
reference to `eth_send'
net/libnet.a(net.o)(.text+0x11c):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:217:
relocation truncated to fit: R_PPC_PLTREL24 eth_send
net/libnet.a(net.o)(.text+0x2a8): In function `NetLoop':
/shared/streamblade/test/wdhaine/workdir/u-boot-1.1.2/net/net.c:287: undefined
reference to `eth_halt'
net/libnet.a(net.o)(.text+0x2a8):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:287:
relocation truncated to fit: R_PPC_PLTREL24 eth_halt
net/libnet.a(net.o)(.text+0x2b0):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:291:
undefined reference to `eth_init'
net/libnet.a(net.o)(.text+0x2b0):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:291:
relocation truncated to fit: R_PPC_PLTREL24 eth_init
net/libnet.a(net.o)(.text+0x38c):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:457:
undefined reference to `eth_rx'
net/libnet.a(net.o)(.text+0x38c):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:457:
relocation truncated to fit: R_PPC_PLTREL24 eth_rx
net/libnet.a(net.o)(.text+0x404):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:515:
undefined reference to `eth_halt'
net/libnet.a(net.o)(.text+0x404):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:515:
relocation truncated to fit: R_PPC_PLTREL24 eth_halt
net/libnet.a(net.o)(.text+0x494):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:463:
undefined reference to `eth_halt'
net/libnet.a(net.o)(.text+0x494):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:463:
relocation truncated to fit: R_PPC_PLTREL24 eth_halt
net/libnet.a(net.o)(.text+0x648): In function `NetStartAgain':
/shared/streamblade/test/wdhaine/workdir/u-boot-1.1.2/net/net.c:551: undefined
reference to `eth_halt'
net/libnet.a(net.o)(.text+0x648):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:551:
relocation truncated to fit: R_PPC_PLTREL24 eth_halt
net/libnet.a(net.o)(.text+0x73c): In function `NetSendPacket':
/shared/streamblade/test/wdhaine/workdir/u-boot-1.1.2/net/net.c:604: undefined
reference to `eth_send'
net/libnet.a(net.o)(.text+0x73c):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:604:
relocation truncated to fit: R_PPC_PLTREL24 eth_send
net/libnet.a(net.o)(.text+0x8b0): In function `NetSendUDPPacket':
/shared/streamblade/test/wdhaine/workdir/u-boot-1.1.2/net/net.c:653: undefined
reference to `eth_send'
net/libnet.a(net.o)(.text+0x8b0):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:653:
relocation truncated to fit: R_PPC_PLTREL24 eth_send
net/libnet.a(net.o)(.text+0xc60): In function `NetReceive':
/shared/streamblade/test/wdhaine/workdir/u-boot-1.1.2/net/net.c:1280: undefined
reference to `eth_send'
net/libnet.a(net.o)(.text+0xc60):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:1280:
relocation truncated to fit: R_PPC_PLTREL24 eth_send
net/libnet.a(net.o)(.text+0xcf0):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:1251:
undefined reference to `eth_send'
net/libnet.a(net.o)(.text+0xcf0):/shared/streamblade/test/wdhaine/workdir/
u-boot-1.1.2/net/net.c:1251:
relocation truncated to fit: R_PPC_PLTREL24 eth_send
make: *** [u-boot] Error 1
******************************************************************************

If someone could help me determine how to make the build process find the eth
functions (I see that their code is located in net/eth.c) I would be very
appreciative.  I am not very knowledgeable about relocation.

Also, if Yuli is reading this, even if your patch is incomplete, any reference
material that you could provide to help me replicate your port would be greatly
appreciated.

In eager anticipation,
Will Haines






More information about the U-Boot mailing list