From mboxrd@z Thu Jan 1 00:00:00 1970 From: jacopo mondi Date: Fri, 18 Feb 2011 14:12:25 +0100 Subject: [U-Boot] building enc28j60 for omap3: undefined references In-Reply-To: <4D5D1687.3000900@denx.de> References: <20110216172917.4a5e83cc@BlackBox> <4D5C09EB.4090408@emk-elektronik.de> <4D5CF3C0.5050908@denx.de> <20110217114851.5b679230@BlackBox> <4D5D1687.3000900@denx.de> Message-ID: <20110218141225.1872b0ad@BlackBox> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 17 Feb 2011 13:37:27 +0100 Stefano Babic wrote: > It seems to me that the driver goes out from receive function when no > data are available. pkn_cnt is read directly from HW, and if the > controller is not broken, it will not return any packets and the loop > ends up. > You are right.. > Best regards, > Stefano Babic > As said I'm trying to enable enc28j60 in beagle C4. The device did not gets initialized because in eth.c, the board_eth_init function is defined as __def_eth_init through an __attribute__ weak statements (always return -1). This is because in board/ti/beagle.c no board_eth_init function is defined and libbeagle.o is not linked to libnet.o (where board_eth_init gets called). My question: have I to implement that function myself? Is it worth to introduce a new #define statements in omap3_beagle.h that enables the function in board specific file? I will be happy to do so, if it's worth (I'm looking at top900 board specific file as an example). Thank you