From: Ben Warren Date: Sat, 24 Feb 2007 14:24:23 -0800 (PST) Subject: [U-Boot-Users] scb9328 breakage (CONFIG_NET_MULTI and eth_get_dev) In-Reply-To: Message-ID: <390146.32734.qm@web301.biz.mail.mud.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Andrew, --- Andrew Dyer wrote: > I have a board similar to the scb9328 that I'm > working on a port to. > I tried compiling a recent version of u-boot for the > scb9328 target > and it fails with a linker error (see below). The > source was pulled > from git on Feb. 10, 2007. compiler is from arm > ELDK-4.0 > > Adding a define for CONFIG_NET_MULTI in the board > config file makes > the compile succeed. I don't actually have an > scb9328 (or my new > board yet) so I can't test it. > > Is CONFIG_NET_MULTI pretty much mandatory? If so, > why even have it as > an option? > > Yeah, for most recent ethernet devices it's more-or-less mandatory. If you look in 'net/eth.c' you'll see that many of the newer drivers only have their code within the confines of #ifdef CONFIG_NET_MULTI. This code needs an overhaul, and for other reasons too, but as with much of U-boot it has to be done very carefully to ensure backwards-compatibility. regards, Ben