2010-07-12 21:05:46     U-Boot does not compile for AX88180 ether chip

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-07-12 21:05:46     U-Boot does not compile for AX88180 ether chip

Wojtek Skulski (UNITED STATES)

Message: 91179   

 

Hi: I am attempting to build U-Boot for my new BF561 board, which uses the AX88180 ether chip (same as ADI add-on LAN card). I used the appropriate #define from the Wiki page http://docs.blackfin.uclinux.org/doku.php?id=hw:cards:ax88180 (the ones from the very end of that page). The U-Boot board.h is attached, where I put these #define's. The compile errors are as follows.

 

net/libnet.a(net.o): In function `NetSendPacket':

/home/uclinux/u-boot/net/net.c:656: undefined reference to `eth_send'

 

net/libnet.a(net.o): In function `PingTimeout':

/home/uclinux/u-boot/net/net.c:771: undefined reference to `eth_halt'

 

net/libnet.a(net.o): In function `NetLoop':

/home/uclinux/u-boot/net/net.c:326: undefined reference to `eth_init'

/home/uclinux/u-boot/net/net.c:508: undefined reference to `eth_rx'

 

I looked at the SMSC91111 driver which I am using on BlackStamp (file ~/u-boot/drivers/smc91111.c). It indeed exports just these four functions And I just compiled the new U-Boot for BlackStamp and it works. So these four functions are being properly exported from the SMSC91111 driver, which the BlackStamp is using.

 

Then I looked at the AX88180 driver, that is files ~/u-boot/drivers/net/ax88180.h and ax88180.c. There are no functions of the corresponding names in either of these two files. So indeed, the compiler is telling the truth. The AX88180 driver does not provide the required interface.

 

What am I doing wrong? The AX88180 has been in U-Boot for a long time. It is documented in Wiki. I am assuming it all has been thoroughly  tested. How come it does not compile?

 

I am using the following U-Boot: u-boot-2008.10-2009R1.1-rc1.tar.bz2. (I abbreviated its folder name to just u-boot after installation.)

 

U-Boot_compile_error.txt

blackvme_rev0.h

blackvme_rev0_full_trace.txt

QuoteReplyEditDelete

 

 

2010-07-13 13:28:49     Re: U-Boot does not compile for AX88180 ether chip

Mike Frysinger (UNITED STATES)

Message: 91202   

 

latest AX88180 driver needs CONFIG_NET_MULTI

QuoteReplyEditDelete

 

 

2010-07-14 10:46:50     Re: U-Boot does not compile for AX88180 ether chip

Wojtek Skulski (UNITED STATES)

Message: 91244   

 

Mike:

 

thanks a lot. Now U-boot compiles OK with AX88180 support.

Outcomes